From b462c5775bbcce1cf5fe053f7123b8397b24b052 Mon Sep 17 00:00:00 2001 From: Vdaas CI Date: Fri, 15 Sep 2023 01:53:28 +0000 Subject: [PATCH] Update [vald sha: c964badf76413c8307abf1614859c2b1c92ff1bb] --- VALD_SHA | 2 +- build.gradle | 2 +- .../vald/api/v1/agent/core/AgentGrpc.java | 8 +- .../org/vdaas/vald/api/v1/payload/Info.java | 108 +- .../org/vdaas/vald/api/v1/payload/Insert.java | 120 +- .../org/vdaas/vald/api/v1/payload/Object.java | 2055 ++++++++++++++++- .../org/vdaas/vald/api/v1/payload/Remove.java | 1728 +++++++++++++- .../org/vdaas/vald/api/v1/payload/Search.java | 173 +- .../org/vdaas/vald/api/v1/payload/Update.java | 120 +- .../org/vdaas/vald/api/v1/payload/Upsert.java | 120 +- .../vald/api/v1/payload/ValdPayload.java | 328 +-- .../org/vdaas/vald/api/v1/rpc/BadRequest.java | 1965 ++++++++++++++++ .../vald/api/v1/rpc/BadRequestOrBuilder.java | 53 + .../org/vdaas/vald/api/v1/rpc/DebugInfo.java | 818 +++++++ .../vald/api/v1/rpc/DebugInfoOrBuilder.java | 70 + .../vald/api/v1/rpc/ErrorDetailsProto.java | 230 ++ .../org/vdaas/vald/api/v1/rpc/ErrorInfo.java | 1250 ++++++++++ .../vald/api/v1/rpc/ErrorInfoOrBuilder.java | 156 ++ .../java/org/vdaas/vald/api/v1/rpc/Help.java | 1647 +++++++++++++ .../vdaas/vald/api/v1/rpc/HelpOrBuilder.java | 53 + .../vald/api/v1/rpc/LocalizedMessage.java | 757 ++++++ .../api/v1/rpc/LocalizedMessageOrBuilder.java | 53 + .../vald/api/v1/rpc/PreconditionFailure.java | 1894 +++++++++++++++ .../v1/rpc/PreconditionFailureOrBuilder.java | 53 + .../vdaas/vald/api/v1/rpc/QuotaFailure.java | 1733 ++++++++++++++ .../api/v1/rpc/QuotaFailureOrBuilder.java | 53 + .../vdaas/vald/api/v1/rpc/RequestInfo.java | 757 ++++++ .../vald/api/v1/rpc/RequestInfoOrBuilder.java | 53 + .../vdaas/vald/api/v1/rpc/ResourceInfo.java | 1132 +++++++++ .../api/v1/rpc/ResourceInfoOrBuilder.java | 107 + .../org/vdaas/vald/api/v1/rpc/RetryInfo.java | 678 ++++++ .../vald/api/v1/rpc/RetryInfoOrBuilder.java | 36 + .../vdaas/vald/api/v1/vald/FilterGrpc.java | 8 +- .../vdaas/vald/api/v1/vald/InsertGrpc.java | 8 +- .../vdaas/vald/api/v1/vald/ObjectGrpc.java | 86 +- .../vdaas/vald/api/v1/vald/RemoveGrpc.java | 98 +- .../vdaas/vald/api/v1/vald/SearchGrpc.java | 8 +- .../vdaas/vald/api/v1/vald/UpdateGrpc.java | 8 +- .../vdaas/vald/api/v1/vald/UpsertGrpc.java | 8 +- .../vdaas/vald/api/v1/vald/ValdObject.java | 11 +- .../vdaas/vald/api/v1/vald/ValdRemove.java | 21 +- version/VALD_CLIENT_JAVA_VERSION | 2 +- 42 files changed, 18136 insertions(+), 434 deletions(-) create mode 100644 src/main/java/org/vdaas/vald/api/v1/rpc/BadRequest.java create mode 100644 src/main/java/org/vdaas/vald/api/v1/rpc/BadRequestOrBuilder.java create mode 100644 src/main/java/org/vdaas/vald/api/v1/rpc/DebugInfo.java create mode 100644 src/main/java/org/vdaas/vald/api/v1/rpc/DebugInfoOrBuilder.java create mode 100644 src/main/java/org/vdaas/vald/api/v1/rpc/ErrorDetailsProto.java create mode 100644 src/main/java/org/vdaas/vald/api/v1/rpc/ErrorInfo.java create mode 100644 src/main/java/org/vdaas/vald/api/v1/rpc/ErrorInfoOrBuilder.java create mode 100644 src/main/java/org/vdaas/vald/api/v1/rpc/Help.java create mode 100644 src/main/java/org/vdaas/vald/api/v1/rpc/HelpOrBuilder.java create mode 100644 src/main/java/org/vdaas/vald/api/v1/rpc/LocalizedMessage.java create mode 100644 src/main/java/org/vdaas/vald/api/v1/rpc/LocalizedMessageOrBuilder.java create mode 100644 src/main/java/org/vdaas/vald/api/v1/rpc/PreconditionFailure.java create mode 100644 src/main/java/org/vdaas/vald/api/v1/rpc/PreconditionFailureOrBuilder.java create mode 100644 src/main/java/org/vdaas/vald/api/v1/rpc/QuotaFailure.java create mode 100644 src/main/java/org/vdaas/vald/api/v1/rpc/QuotaFailureOrBuilder.java create mode 100644 src/main/java/org/vdaas/vald/api/v1/rpc/RequestInfo.java create mode 100644 src/main/java/org/vdaas/vald/api/v1/rpc/RequestInfoOrBuilder.java create mode 100644 src/main/java/org/vdaas/vald/api/v1/rpc/ResourceInfo.java create mode 100644 src/main/java/org/vdaas/vald/api/v1/rpc/ResourceInfoOrBuilder.java create mode 100644 src/main/java/org/vdaas/vald/api/v1/rpc/RetryInfo.java create mode 100644 src/main/java/org/vdaas/vald/api/v1/rpc/RetryInfoOrBuilder.java diff --git a/VALD_SHA b/VALD_SHA index a849c209..adedaa90 100644 --- a/VALD_SHA +++ b/VALD_SHA @@ -1 +1 @@ -bb8e8dc82e1dc8e17515c94f17931e491c2bcd04 +c964badf76413c8307abf1614859c2b1c92ff1bb diff --git a/build.gradle b/build.gradle index 092403a3..ae87bc3f 100644 --- a/build.gradle +++ b/build.gradle @@ -23,7 +23,7 @@ apply plugin: "com.google.protobuf" group = "org.vdaas.vald" archivesBaseName = "vald-client-java" -version = "1.7.6.Rev2" +version = "1.7.7" description = "a client library for Vald (https://github.com/vdaas/vald)." def isDevBuild diff --git a/src/main/java/org/vdaas/vald/api/v1/agent/core/AgentGrpc.java b/src/main/java/org/vdaas/vald/api/v1/agent/core/AgentGrpc.java index b5c841dc..cfaec902 100644 --- a/src/main/java/org/vdaas/vald/api/v1/agent/core/AgentGrpc.java +++ b/src/main/java/org/vdaas/vald/api/v1/agent/core/AgentGrpc.java @@ -8,14 +8,14 @@ * */ @javax.annotation.Generated( - value = "by gRPC proto compiler (version 1.55.1)", + value = "by gRPC proto compiler (version 1.58.0)", comments = "Source: apis/proto/v1/agent/core/agent.proto") @io.grpc.stub.annotations.GrpcGenerated public final class AgentGrpc { private AgentGrpc() {} - public static final String SERVICE_NAME = "core.v1.Agent"; + public static final java.lang.String SERVICE_NAME = "core.v1.Agent"; // Static method descriptors that strictly reflect the proto. private static volatile io.grpc.MethodDescriptor @@ -3200,7 +3201,7 @@ public org.vdaas.vald.api.v1.payload.Info.CPUOrBuilder getCpuOrBuilder() { */ @java.lang.Override public boolean hasMemory() { - return memory_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** *
@@ -3238,7 +3239,7 @@ public org.vdaas.vald.api.v1.payload.Info.MemoryOrBuilder getMemoryOrBuilder() {
      */
     @java.lang.Override
     public boolean hasNode() {
-      return node_ != null;
+      return ((bitField0_ & 0x00000004) != 0);
     }
     /**
      * 
@@ -3290,13 +3291,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
       if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ip_)) {
         com.google.protobuf.GeneratedMessageV3.writeString(output, 4, ip_);
       }
-      if (cpu_ != null) {
+      if (((bitField0_ & 0x00000001) != 0)) {
         output.writeMessage(5, getCpu());
       }
-      if (memory_ != null) {
+      if (((bitField0_ & 0x00000002) != 0)) {
         output.writeMessage(6, getMemory());
       }
-      if (node_ != null) {
+      if (((bitField0_ & 0x00000004) != 0)) {
         output.writeMessage(7, getNode());
       }
       getUnknownFields().writeTo(output);
@@ -3320,15 +3321,15 @@ public int getSerializedSize() {
       if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ip_)) {
         size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, ip_);
       }
-      if (cpu_ != null) {
+      if (((bitField0_ & 0x00000001) != 0)) {
         size += com.google.protobuf.CodedOutputStream
           .computeMessageSize(5, getCpu());
       }
-      if (memory_ != null) {
+      if (((bitField0_ & 0x00000002) != 0)) {
         size += com.google.protobuf.CodedOutputStream
           .computeMessageSize(6, getMemory());
       }
-      if (node_ != null) {
+      if (((bitField0_ & 0x00000004) != 0)) {
         size += com.google.protobuf.CodedOutputStream
           .computeMessageSize(7, getNode());
       }
@@ -3524,13 +3525,21 @@ public static final class Builder extends
 
       // Construct using org.vdaas.vald.api.v1.payload.Info.Pod.newBuilder()
       private Builder() {
-
+        maybeForceBuilderInitialization();
       }
 
       private Builder(
           com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
-
+        maybeForceBuilderInitialization();
+      }
+      private void maybeForceBuilderInitialization() {
+        if (com.google.protobuf.GeneratedMessageV3
+                .alwaysUseFieldBuilders) {
+          getCpuFieldBuilder();
+          getMemoryFieldBuilder();
+          getNodeFieldBuilder();
+        }
       }
       @java.lang.Override
       public Builder clear() {
@@ -3600,21 +3609,26 @@ private void buildPartial0(org.vdaas.vald.api.v1.payload.Info.Pod result) {
         if (((from_bitField0_ & 0x00000008) != 0)) {
           result.ip_ = ip_;
         }
+        int to_bitField0_ = 0;
         if (((from_bitField0_ & 0x00000010) != 0)) {
           result.cpu_ = cpuBuilder_ == null
               ? cpu_
               : cpuBuilder_.build();
+          to_bitField0_ |= 0x00000001;
         }
         if (((from_bitField0_ & 0x00000020) != 0)) {
           result.memory_ = memoryBuilder_ == null
               ? memory_
               : memoryBuilder_.build();
+          to_bitField0_ |= 0x00000002;
         }
         if (((from_bitField0_ & 0x00000040) != 0)) {
           result.node_ = nodeBuilder_ == null
               ? node_
               : nodeBuilder_.build();
+          to_bitField0_ |= 0x00000004;
         }
+        result.bitField0_ |= to_bitField0_;
       }
 
       @java.lang.Override
@@ -4228,8 +4242,10 @@ public Builder mergeCpu(org.vdaas.vald.api.v1.payload.Info.CPU value) {
         } else {
           cpuBuilder_.mergeFrom(value);
         }
-        bitField0_ |= 0x00000010;
-        onChanged();
+        if (cpu_ != null) {
+          bitField0_ |= 0x00000010;
+          onChanged();
+        }
         return this;
       }
       /**
@@ -4383,8 +4399,10 @@ public Builder mergeMemory(org.vdaas.vald.api.v1.payload.Info.Memory value) {
         } else {
           memoryBuilder_.mergeFrom(value);
         }
-        bitField0_ |= 0x00000020;
-        onChanged();
+        if (memory_ != null) {
+          bitField0_ |= 0x00000020;
+          onChanged();
+        }
         return this;
       }
       /**
@@ -4538,8 +4556,10 @@ public Builder mergeNode(org.vdaas.vald.api.v1.payload.Info.Node value) {
         } else {
           nodeBuilder_.mergeFrom(value);
         }
-        bitField0_ |= 0x00000040;
-        onChanged();
+        if (node_ != null) {
+          bitField0_ |= 0x00000040;
+          onChanged();
+        }
         return this;
       }
       /**
@@ -4857,6 +4877,7 @@ protected java.lang.Object newInstance(
               org.vdaas.vald.api.v1.payload.Info.Node.class, org.vdaas.vald.api.v1.payload.Info.Node.Builder.class);
     }
 
+    private int bitField0_;
     public static final int NAME_FIELD_NUMBER = 1;
     @SuppressWarnings("serial")
     private volatile java.lang.Object name_ = "";
@@ -5010,7 +5031,7 @@ public java.lang.String getExternalAddr() {
      */
     @java.lang.Override
     public boolean hasCpu() {
-      return cpu_ != null;
+      return ((bitField0_ & 0x00000001) != 0);
     }
     /**
      * 
@@ -5048,7 +5069,7 @@ public org.vdaas.vald.api.v1.payload.Info.CPUOrBuilder getCpuOrBuilder() {
      */
     @java.lang.Override
     public boolean hasMemory() {
-      return memory_ != null;
+      return ((bitField0_ & 0x00000002) != 0);
     }
     /**
      * 
@@ -5086,7 +5107,7 @@ public org.vdaas.vald.api.v1.payload.Info.MemoryOrBuilder getMemoryOrBuilder() {
      */
     @java.lang.Override
     public boolean hasPods() {
-      return pods_ != null;
+      return ((bitField0_ & 0x00000004) != 0);
     }
     /**
      * 
@@ -5135,13 +5156,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
       if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(externalAddr_)) {
         com.google.protobuf.GeneratedMessageV3.writeString(output, 3, externalAddr_);
       }
-      if (cpu_ != null) {
+      if (((bitField0_ & 0x00000001) != 0)) {
         output.writeMessage(4, getCpu());
       }
-      if (memory_ != null) {
+      if (((bitField0_ & 0x00000002) != 0)) {
         output.writeMessage(5, getMemory());
       }
-      if (pods_ != null) {
+      if (((bitField0_ & 0x00000004) != 0)) {
         output.writeMessage(6, getPods());
       }
       getUnknownFields().writeTo(output);
@@ -5162,15 +5183,15 @@ public int getSerializedSize() {
       if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(externalAddr_)) {
         size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, externalAddr_);
       }
-      if (cpu_ != null) {
+      if (((bitField0_ & 0x00000001) != 0)) {
         size += com.google.protobuf.CodedOutputStream
           .computeMessageSize(4, getCpu());
       }
-      if (memory_ != null) {
+      if (((bitField0_ & 0x00000002) != 0)) {
         size += com.google.protobuf.CodedOutputStream
           .computeMessageSize(5, getMemory());
       }
-      if (pods_ != null) {
+      if (((bitField0_ & 0x00000004) != 0)) {
         size += com.google.protobuf.CodedOutputStream
           .computeMessageSize(6, getPods());
       }
@@ -5362,13 +5383,21 @@ public static final class Builder extends
 
       // Construct using org.vdaas.vald.api.v1.payload.Info.Node.newBuilder()
       private Builder() {
-
+        maybeForceBuilderInitialization();
       }
 
       private Builder(
           com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
-
+        maybeForceBuilderInitialization();
+      }
+      private void maybeForceBuilderInitialization() {
+        if (com.google.protobuf.GeneratedMessageV3
+                .alwaysUseFieldBuilders) {
+          getCpuFieldBuilder();
+          getMemoryFieldBuilder();
+          getPodsFieldBuilder();
+        }
       }
       @java.lang.Override
       public Builder clear() {
@@ -5434,21 +5463,26 @@ private void buildPartial0(org.vdaas.vald.api.v1.payload.Info.Node result) {
         if (((from_bitField0_ & 0x00000004) != 0)) {
           result.externalAddr_ = externalAddr_;
         }
+        int to_bitField0_ = 0;
         if (((from_bitField0_ & 0x00000008) != 0)) {
           result.cpu_ = cpuBuilder_ == null
               ? cpu_
               : cpuBuilder_.build();
+          to_bitField0_ |= 0x00000001;
         }
         if (((from_bitField0_ & 0x00000010) != 0)) {
           result.memory_ = memoryBuilder_ == null
               ? memory_
               : memoryBuilder_.build();
+          to_bitField0_ |= 0x00000002;
         }
         if (((from_bitField0_ & 0x00000020) != 0)) {
           result.pods_ = podsBuilder_ == null
               ? pods_
               : podsBuilder_.build();
+          to_bitField0_ |= 0x00000004;
         }
+        result.bitField0_ |= to_bitField0_;
       }
 
       @java.lang.Override
@@ -5960,8 +5994,10 @@ public Builder mergeCpu(org.vdaas.vald.api.v1.payload.Info.CPU value) {
         } else {
           cpuBuilder_.mergeFrom(value);
         }
-        bitField0_ |= 0x00000008;
-        onChanged();
+        if (cpu_ != null) {
+          bitField0_ |= 0x00000008;
+          onChanged();
+        }
         return this;
       }
       /**
@@ -6115,8 +6151,10 @@ public Builder mergeMemory(org.vdaas.vald.api.v1.payload.Info.Memory value) {
         } else {
           memoryBuilder_.mergeFrom(value);
         }
-        bitField0_ |= 0x00000010;
-        onChanged();
+        if (memory_ != null) {
+          bitField0_ |= 0x00000010;
+          onChanged();
+        }
         return this;
       }
       /**
@@ -6270,8 +6308,10 @@ public Builder mergePods(org.vdaas.vald.api.v1.payload.Info.Pods value) {
         } else {
           podsBuilder_.mergeFrom(value);
         }
-        bitField0_ |= 0x00000020;
-        onChanged();
+        if (pods_ != null) {
+          bitField0_ |= 0x00000020;
+          onChanged();
+        }
         return this;
       }
       /**
diff --git a/src/main/java/org/vdaas/vald/api/v1/payload/Insert.java b/src/main/java/org/vdaas/vald/api/v1/payload/Insert.java
index 36fc6f90..c5730911 100644
--- a/src/main/java/org/vdaas/vald/api/v1/payload/Insert.java
+++ b/src/main/java/org/vdaas/vald/api/v1/payload/Insert.java
@@ -139,6 +139,7 @@ protected java.lang.Object newInstance(
               org.vdaas.vald.api.v1.payload.Insert.Request.class, org.vdaas.vald.api.v1.payload.Insert.Request.Builder.class);
     }
 
+    private int bitField0_;
     public static final int VECTOR_FIELD_NUMBER = 1;
     private org.vdaas.vald.api.v1.payload.Object.Vector vector_;
     /**
@@ -151,7 +152,7 @@ protected java.lang.Object newInstance(
      */
     @java.lang.Override
     public boolean hasVector() {
-      return vector_ != null;
+      return ((bitField0_ & 0x00000001) != 0);
     }
     /**
      * 
@@ -189,7 +190,7 @@ public org.vdaas.vald.api.v1.payload.Object.VectorOrBuilder getVectorOrBuilder()
      */
     @java.lang.Override
     public boolean hasConfig() {
-      return config_ != null;
+      return ((bitField0_ & 0x00000002) != 0);
     }
     /**
      * 
@@ -229,10 +230,10 @@ public final boolean isInitialized() {
     @java.lang.Override
     public void writeTo(com.google.protobuf.CodedOutputStream output)
                         throws java.io.IOException {
-      if (vector_ != null) {
+      if (((bitField0_ & 0x00000001) != 0)) {
         output.writeMessage(1, getVector());
       }
-      if (config_ != null) {
+      if (((bitField0_ & 0x00000002) != 0)) {
         output.writeMessage(2, getConfig());
       }
       getUnknownFields().writeTo(output);
@@ -244,11 +245,11 @@ public int getSerializedSize() {
       if (size != -1) return size;
 
       size = 0;
-      if (vector_ != null) {
+      if (((bitField0_ & 0x00000001) != 0)) {
         size += com.google.protobuf.CodedOutputStream
           .computeMessageSize(1, getVector());
       }
-      if (config_ != null) {
+      if (((bitField0_ & 0x00000002) != 0)) {
         size += com.google.protobuf.CodedOutputStream
           .computeMessageSize(2, getConfig());
       }
@@ -419,13 +420,20 @@ public static final class Builder extends
 
       // Construct using org.vdaas.vald.api.v1.payload.Insert.Request.newBuilder()
       private Builder() {
-
+        maybeForceBuilderInitialization();
       }
 
       private Builder(
           com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
-
+        maybeForceBuilderInitialization();
+      }
+      private void maybeForceBuilderInitialization() {
+        if (com.google.protobuf.GeneratedMessageV3
+                .alwaysUseFieldBuilders) {
+          getVectorFieldBuilder();
+          getConfigFieldBuilder();
+        }
       }
       @java.lang.Override
       public Builder clear() {
@@ -474,16 +482,20 @@ public org.vdaas.vald.api.v1.payload.Insert.Request buildPartial() {
 
       private void buildPartial0(org.vdaas.vald.api.v1.payload.Insert.Request result) {
         int from_bitField0_ = bitField0_;
+        int to_bitField0_ = 0;
         if (((from_bitField0_ & 0x00000001) != 0)) {
           result.vector_ = vectorBuilder_ == null
               ? vector_
               : vectorBuilder_.build();
+          to_bitField0_ |= 0x00000001;
         }
         if (((from_bitField0_ & 0x00000002) != 0)) {
           result.config_ = configBuilder_ == null
               ? config_
               : configBuilder_.build();
+          to_bitField0_ |= 0x00000002;
         }
+        result.bitField0_ |= to_bitField0_;
       }
 
       @java.lang.Override
@@ -679,8 +691,10 @@ public Builder mergeVector(org.vdaas.vald.api.v1.payload.Object.Vector value) {
         } else {
           vectorBuilder_.mergeFrom(value);
         }
-        bitField0_ |= 0x00000001;
-        onChanged();
+        if (vector_ != null) {
+          bitField0_ |= 0x00000001;
+          onChanged();
+        }
         return this;
       }
       /**
@@ -834,8 +848,10 @@ public Builder mergeConfig(org.vdaas.vald.api.v1.payload.Insert.Config value) {
         } else {
           configBuilder_.mergeFrom(value);
         }
-        bitField0_ |= 0x00000002;
-        onChanged();
+        if (config_ != null) {
+          bitField0_ |= 0x00000002;
+          onChanged();
+        }
         return this;
       }
       /**
@@ -1992,6 +2008,7 @@ protected java.lang.Object newInstance(
               org.vdaas.vald.api.v1.payload.Insert.ObjectRequest.class, org.vdaas.vald.api.v1.payload.Insert.ObjectRequest.Builder.class);
     }
 
+    private int bitField0_;
     public static final int OBJECT_FIELD_NUMBER = 1;
     private org.vdaas.vald.api.v1.payload.Object.Blob object_;
     /**
@@ -2004,7 +2021,7 @@ protected java.lang.Object newInstance(
      */
     @java.lang.Override
     public boolean hasObject() {
-      return object_ != null;
+      return ((bitField0_ & 0x00000001) != 0);
     }
     /**
      * 
@@ -2042,7 +2059,7 @@ public org.vdaas.vald.api.v1.payload.Object.BlobOrBuilder getObjectOrBuilder() {
      */
     @java.lang.Override
     public boolean hasConfig() {
-      return config_ != null;
+      return ((bitField0_ & 0x00000002) != 0);
     }
     /**
      * 
@@ -2080,7 +2097,7 @@ public org.vdaas.vald.api.v1.payload.Insert.ConfigOrBuilder getConfigOrBuilder()
      */
     @java.lang.Override
     public boolean hasVectorizer() {
-      return vectorizer_ != null;
+      return ((bitField0_ & 0x00000004) != 0);
     }
     /**
      * 
@@ -2120,13 +2137,13 @@ public final boolean isInitialized() {
     @java.lang.Override
     public void writeTo(com.google.protobuf.CodedOutputStream output)
                         throws java.io.IOException {
-      if (object_ != null) {
+      if (((bitField0_ & 0x00000001) != 0)) {
         output.writeMessage(1, getObject());
       }
-      if (config_ != null) {
+      if (((bitField0_ & 0x00000002) != 0)) {
         output.writeMessage(2, getConfig());
       }
-      if (vectorizer_ != null) {
+      if (((bitField0_ & 0x00000004) != 0)) {
         output.writeMessage(3, getVectorizer());
       }
       getUnknownFields().writeTo(output);
@@ -2138,15 +2155,15 @@ public int getSerializedSize() {
       if (size != -1) return size;
 
       size = 0;
-      if (object_ != null) {
+      if (((bitField0_ & 0x00000001) != 0)) {
         size += com.google.protobuf.CodedOutputStream
           .computeMessageSize(1, getObject());
       }
-      if (config_ != null) {
+      if (((bitField0_ & 0x00000002) != 0)) {
         size += com.google.protobuf.CodedOutputStream
           .computeMessageSize(2, getConfig());
       }
-      if (vectorizer_ != null) {
+      if (((bitField0_ & 0x00000004) != 0)) {
         size += com.google.protobuf.CodedOutputStream
           .computeMessageSize(3, getVectorizer());
       }
@@ -2326,13 +2343,21 @@ public static final class Builder extends
 
       // Construct using org.vdaas.vald.api.v1.payload.Insert.ObjectRequest.newBuilder()
       private Builder() {
-
+        maybeForceBuilderInitialization();
       }
 
       private Builder(
           com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
-
+        maybeForceBuilderInitialization();
+      }
+      private void maybeForceBuilderInitialization() {
+        if (com.google.protobuf.GeneratedMessageV3
+                .alwaysUseFieldBuilders) {
+          getObjectFieldBuilder();
+          getConfigFieldBuilder();
+          getVectorizerFieldBuilder();
+        }
       }
       @java.lang.Override
       public Builder clear() {
@@ -2386,21 +2411,26 @@ public org.vdaas.vald.api.v1.payload.Insert.ObjectRequest buildPartial() {
 
       private void buildPartial0(org.vdaas.vald.api.v1.payload.Insert.ObjectRequest result) {
         int from_bitField0_ = bitField0_;
+        int to_bitField0_ = 0;
         if (((from_bitField0_ & 0x00000001) != 0)) {
           result.object_ = objectBuilder_ == null
               ? object_
               : objectBuilder_.build();
+          to_bitField0_ |= 0x00000001;
         }
         if (((from_bitField0_ & 0x00000002) != 0)) {
           result.config_ = configBuilder_ == null
               ? config_
               : configBuilder_.build();
+          to_bitField0_ |= 0x00000002;
         }
         if (((from_bitField0_ & 0x00000004) != 0)) {
           result.vectorizer_ = vectorizerBuilder_ == null
               ? vectorizer_
               : vectorizerBuilder_.build();
+          to_bitField0_ |= 0x00000004;
         }
+        result.bitField0_ |= to_bitField0_;
       }
 
       @java.lang.Override
@@ -2606,8 +2636,10 @@ public Builder mergeObject(org.vdaas.vald.api.v1.payload.Object.Blob value) {
         } else {
           objectBuilder_.mergeFrom(value);
         }
-        bitField0_ |= 0x00000001;
-        onChanged();
+        if (object_ != null) {
+          bitField0_ |= 0x00000001;
+          onChanged();
+        }
         return this;
       }
       /**
@@ -2761,8 +2793,10 @@ public Builder mergeConfig(org.vdaas.vald.api.v1.payload.Insert.Config value) {
         } else {
           configBuilder_.mergeFrom(value);
         }
-        bitField0_ |= 0x00000002;
-        onChanged();
+        if (config_ != null) {
+          bitField0_ |= 0x00000002;
+          onChanged();
+        }
         return this;
       }
       /**
@@ -2916,8 +2950,10 @@ public Builder mergeVectorizer(org.vdaas.vald.api.v1.payload.Filter.Target value
         } else {
           vectorizerBuilder_.mergeFrom(value);
         }
-        bitField0_ |= 0x00000004;
-        onChanged();
+        if (vectorizer_ != null) {
+          bitField0_ |= 0x00000004;
+          onChanged();
+        }
         return this;
       }
       /**
@@ -4040,6 +4076,7 @@ protected java.lang.Object newInstance(
               org.vdaas.vald.api.v1.payload.Insert.Config.class, org.vdaas.vald.api.v1.payload.Insert.Config.Builder.class);
     }
 
+    private int bitField0_;
     public static final int SKIP_STRICT_EXIST_CHECK_FIELD_NUMBER = 1;
     private boolean skipStrictExistCheck_ = false;
     /**
@@ -4067,7 +4104,7 @@ public boolean getSkipStrictExistCheck() {
      */
     @java.lang.Override
     public boolean hasFilters() {
-      return filters_ != null;
+      return ((bitField0_ & 0x00000001) != 0);
     }
     /**
      * 
@@ -4125,7 +4162,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
       if (skipStrictExistCheck_ != false) {
         output.writeBool(1, skipStrictExistCheck_);
       }
-      if (filters_ != null) {
+      if (((bitField0_ & 0x00000001) != 0)) {
         output.writeMessage(2, getFilters());
       }
       if (timestamp_ != 0L) {
@@ -4144,7 +4181,7 @@ public int getSerializedSize() {
         size += com.google.protobuf.CodedOutputStream
           .computeBoolSize(1, skipStrictExistCheck_);
       }
-      if (filters_ != null) {
+      if (((bitField0_ & 0x00000001) != 0)) {
         size += com.google.protobuf.CodedOutputStream
           .computeMessageSize(2, getFilters());
       }
@@ -4320,13 +4357,19 @@ public static final class Builder extends
 
       // Construct using org.vdaas.vald.api.v1.payload.Insert.Config.newBuilder()
       private Builder() {
-
+        maybeForceBuilderInitialization();
       }
 
       private Builder(
           com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
-
+        maybeForceBuilderInitialization();
+      }
+      private void maybeForceBuilderInitialization() {
+        if (com.google.protobuf.GeneratedMessageV3
+                .alwaysUseFieldBuilders) {
+          getFiltersFieldBuilder();
+        }
       }
       @java.lang.Override
       public Builder clear() {
@@ -4375,14 +4418,17 @@ private void buildPartial0(org.vdaas.vald.api.v1.payload.Insert.Config result) {
         if (((from_bitField0_ & 0x00000001) != 0)) {
           result.skipStrictExistCheck_ = skipStrictExistCheck_;
         }
+        int to_bitField0_ = 0;
         if (((from_bitField0_ & 0x00000002) != 0)) {
           result.filters_ = filtersBuilder_ == null
               ? filters_
               : filtersBuilder_.build();
+          to_bitField0_ |= 0x00000001;
         }
         if (((from_bitField0_ & 0x00000004) != 0)) {
           result.timestamp_ = timestamp_;
         }
+        result.bitField0_ |= to_bitField0_;
       }
 
       @java.lang.Override
@@ -4628,8 +4674,10 @@ public Builder mergeFilters(org.vdaas.vald.api.v1.payload.Filter.Config value) {
         } else {
           filtersBuilder_.mergeFrom(value);
         }
-        bitField0_ |= 0x00000002;
-        onChanged();
+        if (filters_ != null) {
+          bitField0_ |= 0x00000002;
+          onChanged();
+        }
         return this;
       }
       /**
diff --git a/src/main/java/org/vdaas/vald/api/v1/payload/Object.java b/src/main/java/org/vdaas/vald/api/v1/payload/Object.java
index 5c2a0353..ecf75cd7 100644
--- a/src/main/java/org/vdaas/vald/api/v1/payload/Object.java
+++ b/src/main/java/org/vdaas/vald/api/v1/payload/Object.java
@@ -139,6 +139,7 @@ protected java.lang.Object newInstance(
               org.vdaas.vald.api.v1.payload.Object.VectorRequest.class, org.vdaas.vald.api.v1.payload.Object.VectorRequest.Builder.class);
     }
 
+    private int bitField0_;
     public static final int ID_FIELD_NUMBER = 1;
     private org.vdaas.vald.api.v1.payload.Object.ID id_;
     /**
@@ -151,7 +152,7 @@ protected java.lang.Object newInstance(
      */
     @java.lang.Override
     public boolean hasId() {
-      return id_ != null;
+      return ((bitField0_ & 0x00000001) != 0);
     }
     /**
      * 
@@ -189,7 +190,7 @@ public org.vdaas.vald.api.v1.payload.Object.IDOrBuilder getIdOrBuilder() {
      */
     @java.lang.Override
     public boolean hasFilters() {
-      return filters_ != null;
+      return ((bitField0_ & 0x00000002) != 0);
     }
     /**
      * 
@@ -229,10 +230,10 @@ public final boolean isInitialized() {
     @java.lang.Override
     public void writeTo(com.google.protobuf.CodedOutputStream output)
                         throws java.io.IOException {
-      if (id_ != null) {
+      if (((bitField0_ & 0x00000001) != 0)) {
         output.writeMessage(1, getId());
       }
-      if (filters_ != null) {
+      if (((bitField0_ & 0x00000002) != 0)) {
         output.writeMessage(2, getFilters());
       }
       getUnknownFields().writeTo(output);
@@ -244,11 +245,11 @@ public int getSerializedSize() {
       if (size != -1) return size;
 
       size = 0;
-      if (id_ != null) {
+      if (((bitField0_ & 0x00000001) != 0)) {
         size += com.google.protobuf.CodedOutputStream
           .computeMessageSize(1, getId());
       }
-      if (filters_ != null) {
+      if (((bitField0_ & 0x00000002) != 0)) {
         size += com.google.protobuf.CodedOutputStream
           .computeMessageSize(2, getFilters());
       }
@@ -419,13 +420,20 @@ public static final class Builder extends
 
       // Construct using org.vdaas.vald.api.v1.payload.Object.VectorRequest.newBuilder()
       private Builder() {
-
+        maybeForceBuilderInitialization();
       }
 
       private Builder(
           com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
-
+        maybeForceBuilderInitialization();
+      }
+      private void maybeForceBuilderInitialization() {
+        if (com.google.protobuf.GeneratedMessageV3
+                .alwaysUseFieldBuilders) {
+          getIdFieldBuilder();
+          getFiltersFieldBuilder();
+        }
       }
       @java.lang.Override
       public Builder clear() {
@@ -474,16 +482,20 @@ public org.vdaas.vald.api.v1.payload.Object.VectorRequest buildPartial() {
 
       private void buildPartial0(org.vdaas.vald.api.v1.payload.Object.VectorRequest result) {
         int from_bitField0_ = bitField0_;
+        int to_bitField0_ = 0;
         if (((from_bitField0_ & 0x00000001) != 0)) {
           result.id_ = idBuilder_ == null
               ? id_
               : idBuilder_.build();
+          to_bitField0_ |= 0x00000001;
         }
         if (((from_bitField0_ & 0x00000002) != 0)) {
           result.filters_ = filtersBuilder_ == null
               ? filters_
               : filtersBuilder_.build();
+          to_bitField0_ |= 0x00000002;
         }
+        result.bitField0_ |= to_bitField0_;
       }
 
       @java.lang.Override
@@ -679,8 +691,10 @@ public Builder mergeId(org.vdaas.vald.api.v1.payload.Object.ID value) {
         } else {
           idBuilder_.mergeFrom(value);
         }
-        bitField0_ |= 0x00000001;
-        onChanged();
+        if (id_ != null) {
+          bitField0_ |= 0x00000001;
+          onChanged();
+        }
         return this;
       }
       /**
@@ -834,8 +848,10 @@ public Builder mergeFilters(org.vdaas.vald.api.v1.payload.Filter.Config value) {
         } else {
           filtersBuilder_.mergeFrom(value);
         }
-        bitField0_ |= 0x00000002;
-        onChanged();
+        if (filters_ != null) {
+          bitField0_ |= 0x00000002;
+          onChanged();
+        }
         return this;
       }
       /**
@@ -3949,6 +3965,16 @@ public interface VectorOrBuilder extends
      * @return The vector at the given index.
      */
     float getVector(int index);
+
+    /**
+     * 
+     * timestamp represents when this vector inserted.
+     * 
+ * + * int64 timestamp = 3; + * @return The timestamp. + */ + long getTimestamp(); } /** *
@@ -4040,7 +4066,8 @@ public java.lang.String getId() {
 
     public static final int VECTOR_FIELD_NUMBER = 2;
     @SuppressWarnings("serial")
-    private com.google.protobuf.Internal.FloatList vector_;
+    private com.google.protobuf.Internal.FloatList vector_ =
+        emptyFloatList();
     /**
      * 
      * The vector.
@@ -4079,6 +4106,21 @@ public float getVector(int index) {
     }
     private int vectorMemoizedSerializedSize = -1;
 
+    public static final int TIMESTAMP_FIELD_NUMBER = 3;
+    private long timestamp_ = 0L;
+    /**
+     * 
+     * timestamp represents when this vector inserted.
+     * 
+ * + * int64 timestamp = 3; + * @return The timestamp. + */ + @java.lang.Override + public long getTimestamp() { + return timestamp_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -4104,6 +4146,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < vector_.size(); i++) { output.writeFloatNoTag(vector_.getFloat(i)); } + if (timestamp_ != 0L) { + output.writeInt64(3, timestamp_); + } getUnknownFields().writeTo(output); } @@ -4127,6 +4172,10 @@ public int getSerializedSize() { } vectorMemoizedSerializedSize = dataSize; } + if (timestamp_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, timestamp_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -4146,6 +4195,8 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getId())) return false; if (!getVectorList() .equals(other.getVectorList())) return false; + if (getTimestamp() + != other.getTimestamp()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -4163,6 +4214,9 @@ public int hashCode() { hash = (37 * hash) + VECTOR_FIELD_NUMBER; hash = (53 * hash) + getVectorList().hashCode(); } + hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTimestamp()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -4300,6 +4354,7 @@ public Builder clear() { bitField0_ = 0; id_ = ""; vector_ = emptyFloatList(); + timestamp_ = 0L; return this; } @@ -4326,25 +4381,23 @@ public org.vdaas.vald.api.v1.payload.Object.Vector build() { @java.lang.Override public org.vdaas.vald.api.v1.payload.Object.Vector buildPartial() { org.vdaas.vald.api.v1.payload.Object.Vector result = new org.vdaas.vald.api.v1.payload.Object.Vector(this); - buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields(org.vdaas.vald.api.v1.payload.Object.Vector result) { - if (((bitField0_ & 0x00000002) != 0)) { - vector_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.vector_ = vector_; - } - private void buildPartial0(org.vdaas.vald.api.v1.payload.Object.Vector result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.id_ = id_; } + if (((from_bitField0_ & 0x00000002) != 0)) { + vector_.makeImmutable(); + result.vector_ = vector_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.timestamp_ = timestamp_; + } } @java.lang.Override @@ -4399,13 +4452,17 @@ public Builder mergeFrom(org.vdaas.vald.api.v1.payload.Object.Vector other) { if (!other.vector_.isEmpty()) { if (vector_.isEmpty()) { vector_ = other.vector_; - bitField0_ = (bitField0_ & ~0x00000002); + vector_.makeImmutable(); + bitField0_ |= 0x00000002; } else { ensureVectorIsMutable(); vector_.addAll(other.vector_); } onChanged(); } + if (other.getTimestamp() != 0L) { + setTimestamp(other.getTimestamp()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -4446,13 +4503,19 @@ public Builder mergeFrom( case 18: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); - ensureVectorIsMutable(); + int alloc = length > 4096 ? 4096 : length; + ensureVectorIsMutable(alloc / 4); while (input.getBytesUntilLimit() > 0) { vector_.addFloat(input.readFloat()); } input.popLimit(limit); break; } // case 18 + case 24: { + timestamp_ = input.readInt64(); + bitField0_ |= 0x00000004; + break; + } // case 24 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag @@ -4564,10 +4627,16 @@ public Builder setIdBytes( private com.google.protobuf.Internal.FloatList vector_ = emptyFloatList(); private void ensureVectorIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - vector_ = mutableCopy(vector_); - bitField0_ |= 0x00000002; + if (!vector_.isModifiable()) { + vector_ = makeMutableCopy(vector_); + } + bitField0_ |= 0x00000002; + } + private void ensureVectorIsMutable(int capacity) { + if (!vector_.isModifiable()) { + vector_ = makeMutableCopy(vector_, capacity); } + bitField0_ |= 0x00000002; } /** *
@@ -4579,8 +4648,8 @@ private void ensureVectorIsMutable() {
        */
       public java.util.List
           getVectorList() {
-        return ((bitField0_ & 0x00000002) != 0) ?
-                 java.util.Collections.unmodifiableList(vector_) : vector_;
+        vector_.makeImmutable();
+        return vector_;
       }
       /**
        * 
@@ -4620,6 +4689,7 @@ public Builder setVector(
 
         ensureVectorIsMutable();
         vector_.setFloat(index, value);
+        bitField0_ |= 0x00000002;
         onChanged();
         return this;
       }
@@ -4636,6 +4706,7 @@ public Builder addVector(float value) {
 
         ensureVectorIsMutable();
         vector_.addFloat(value);
+        bitField0_ |= 0x00000002;
         onChanged();
         return this;
       }
@@ -4653,6 +4724,7 @@ public Builder addAllVector(
         ensureVectorIsMutable();
         com.google.protobuf.AbstractMessageLite.Builder.addAll(
             values, vector_);
+        bitField0_ |= 0x00000002;
         onChanged();
         return this;
       }
@@ -4670,6 +4742,50 @@ public Builder clearVector() {
         onChanged();
         return this;
       }
+
+      private long timestamp_ ;
+      /**
+       * 
+       * timestamp represents when this vector inserted.
+       * 
+ * + * int64 timestamp = 3; + * @return The timestamp. + */ + @java.lang.Override + public long getTimestamp() { + return timestamp_; + } + /** + *
+       * timestamp represents when this vector inserted.
+       * 
+ * + * int64 timestamp = 3; + * @param value The timestamp to set. + * @return This builder for chaining. + */ + public Builder setTimestamp(long value) { + + timestamp_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+       * timestamp represents when this vector inserted.
+       * 
+ * + * int64 timestamp = 3; + * @return This builder for chaining. + */ + public Builder clearTimestamp() { + bitField0_ = (bitField0_ & ~0x00000004); + timestamp_ = 0L; + onChanged(); + return this; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -6680,7 +6796,8 @@ public com.google.protobuf.ByteString getObject() { public static final int SHAPE_FIELD_NUMBER = 2; @SuppressWarnings("serial") - private com.google.protobuf.Internal.IntList shape_; + private com.google.protobuf.Internal.IntList shape_ = + emptyIntList(); /** *
      * The new shape.
@@ -6970,25 +7087,20 @@ public org.vdaas.vald.api.v1.payload.Object.ReshapeVector build() {
       @java.lang.Override
       public org.vdaas.vald.api.v1.payload.Object.ReshapeVector buildPartial() {
         org.vdaas.vald.api.v1.payload.Object.ReshapeVector result = new org.vdaas.vald.api.v1.payload.Object.ReshapeVector(this);
-        buildPartialRepeatedFields(result);
         if (bitField0_ != 0) { buildPartial0(result); }
         onBuilt();
         return result;
       }
 
-      private void buildPartialRepeatedFields(org.vdaas.vald.api.v1.payload.Object.ReshapeVector result) {
-        if (((bitField0_ & 0x00000002) != 0)) {
-          shape_.makeImmutable();
-          bitField0_ = (bitField0_ & ~0x00000002);
-        }
-        result.shape_ = shape_;
-      }
-
       private void buildPartial0(org.vdaas.vald.api.v1.payload.Object.ReshapeVector result) {
         int from_bitField0_ = bitField0_;
         if (((from_bitField0_ & 0x00000001) != 0)) {
           result.object_ = object_;
         }
+        if (((from_bitField0_ & 0x00000002) != 0)) {
+          shape_.makeImmutable();
+          result.shape_ = shape_;
+        }
       }
 
       @java.lang.Override
@@ -7041,7 +7153,8 @@ public Builder mergeFrom(org.vdaas.vald.api.v1.payload.Object.ReshapeVector othe
         if (!other.shape_.isEmpty()) {
           if (shape_.isEmpty()) {
             shape_ = other.shape_;
-            bitField0_ = (bitField0_ & ~0x00000002);
+            shape_.makeImmutable();
+            bitField0_ |= 0x00000002;
           } else {
             ensureShapeIsMutable();
             shape_.addAll(other.shape_);
@@ -7158,10 +7271,10 @@ public Builder clearObject() {
 
       private com.google.protobuf.Internal.IntList shape_ = emptyIntList();
       private void ensureShapeIsMutable() {
-        if (!((bitField0_ & 0x00000002) != 0)) {
-          shape_ = mutableCopy(shape_);
-          bitField0_ |= 0x00000002;
+        if (!shape_.isModifiable()) {
+          shape_ = makeMutableCopy(shape_);
         }
+        bitField0_ |= 0x00000002;
       }
       /**
        * 
@@ -7173,8 +7286,8 @@ private void ensureShapeIsMutable() {
        */
       public java.util.List
           getShapeList() {
-        return ((bitField0_ & 0x00000002) != 0) ?
-                 java.util.Collections.unmodifiableList(shape_) : shape_;
+        shape_.makeImmutable();
+        return shape_;
       }
       /**
        * 
@@ -7214,6 +7327,7 @@ public Builder setShape(
 
         ensureShapeIsMutable();
         shape_.setInt(index, value);
+        bitField0_ |= 0x00000002;
         onChanged();
         return this;
       }
@@ -7230,6 +7344,7 @@ public Builder addShape(int value) {
 
         ensureShapeIsMutable();
         shape_.addInt(value);
+        bitField0_ |= 0x00000002;
         onChanged();
         return this;
       }
@@ -7247,6 +7362,7 @@ public Builder addAllShape(
         ensureShapeIsMutable();
         com.google.protobuf.AbstractMessageLite.Builder.addAll(
             values, shape_);
+        bitField0_ |= 0x00000002;
         onChanged();
         return this;
       }
@@ -11979,6 +12095,1855 @@ public org.vdaas.vald.api.v1.payload.Object.Locations getDefaultInstanceForType(
 
   }
 
+  public interface ListOrBuilder extends
+      // @@protoc_insertion_point(interface_extends:payload.v1.Object.List)
+      com.google.protobuf.MessageOrBuilder {
+  }
+  /**
+   * 
+   * Represent the list object vector stream request and response.
+   * 
+ * + * Protobuf type {@code payload.v1.Object.List} + */ + public static final class List extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:payload.v1.Object.List) + ListOrBuilder { + private static final long serialVersionUID = 0L; + // Use List.newBuilder() to construct. + private List(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private List() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new List(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Object_List_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Object_List_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.vdaas.vald.api.v1.payload.Object.List.class, org.vdaas.vald.api.v1.payload.Object.List.Builder.class); + } + + public interface RequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:payload.v1.Object.List.Request) + com.google.protobuf.MessageOrBuilder { + } + /** + * Protobuf type {@code payload.v1.Object.List.Request} + */ + public static final class Request extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:payload.v1.Object.List.Request) + RequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use Request.newBuilder() to construct. + private Request(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Request() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Request(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Object_List_Request_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Object_List_Request_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.vdaas.vald.api.v1.payload.Object.List.Request.class, org.vdaas.vald.api.v1.payload.Object.List.Request.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 { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.vdaas.vald.api.v1.payload.Object.List.Request)) { + return super.equals(obj); + } + org.vdaas.vald.api.v1.payload.Object.List.Request other = (org.vdaas.vald.api.v1.payload.Object.List.Request) obj; + + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.vdaas.vald.api.v1.payload.Object.List.Request parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.vdaas.vald.api.v1.payload.Object.List.Request parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.vdaas.vald.api.v1.payload.Object.List.Request parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.vdaas.vald.api.v1.payload.Object.List.Request parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.vdaas.vald.api.v1.payload.Object.List.Request parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.vdaas.vald.api.v1.payload.Object.List.Request parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.vdaas.vald.api.v1.payload.Object.List.Request parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.vdaas.vald.api.v1.payload.Object.List.Request parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static org.vdaas.vald.api.v1.payload.Object.List.Request parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static org.vdaas.vald.api.v1.payload.Object.List.Request parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.vdaas.vald.api.v1.payload.Object.List.Request parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.vdaas.vald.api.v1.payload.Object.List.Request parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.vdaas.vald.api.v1.payload.Object.List.Request prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code payload.v1.Object.List.Request} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:payload.v1.Object.List.Request) + org.vdaas.vald.api.v1.payload.Object.List.RequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Object_List_Request_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Object_List_Request_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.vdaas.vald.api.v1.payload.Object.List.Request.class, org.vdaas.vald.api.v1.payload.Object.List.Request.Builder.class); + } + + // Construct using org.vdaas.vald.api.v1.payload.Object.List.Request.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Object_List_Request_descriptor; + } + + @java.lang.Override + public org.vdaas.vald.api.v1.payload.Object.List.Request getDefaultInstanceForType() { + return org.vdaas.vald.api.v1.payload.Object.List.Request.getDefaultInstance(); + } + + @java.lang.Override + public org.vdaas.vald.api.v1.payload.Object.List.Request build() { + org.vdaas.vald.api.v1.payload.Object.List.Request result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.vdaas.vald.api.v1.payload.Object.List.Request buildPartial() { + org.vdaas.vald.api.v1.payload.Object.List.Request result = new org.vdaas.vald.api.v1.payload.Object.List.Request(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.vdaas.vald.api.v1.payload.Object.List.Request) { + return mergeFrom((org.vdaas.vald.api.v1.payload.Object.List.Request)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.vdaas.vald.api.v1.payload.Object.List.Request other) { + if (other == org.vdaas.vald.api.v1.payload.Object.List.Request.getDefaultInstance()) return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:payload.v1.Object.List.Request) + } + + // @@protoc_insertion_point(class_scope:payload.v1.Object.List.Request) + private static final org.vdaas.vald.api.v1.payload.Object.List.Request DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.vdaas.vald.api.v1.payload.Object.List.Request(); + } + + public static org.vdaas.vald.api.v1.payload.Object.List.Request getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Request parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public org.vdaas.vald.api.v1.payload.Object.List.Request getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:payload.v1.Object.List.Response) + com.google.protobuf.MessageOrBuilder { + + /** + *
+       * The vector
+       * 
+ * + * .payload.v1.Object.Vector vector = 1; + * @return Whether the vector field is set. + */ + boolean hasVector(); + /** + *
+       * The vector
+       * 
+ * + * .payload.v1.Object.Vector vector = 1; + * @return The vector. + */ + org.vdaas.vald.api.v1.payload.Object.Vector getVector(); + /** + *
+       * The vector
+       * 
+ * + * .payload.v1.Object.Vector vector = 1; + */ + org.vdaas.vald.api.v1.payload.Object.VectorOrBuilder getVectorOrBuilder(); + + /** + *
+       * The RPC error status.
+       * 
+ * + * .google.rpc.Status status = 2; + * @return Whether the status field is set. + */ + boolean hasStatus(); + /** + *
+       * The RPC error status.
+       * 
+ * + * .google.rpc.Status status = 2; + * @return The status. + */ + com.google.rpc.Status getStatus(); + /** + *
+       * The RPC error status.
+       * 
+ * + * .google.rpc.Status status = 2; + */ + com.google.rpc.StatusOrBuilder getStatusOrBuilder(); + + org.vdaas.vald.api.v1.payload.Object.List.Response.PayloadCase getPayloadCase(); + } + /** + * Protobuf type {@code payload.v1.Object.List.Response} + */ + public static final class Response extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:payload.v1.Object.List.Response) + ResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use Response.newBuilder() to construct. + private Response(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Response() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Response(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Object_List_Response_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Object_List_Response_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.vdaas.vald.api.v1.payload.Object.List.Response.class, org.vdaas.vald.api.v1.payload.Object.List.Response.Builder.class); + } + + private int payloadCase_ = 0; + @SuppressWarnings("serial") + private java.lang.Object payload_; + public enum PayloadCase + implements com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + VECTOR(1), + STATUS(2), + PAYLOAD_NOT_SET(0); + private final int value; + private PayloadCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static PayloadCase valueOf(int value) { + return forNumber(value); + } + + public static PayloadCase forNumber(int value) { + switch (value) { + case 1: return VECTOR; + case 2: return STATUS; + case 0: return PAYLOAD_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public PayloadCase + getPayloadCase() { + return PayloadCase.forNumber( + payloadCase_); + } + + public static final int VECTOR_FIELD_NUMBER = 1; + /** + *
+       * The vector
+       * 
+ * + * .payload.v1.Object.Vector vector = 1; + * @return Whether the vector field is set. + */ + @java.lang.Override + public boolean hasVector() { + return payloadCase_ == 1; + } + /** + *
+       * The vector
+       * 
+ * + * .payload.v1.Object.Vector vector = 1; + * @return The vector. + */ + @java.lang.Override + public org.vdaas.vald.api.v1.payload.Object.Vector getVector() { + if (payloadCase_ == 1) { + return (org.vdaas.vald.api.v1.payload.Object.Vector) payload_; + } + return org.vdaas.vald.api.v1.payload.Object.Vector.getDefaultInstance(); + } + /** + *
+       * The vector
+       * 
+ * + * .payload.v1.Object.Vector vector = 1; + */ + @java.lang.Override + public org.vdaas.vald.api.v1.payload.Object.VectorOrBuilder getVectorOrBuilder() { + if (payloadCase_ == 1) { + return (org.vdaas.vald.api.v1.payload.Object.Vector) payload_; + } + return org.vdaas.vald.api.v1.payload.Object.Vector.getDefaultInstance(); + } + + public static final int STATUS_FIELD_NUMBER = 2; + /** + *
+       * The RPC error status.
+       * 
+ * + * .google.rpc.Status status = 2; + * @return Whether the status field is set. + */ + @java.lang.Override + public boolean hasStatus() { + return payloadCase_ == 2; + } + /** + *
+       * The RPC error status.
+       * 
+ * + * .google.rpc.Status status = 2; + * @return The status. + */ + @java.lang.Override + public com.google.rpc.Status getStatus() { + if (payloadCase_ == 2) { + return (com.google.rpc.Status) payload_; + } + return com.google.rpc.Status.getDefaultInstance(); + } + /** + *
+       * The RPC error status.
+       * 
+ * + * .google.rpc.Status status = 2; + */ + @java.lang.Override + public com.google.rpc.StatusOrBuilder getStatusOrBuilder() { + if (payloadCase_ == 2) { + return (com.google.rpc.Status) payload_; + } + return com.google.rpc.Status.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 (payloadCase_ == 1) { + output.writeMessage(1, (org.vdaas.vald.api.v1.payload.Object.Vector) payload_); + } + if (payloadCase_ == 2) { + output.writeMessage(2, (com.google.rpc.Status) payload_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (payloadCase_ == 1) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (org.vdaas.vald.api.v1.payload.Object.Vector) payload_); + } + if (payloadCase_ == 2) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (com.google.rpc.Status) payload_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.vdaas.vald.api.v1.payload.Object.List.Response)) { + return super.equals(obj); + } + org.vdaas.vald.api.v1.payload.Object.List.Response other = (org.vdaas.vald.api.v1.payload.Object.List.Response) obj; + + if (!getPayloadCase().equals(other.getPayloadCase())) return false; + switch (payloadCase_) { + case 1: + if (!getVector() + .equals(other.getVector())) return false; + break; + case 2: + if (!getStatus() + .equals(other.getStatus())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (payloadCase_) { + case 1: + hash = (37 * hash) + VECTOR_FIELD_NUMBER; + hash = (53 * hash) + getVector().hashCode(); + break; + case 2: + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + getStatus().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.vdaas.vald.api.v1.payload.Object.List.Response parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.vdaas.vald.api.v1.payload.Object.List.Response parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.vdaas.vald.api.v1.payload.Object.List.Response parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.vdaas.vald.api.v1.payload.Object.List.Response parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.vdaas.vald.api.v1.payload.Object.List.Response parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.vdaas.vald.api.v1.payload.Object.List.Response parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.vdaas.vald.api.v1.payload.Object.List.Response parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.vdaas.vald.api.v1.payload.Object.List.Response parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static org.vdaas.vald.api.v1.payload.Object.List.Response parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static org.vdaas.vald.api.v1.payload.Object.List.Response parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.vdaas.vald.api.v1.payload.Object.List.Response parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.vdaas.vald.api.v1.payload.Object.List.Response parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.vdaas.vald.api.v1.payload.Object.List.Response prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code payload.v1.Object.List.Response} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:payload.v1.Object.List.Response) + org.vdaas.vald.api.v1.payload.Object.List.ResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Object_List_Response_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Object_List_Response_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.vdaas.vald.api.v1.payload.Object.List.Response.class, org.vdaas.vald.api.v1.payload.Object.List.Response.Builder.class); + } + + // Construct using org.vdaas.vald.api.v1.payload.Object.List.Response.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (vectorBuilder_ != null) { + vectorBuilder_.clear(); + } + if (statusBuilder_ != null) { + statusBuilder_.clear(); + } + payloadCase_ = 0; + payload_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Object_List_Response_descriptor; + } + + @java.lang.Override + public org.vdaas.vald.api.v1.payload.Object.List.Response getDefaultInstanceForType() { + return org.vdaas.vald.api.v1.payload.Object.List.Response.getDefaultInstance(); + } + + @java.lang.Override + public org.vdaas.vald.api.v1.payload.Object.List.Response build() { + org.vdaas.vald.api.v1.payload.Object.List.Response result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.vdaas.vald.api.v1.payload.Object.List.Response buildPartial() { + org.vdaas.vald.api.v1.payload.Object.List.Response result = new org.vdaas.vald.api.v1.payload.Object.List.Response(this); + if (bitField0_ != 0) { buildPartial0(result); } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(org.vdaas.vald.api.v1.payload.Object.List.Response result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs(org.vdaas.vald.api.v1.payload.Object.List.Response result) { + result.payloadCase_ = payloadCase_; + result.payload_ = this.payload_; + if (payloadCase_ == 1 && + vectorBuilder_ != null) { + result.payload_ = vectorBuilder_.build(); + } + if (payloadCase_ == 2 && + statusBuilder_ != null) { + result.payload_ = statusBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.vdaas.vald.api.v1.payload.Object.List.Response) { + return mergeFrom((org.vdaas.vald.api.v1.payload.Object.List.Response)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.vdaas.vald.api.v1.payload.Object.List.Response other) { + if (other == org.vdaas.vald.api.v1.payload.Object.List.Response.getDefaultInstance()) return this; + switch (other.getPayloadCase()) { + case VECTOR: { + mergeVector(other.getVector()); + break; + } + case STATUS: { + mergeStatus(other.getStatus()); + break; + } + case PAYLOAD_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getVectorFieldBuilder().getBuilder(), + extensionRegistry); + payloadCase_ = 1; + break; + } // case 10 + case 18: { + input.readMessage( + getStatusFieldBuilder().getBuilder(), + extensionRegistry); + payloadCase_ = 2; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int payloadCase_ = 0; + private java.lang.Object payload_; + public PayloadCase + getPayloadCase() { + return PayloadCase.forNumber( + payloadCase_); + } + + public Builder clearPayload() { + payloadCase_ = 0; + payload_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + org.vdaas.vald.api.v1.payload.Object.Vector, org.vdaas.vald.api.v1.payload.Object.Vector.Builder, org.vdaas.vald.api.v1.payload.Object.VectorOrBuilder> vectorBuilder_; + /** + *
+         * The vector
+         * 
+ * + * .payload.v1.Object.Vector vector = 1; + * @return Whether the vector field is set. + */ + @java.lang.Override + public boolean hasVector() { + return payloadCase_ == 1; + } + /** + *
+         * The vector
+         * 
+ * + * .payload.v1.Object.Vector vector = 1; + * @return The vector. + */ + @java.lang.Override + public org.vdaas.vald.api.v1.payload.Object.Vector getVector() { + if (vectorBuilder_ == null) { + if (payloadCase_ == 1) { + return (org.vdaas.vald.api.v1.payload.Object.Vector) payload_; + } + return org.vdaas.vald.api.v1.payload.Object.Vector.getDefaultInstance(); + } else { + if (payloadCase_ == 1) { + return vectorBuilder_.getMessage(); + } + return org.vdaas.vald.api.v1.payload.Object.Vector.getDefaultInstance(); + } + } + /** + *
+         * The vector
+         * 
+ * + * .payload.v1.Object.Vector vector = 1; + */ + public Builder setVector(org.vdaas.vald.api.v1.payload.Object.Vector value) { + if (vectorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + payload_ = value; + onChanged(); + } else { + vectorBuilder_.setMessage(value); + } + payloadCase_ = 1; + return this; + } + /** + *
+         * The vector
+         * 
+ * + * .payload.v1.Object.Vector vector = 1; + */ + public Builder setVector( + org.vdaas.vald.api.v1.payload.Object.Vector.Builder builderForValue) { + if (vectorBuilder_ == null) { + payload_ = builderForValue.build(); + onChanged(); + } else { + vectorBuilder_.setMessage(builderForValue.build()); + } + payloadCase_ = 1; + return this; + } + /** + *
+         * The vector
+         * 
+ * + * .payload.v1.Object.Vector vector = 1; + */ + public Builder mergeVector(org.vdaas.vald.api.v1.payload.Object.Vector value) { + if (vectorBuilder_ == null) { + if (payloadCase_ == 1 && + payload_ != org.vdaas.vald.api.v1.payload.Object.Vector.getDefaultInstance()) { + payload_ = org.vdaas.vald.api.v1.payload.Object.Vector.newBuilder((org.vdaas.vald.api.v1.payload.Object.Vector) payload_) + .mergeFrom(value).buildPartial(); + } else { + payload_ = value; + } + onChanged(); + } else { + if (payloadCase_ == 1) { + vectorBuilder_.mergeFrom(value); + } else { + vectorBuilder_.setMessage(value); + } + } + payloadCase_ = 1; + return this; + } + /** + *
+         * The vector
+         * 
+ * + * .payload.v1.Object.Vector vector = 1; + */ + public Builder clearVector() { + if (vectorBuilder_ == null) { + if (payloadCase_ == 1) { + payloadCase_ = 0; + payload_ = null; + onChanged(); + } + } else { + if (payloadCase_ == 1) { + payloadCase_ = 0; + payload_ = null; + } + vectorBuilder_.clear(); + } + return this; + } + /** + *
+         * The vector
+         * 
+ * + * .payload.v1.Object.Vector vector = 1; + */ + public org.vdaas.vald.api.v1.payload.Object.Vector.Builder getVectorBuilder() { + return getVectorFieldBuilder().getBuilder(); + } + /** + *
+         * The vector
+         * 
+ * + * .payload.v1.Object.Vector vector = 1; + */ + @java.lang.Override + public org.vdaas.vald.api.v1.payload.Object.VectorOrBuilder getVectorOrBuilder() { + if ((payloadCase_ == 1) && (vectorBuilder_ != null)) { + return vectorBuilder_.getMessageOrBuilder(); + } else { + if (payloadCase_ == 1) { + return (org.vdaas.vald.api.v1.payload.Object.Vector) payload_; + } + return org.vdaas.vald.api.v1.payload.Object.Vector.getDefaultInstance(); + } + } + /** + *
+         * The vector
+         * 
+ * + * .payload.v1.Object.Vector vector = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.vdaas.vald.api.v1.payload.Object.Vector, org.vdaas.vald.api.v1.payload.Object.Vector.Builder, org.vdaas.vald.api.v1.payload.Object.VectorOrBuilder> + getVectorFieldBuilder() { + if (vectorBuilder_ == null) { + if (!(payloadCase_ == 1)) { + payload_ = org.vdaas.vald.api.v1.payload.Object.Vector.getDefaultInstance(); + } + vectorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.vdaas.vald.api.v1.payload.Object.Vector, org.vdaas.vald.api.v1.payload.Object.Vector.Builder, org.vdaas.vald.api.v1.payload.Object.VectorOrBuilder>( + (org.vdaas.vald.api.v1.payload.Object.Vector) payload_, + getParentForChildren(), + isClean()); + payload_ = null; + } + payloadCase_ = 1; + onChanged(); + return vectorBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> statusBuilder_; + /** + *
+         * The RPC error status.
+         * 
+ * + * .google.rpc.Status status = 2; + * @return Whether the status field is set. + */ + @java.lang.Override + public boolean hasStatus() { + return payloadCase_ == 2; + } + /** + *
+         * The RPC error status.
+         * 
+ * + * .google.rpc.Status status = 2; + * @return The status. + */ + @java.lang.Override + public com.google.rpc.Status getStatus() { + if (statusBuilder_ == null) { + if (payloadCase_ == 2) { + return (com.google.rpc.Status) payload_; + } + return com.google.rpc.Status.getDefaultInstance(); + } else { + if (payloadCase_ == 2) { + return statusBuilder_.getMessage(); + } + return com.google.rpc.Status.getDefaultInstance(); + } + } + /** + *
+         * The RPC error status.
+         * 
+ * + * .google.rpc.Status status = 2; + */ + public Builder setStatus(com.google.rpc.Status value) { + if (statusBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + payload_ = value; + onChanged(); + } else { + statusBuilder_.setMessage(value); + } + payloadCase_ = 2; + return this; + } + /** + *
+         * The RPC error status.
+         * 
+ * + * .google.rpc.Status status = 2; + */ + public Builder setStatus( + com.google.rpc.Status.Builder builderForValue) { + if (statusBuilder_ == null) { + payload_ = builderForValue.build(); + onChanged(); + } else { + statusBuilder_.setMessage(builderForValue.build()); + } + payloadCase_ = 2; + return this; + } + /** + *
+         * The RPC error status.
+         * 
+ * + * .google.rpc.Status status = 2; + */ + public Builder mergeStatus(com.google.rpc.Status value) { + if (statusBuilder_ == null) { + if (payloadCase_ == 2 && + payload_ != com.google.rpc.Status.getDefaultInstance()) { + payload_ = com.google.rpc.Status.newBuilder((com.google.rpc.Status) payload_) + .mergeFrom(value).buildPartial(); + } else { + payload_ = value; + } + onChanged(); + } else { + if (payloadCase_ == 2) { + statusBuilder_.mergeFrom(value); + } else { + statusBuilder_.setMessage(value); + } + } + payloadCase_ = 2; + return this; + } + /** + *
+         * The RPC error status.
+         * 
+ * + * .google.rpc.Status status = 2; + */ + public Builder clearStatus() { + if (statusBuilder_ == null) { + if (payloadCase_ == 2) { + payloadCase_ = 0; + payload_ = null; + onChanged(); + } + } else { + if (payloadCase_ == 2) { + payloadCase_ = 0; + payload_ = null; + } + statusBuilder_.clear(); + } + return this; + } + /** + *
+         * The RPC error status.
+         * 
+ * + * .google.rpc.Status status = 2; + */ + public com.google.rpc.Status.Builder getStatusBuilder() { + return getStatusFieldBuilder().getBuilder(); + } + /** + *
+         * The RPC error status.
+         * 
+ * + * .google.rpc.Status status = 2; + */ + @java.lang.Override + public com.google.rpc.StatusOrBuilder getStatusOrBuilder() { + if ((payloadCase_ == 2) && (statusBuilder_ != null)) { + return statusBuilder_.getMessageOrBuilder(); + } else { + if (payloadCase_ == 2) { + return (com.google.rpc.Status) payload_; + } + return com.google.rpc.Status.getDefaultInstance(); + } + } + /** + *
+         * The RPC error status.
+         * 
+ * + * .google.rpc.Status status = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + getStatusFieldBuilder() { + if (statusBuilder_ == null) { + if (!(payloadCase_ == 2)) { + payload_ = com.google.rpc.Status.getDefaultInstance(); + } + statusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>( + (com.google.rpc.Status) payload_, + getParentForChildren(), + isClean()); + payload_ = null; + } + payloadCase_ = 2; + onChanged(); + return statusBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:payload.v1.Object.List.Response) + } + + // @@protoc_insertion_point(class_scope:payload.v1.Object.List.Response) + private static final org.vdaas.vald.api.v1.payload.Object.List.Response DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.vdaas.vald.api.v1.payload.Object.List.Response(); + } + + public static org.vdaas.vald.api.v1.payload.Object.List.Response getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Response parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public org.vdaas.vald.api.v1.payload.Object.List.Response getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.vdaas.vald.api.v1.payload.Object.List)) { + return super.equals(obj); + } + org.vdaas.vald.api.v1.payload.Object.List other = (org.vdaas.vald.api.v1.payload.Object.List) obj; + + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.vdaas.vald.api.v1.payload.Object.List parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.vdaas.vald.api.v1.payload.Object.List parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.vdaas.vald.api.v1.payload.Object.List parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.vdaas.vald.api.v1.payload.Object.List parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.vdaas.vald.api.v1.payload.Object.List parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.vdaas.vald.api.v1.payload.Object.List parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.vdaas.vald.api.v1.payload.Object.List parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.vdaas.vald.api.v1.payload.Object.List parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static org.vdaas.vald.api.v1.payload.Object.List parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static org.vdaas.vald.api.v1.payload.Object.List parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.vdaas.vald.api.v1.payload.Object.List parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.vdaas.vald.api.v1.payload.Object.List parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.vdaas.vald.api.v1.payload.Object.List prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Represent the list object vector stream request and response.
+     * 
+ * + * Protobuf type {@code payload.v1.Object.List} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:payload.v1.Object.List) + org.vdaas.vald.api.v1.payload.Object.ListOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Object_List_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Object_List_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.vdaas.vald.api.v1.payload.Object.List.class, org.vdaas.vald.api.v1.payload.Object.List.Builder.class); + } + + // Construct using org.vdaas.vald.api.v1.payload.Object.List.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Object_List_descriptor; + } + + @java.lang.Override + public org.vdaas.vald.api.v1.payload.Object.List getDefaultInstanceForType() { + return org.vdaas.vald.api.v1.payload.Object.List.getDefaultInstance(); + } + + @java.lang.Override + public org.vdaas.vald.api.v1.payload.Object.List build() { + org.vdaas.vald.api.v1.payload.Object.List result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.vdaas.vald.api.v1.payload.Object.List buildPartial() { + org.vdaas.vald.api.v1.payload.Object.List result = new org.vdaas.vald.api.v1.payload.Object.List(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.vdaas.vald.api.v1.payload.Object.List) { + return mergeFrom((org.vdaas.vald.api.v1.payload.Object.List)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.vdaas.vald.api.v1.payload.Object.List other) { + if (other == org.vdaas.vald.api.v1.payload.Object.List.getDefaultInstance()) return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:payload.v1.Object.List) + } + + // @@protoc_insertion_point(class_scope:payload.v1.Object.List) + private static final org.vdaas.vald.api.v1.payload.Object.List DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.vdaas.vald.api.v1.payload.Object.List(); + } + + public static org.vdaas.vald.api.v1.payload.Object.List getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public List parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public org.vdaas.vald.api.v1.payload.Object.List getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { diff --git a/src/main/java/org/vdaas/vald/api/v1/payload/Remove.java b/src/main/java/org/vdaas/vald/api/v1/payload/Remove.java index aa2f04ca..893eb1bb 100644 --- a/src/main/java/org/vdaas/vald/api/v1/payload/Remove.java +++ b/src/main/java/org/vdaas/vald/api/v1/payload/Remove.java @@ -139,6 +139,7 @@ protected java.lang.Object newInstance( org.vdaas.vald.api.v1.payload.Remove.Request.class, org.vdaas.vald.api.v1.payload.Remove.Request.Builder.class); } + private int bitField0_; public static final int ID_FIELD_NUMBER = 1; private org.vdaas.vald.api.v1.payload.Object.ID id_; /** @@ -151,7 +152,7 @@ protected java.lang.Object newInstance( */ @java.lang.Override public boolean hasId() { - return id_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** *
@@ -189,7 +190,7 @@ public org.vdaas.vald.api.v1.payload.Object.IDOrBuilder getIdOrBuilder() {
      */
     @java.lang.Override
     public boolean hasConfig() {
-      return config_ != null;
+      return ((bitField0_ & 0x00000002) != 0);
     }
     /**
      * 
@@ -229,10 +230,10 @@ public final boolean isInitialized() {
     @java.lang.Override
     public void writeTo(com.google.protobuf.CodedOutputStream output)
                         throws java.io.IOException {
-      if (id_ != null) {
+      if (((bitField0_ & 0x00000001) != 0)) {
         output.writeMessage(1, getId());
       }
-      if (config_ != null) {
+      if (((bitField0_ & 0x00000002) != 0)) {
         output.writeMessage(2, getConfig());
       }
       getUnknownFields().writeTo(output);
@@ -244,11 +245,11 @@ public int getSerializedSize() {
       if (size != -1) return size;
 
       size = 0;
-      if (id_ != null) {
+      if (((bitField0_ & 0x00000001) != 0)) {
         size += com.google.protobuf.CodedOutputStream
           .computeMessageSize(1, getId());
       }
-      if (config_ != null) {
+      if (((bitField0_ & 0x00000002) != 0)) {
         size += com.google.protobuf.CodedOutputStream
           .computeMessageSize(2, getConfig());
       }
@@ -419,13 +420,20 @@ public static final class Builder extends
 
       // Construct using org.vdaas.vald.api.v1.payload.Remove.Request.newBuilder()
       private Builder() {
-
+        maybeForceBuilderInitialization();
       }
 
       private Builder(
           com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
-
+        maybeForceBuilderInitialization();
+      }
+      private void maybeForceBuilderInitialization() {
+        if (com.google.protobuf.GeneratedMessageV3
+                .alwaysUseFieldBuilders) {
+          getIdFieldBuilder();
+          getConfigFieldBuilder();
+        }
       }
       @java.lang.Override
       public Builder clear() {
@@ -474,16 +482,20 @@ public org.vdaas.vald.api.v1.payload.Remove.Request buildPartial() {
 
       private void buildPartial0(org.vdaas.vald.api.v1.payload.Remove.Request result) {
         int from_bitField0_ = bitField0_;
+        int to_bitField0_ = 0;
         if (((from_bitField0_ & 0x00000001) != 0)) {
           result.id_ = idBuilder_ == null
               ? id_
               : idBuilder_.build();
+          to_bitField0_ |= 0x00000001;
         }
         if (((from_bitField0_ & 0x00000002) != 0)) {
           result.config_ = configBuilder_ == null
               ? config_
               : configBuilder_.build();
+          to_bitField0_ |= 0x00000002;
         }
+        result.bitField0_ |= to_bitField0_;
       }
 
       @java.lang.Override
@@ -679,8 +691,10 @@ public Builder mergeId(org.vdaas.vald.api.v1.payload.Object.ID value) {
         } else {
           idBuilder_.mergeFrom(value);
         }
-        bitField0_ |= 0x00000001;
-        onChanged();
+        if (id_ != null) {
+          bitField0_ |= 0x00000001;
+          onChanged();
+        }
         return this;
       }
       /**
@@ -834,8 +848,10 @@ public Builder mergeConfig(org.vdaas.vald.api.v1.payload.Remove.Config value) {
         } else {
           configBuilder_.mergeFrom(value);
         }
-        bitField0_ |= 0x00000002;
-        onChanged();
+        if (config_ != null) {
+          bitField0_ |= 0x00000002;
+          onChanged();
+        }
         return this;
       }
       /**
@@ -1868,6 +1884,1694 @@ public org.vdaas.vald.api.v1.payload.Remove.MultiRequest getDefaultInstanceForTy
 
   }
 
+  public interface TimestampRequestOrBuilder extends
+      // @@protoc_insertion_point(interface_extends:payload.v1.Remove.TimestampRequest)
+      com.google.protobuf.MessageOrBuilder {
+
+    /**
+     * 
+     * Represent the multiple remove request contents based on timestamp.
+     * 
+ * + * repeated .payload.v1.Remove.Timestamp timestamps = 1; + */ + java.util.List + getTimestampsList(); + /** + *
+     * Represent the multiple remove request contents based on timestamp.
+     * 
+ * + * repeated .payload.v1.Remove.Timestamp timestamps = 1; + */ + org.vdaas.vald.api.v1.payload.Remove.Timestamp getTimestamps(int index); + /** + *
+     * Represent the multiple remove request contents based on timestamp.
+     * 
+ * + * repeated .payload.v1.Remove.Timestamp timestamps = 1; + */ + int getTimestampsCount(); + /** + *
+     * Represent the multiple remove request contents based on timestamp.
+     * 
+ * + * repeated .payload.v1.Remove.Timestamp timestamps = 1; + */ + java.util.List + getTimestampsOrBuilderList(); + /** + *
+     * Represent the multiple remove request contents based on timestamp.
+     * 
+ * + * repeated .payload.v1.Remove.Timestamp timestamps = 1; + */ + org.vdaas.vald.api.v1.payload.Remove.TimestampOrBuilder getTimestampsOrBuilder( + int index); + } + /** + *
+   * Represent the remove request based on timestamp.
+   * 
+ * + * Protobuf type {@code payload.v1.Remove.TimestampRequest} + */ + public static final class TimestampRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:payload.v1.Remove.TimestampRequest) + TimestampRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use TimestampRequest.newBuilder() to construct. + private TimestampRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TimestampRequest() { + timestamps_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new TimestampRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Remove_TimestampRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Remove_TimestampRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.vdaas.vald.api.v1.payload.Remove.TimestampRequest.class, org.vdaas.vald.api.v1.payload.Remove.TimestampRequest.Builder.class); + } + + public static final int TIMESTAMPS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private java.util.List timestamps_; + /** + *
+     * Represent the multiple remove request contents based on timestamp.
+     * 
+ * + * repeated .payload.v1.Remove.Timestamp timestamps = 1; + */ + @java.lang.Override + public java.util.List getTimestampsList() { + return timestamps_; + } + /** + *
+     * Represent the multiple remove request contents based on timestamp.
+     * 
+ * + * repeated .payload.v1.Remove.Timestamp timestamps = 1; + */ + @java.lang.Override + public java.util.List + getTimestampsOrBuilderList() { + return timestamps_; + } + /** + *
+     * Represent the multiple remove request contents based on timestamp.
+     * 
+ * + * repeated .payload.v1.Remove.Timestamp timestamps = 1; + */ + @java.lang.Override + public int getTimestampsCount() { + return timestamps_.size(); + } + /** + *
+     * Represent the multiple remove request contents based on timestamp.
+     * 
+ * + * repeated .payload.v1.Remove.Timestamp timestamps = 1; + */ + @java.lang.Override + public org.vdaas.vald.api.v1.payload.Remove.Timestamp getTimestamps(int index) { + return timestamps_.get(index); + } + /** + *
+     * Represent the multiple remove request contents based on timestamp.
+     * 
+ * + * repeated .payload.v1.Remove.Timestamp timestamps = 1; + */ + @java.lang.Override + public org.vdaas.vald.api.v1.payload.Remove.TimestampOrBuilder getTimestampsOrBuilder( + int index) { + return timestamps_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < timestamps_.size(); i++) { + output.writeMessage(1, timestamps_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < timestamps_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, timestamps_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.vdaas.vald.api.v1.payload.Remove.TimestampRequest)) { + return super.equals(obj); + } + org.vdaas.vald.api.v1.payload.Remove.TimestampRequest other = (org.vdaas.vald.api.v1.payload.Remove.TimestampRequest) obj; + + if (!getTimestampsList() + .equals(other.getTimestampsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getTimestampsCount() > 0) { + hash = (37 * hash) + TIMESTAMPS_FIELD_NUMBER; + hash = (53 * hash) + getTimestampsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.vdaas.vald.api.v1.payload.Remove.TimestampRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.vdaas.vald.api.v1.payload.Remove.TimestampRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.vdaas.vald.api.v1.payload.Remove.TimestampRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.vdaas.vald.api.v1.payload.Remove.TimestampRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.vdaas.vald.api.v1.payload.Remove.TimestampRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.vdaas.vald.api.v1.payload.Remove.TimestampRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.vdaas.vald.api.v1.payload.Remove.TimestampRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.vdaas.vald.api.v1.payload.Remove.TimestampRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static org.vdaas.vald.api.v1.payload.Remove.TimestampRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static org.vdaas.vald.api.v1.payload.Remove.TimestampRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.vdaas.vald.api.v1.payload.Remove.TimestampRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.vdaas.vald.api.v1.payload.Remove.TimestampRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.vdaas.vald.api.v1.payload.Remove.TimestampRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Represent the remove request based on timestamp.
+     * 
+ * + * Protobuf type {@code payload.v1.Remove.TimestampRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:payload.v1.Remove.TimestampRequest) + org.vdaas.vald.api.v1.payload.Remove.TimestampRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Remove_TimestampRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Remove_TimestampRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.vdaas.vald.api.v1.payload.Remove.TimestampRequest.class, org.vdaas.vald.api.v1.payload.Remove.TimestampRequest.Builder.class); + } + + // Construct using org.vdaas.vald.api.v1.payload.Remove.TimestampRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (timestampsBuilder_ == null) { + timestamps_ = java.util.Collections.emptyList(); + } else { + timestamps_ = null; + timestampsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Remove_TimestampRequest_descriptor; + } + + @java.lang.Override + public org.vdaas.vald.api.v1.payload.Remove.TimestampRequest getDefaultInstanceForType() { + return org.vdaas.vald.api.v1.payload.Remove.TimestampRequest.getDefaultInstance(); + } + + @java.lang.Override + public org.vdaas.vald.api.v1.payload.Remove.TimestampRequest build() { + org.vdaas.vald.api.v1.payload.Remove.TimestampRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.vdaas.vald.api.v1.payload.Remove.TimestampRequest buildPartial() { + org.vdaas.vald.api.v1.payload.Remove.TimestampRequest result = new org.vdaas.vald.api.v1.payload.Remove.TimestampRequest(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(org.vdaas.vald.api.v1.payload.Remove.TimestampRequest result) { + if (timestampsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + timestamps_ = java.util.Collections.unmodifiableList(timestamps_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.timestamps_ = timestamps_; + } else { + result.timestamps_ = timestampsBuilder_.build(); + } + } + + private void buildPartial0(org.vdaas.vald.api.v1.payload.Remove.TimestampRequest result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.vdaas.vald.api.v1.payload.Remove.TimestampRequest) { + return mergeFrom((org.vdaas.vald.api.v1.payload.Remove.TimestampRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.vdaas.vald.api.v1.payload.Remove.TimestampRequest other) { + if (other == org.vdaas.vald.api.v1.payload.Remove.TimestampRequest.getDefaultInstance()) return this; + if (timestampsBuilder_ == null) { + if (!other.timestamps_.isEmpty()) { + if (timestamps_.isEmpty()) { + timestamps_ = other.timestamps_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureTimestampsIsMutable(); + timestamps_.addAll(other.timestamps_); + } + onChanged(); + } + } else { + if (!other.timestamps_.isEmpty()) { + if (timestampsBuilder_.isEmpty()) { + timestampsBuilder_.dispose(); + timestampsBuilder_ = null; + timestamps_ = other.timestamps_; + bitField0_ = (bitField0_ & ~0x00000001); + timestampsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getTimestampsFieldBuilder() : null; + } else { + timestampsBuilder_.addAllMessages(other.timestamps_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + org.vdaas.vald.api.v1.payload.Remove.Timestamp m = + input.readMessage( + org.vdaas.vald.api.v1.payload.Remove.Timestamp.parser(), + extensionRegistry); + if (timestampsBuilder_ == null) { + ensureTimestampsIsMutable(); + timestamps_.add(m); + } else { + timestampsBuilder_.addMessage(m); + } + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.util.List timestamps_ = + java.util.Collections.emptyList(); + private void ensureTimestampsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + timestamps_ = new java.util.ArrayList(timestamps_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + org.vdaas.vald.api.v1.payload.Remove.Timestamp, org.vdaas.vald.api.v1.payload.Remove.Timestamp.Builder, org.vdaas.vald.api.v1.payload.Remove.TimestampOrBuilder> timestampsBuilder_; + + /** + *
+       * Represent the multiple remove request contents based on timestamp.
+       * 
+ * + * repeated .payload.v1.Remove.Timestamp timestamps = 1; + */ + public java.util.List getTimestampsList() { + if (timestampsBuilder_ == null) { + return java.util.Collections.unmodifiableList(timestamps_); + } else { + return timestampsBuilder_.getMessageList(); + } + } + /** + *
+       * Represent the multiple remove request contents based on timestamp.
+       * 
+ * + * repeated .payload.v1.Remove.Timestamp timestamps = 1; + */ + public int getTimestampsCount() { + if (timestampsBuilder_ == null) { + return timestamps_.size(); + } else { + return timestampsBuilder_.getCount(); + } + } + /** + *
+       * Represent the multiple remove request contents based on timestamp.
+       * 
+ * + * repeated .payload.v1.Remove.Timestamp timestamps = 1; + */ + public org.vdaas.vald.api.v1.payload.Remove.Timestamp getTimestamps(int index) { + if (timestampsBuilder_ == null) { + return timestamps_.get(index); + } else { + return timestampsBuilder_.getMessage(index); + } + } + /** + *
+       * Represent the multiple remove request contents based on timestamp.
+       * 
+ * + * repeated .payload.v1.Remove.Timestamp timestamps = 1; + */ + public Builder setTimestamps( + int index, org.vdaas.vald.api.v1.payload.Remove.Timestamp value) { + if (timestampsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTimestampsIsMutable(); + timestamps_.set(index, value); + onChanged(); + } else { + timestampsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * Represent the multiple remove request contents based on timestamp.
+       * 
+ * + * repeated .payload.v1.Remove.Timestamp timestamps = 1; + */ + public Builder setTimestamps( + int index, org.vdaas.vald.api.v1.payload.Remove.Timestamp.Builder builderForValue) { + if (timestampsBuilder_ == null) { + ensureTimestampsIsMutable(); + timestamps_.set(index, builderForValue.build()); + onChanged(); + } else { + timestampsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Represent the multiple remove request contents based on timestamp.
+       * 
+ * + * repeated .payload.v1.Remove.Timestamp timestamps = 1; + */ + public Builder addTimestamps(org.vdaas.vald.api.v1.payload.Remove.Timestamp value) { + if (timestampsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTimestampsIsMutable(); + timestamps_.add(value); + onChanged(); + } else { + timestampsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * Represent the multiple remove request contents based on timestamp.
+       * 
+ * + * repeated .payload.v1.Remove.Timestamp timestamps = 1; + */ + public Builder addTimestamps( + int index, org.vdaas.vald.api.v1.payload.Remove.Timestamp value) { + if (timestampsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTimestampsIsMutable(); + timestamps_.add(index, value); + onChanged(); + } else { + timestampsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * Represent the multiple remove request contents based on timestamp.
+       * 
+ * + * repeated .payload.v1.Remove.Timestamp timestamps = 1; + */ + public Builder addTimestamps( + org.vdaas.vald.api.v1.payload.Remove.Timestamp.Builder builderForValue) { + if (timestampsBuilder_ == null) { + ensureTimestampsIsMutable(); + timestamps_.add(builderForValue.build()); + onChanged(); + } else { + timestampsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * Represent the multiple remove request contents based on timestamp.
+       * 
+ * + * repeated .payload.v1.Remove.Timestamp timestamps = 1; + */ + public Builder addTimestamps( + int index, org.vdaas.vald.api.v1.payload.Remove.Timestamp.Builder builderForValue) { + if (timestampsBuilder_ == null) { + ensureTimestampsIsMutable(); + timestamps_.add(index, builderForValue.build()); + onChanged(); + } else { + timestampsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Represent the multiple remove request contents based on timestamp.
+       * 
+ * + * repeated .payload.v1.Remove.Timestamp timestamps = 1; + */ + public Builder addAllTimestamps( + java.lang.Iterable values) { + if (timestampsBuilder_ == null) { + ensureTimestampsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, timestamps_); + onChanged(); + } else { + timestampsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * Represent the multiple remove request contents based on timestamp.
+       * 
+ * + * repeated .payload.v1.Remove.Timestamp timestamps = 1; + */ + public Builder clearTimestamps() { + if (timestampsBuilder_ == null) { + timestamps_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + timestampsBuilder_.clear(); + } + return this; + } + /** + *
+       * Represent the multiple remove request contents based on timestamp.
+       * 
+ * + * repeated .payload.v1.Remove.Timestamp timestamps = 1; + */ + public Builder removeTimestamps(int index) { + if (timestampsBuilder_ == null) { + ensureTimestampsIsMutable(); + timestamps_.remove(index); + onChanged(); + } else { + timestampsBuilder_.remove(index); + } + return this; + } + /** + *
+       * Represent the multiple remove request contents based on timestamp.
+       * 
+ * + * repeated .payload.v1.Remove.Timestamp timestamps = 1; + */ + public org.vdaas.vald.api.v1.payload.Remove.Timestamp.Builder getTimestampsBuilder( + int index) { + return getTimestampsFieldBuilder().getBuilder(index); + } + /** + *
+       * Represent the multiple remove request contents based on timestamp.
+       * 
+ * + * repeated .payload.v1.Remove.Timestamp timestamps = 1; + */ + public org.vdaas.vald.api.v1.payload.Remove.TimestampOrBuilder getTimestampsOrBuilder( + int index) { + if (timestampsBuilder_ == null) { + return timestamps_.get(index); } else { + return timestampsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * Represent the multiple remove request contents based on timestamp.
+       * 
+ * + * repeated .payload.v1.Remove.Timestamp timestamps = 1; + */ + public java.util.List + getTimestampsOrBuilderList() { + if (timestampsBuilder_ != null) { + return timestampsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(timestamps_); + } + } + /** + *
+       * Represent the multiple remove request contents based on timestamp.
+       * 
+ * + * repeated .payload.v1.Remove.Timestamp timestamps = 1; + */ + public org.vdaas.vald.api.v1.payload.Remove.Timestamp.Builder addTimestampsBuilder() { + return getTimestampsFieldBuilder().addBuilder( + org.vdaas.vald.api.v1.payload.Remove.Timestamp.getDefaultInstance()); + } + /** + *
+       * Represent the multiple remove request contents based on timestamp.
+       * 
+ * + * repeated .payload.v1.Remove.Timestamp timestamps = 1; + */ + public org.vdaas.vald.api.v1.payload.Remove.Timestamp.Builder addTimestampsBuilder( + int index) { + return getTimestampsFieldBuilder().addBuilder( + index, org.vdaas.vald.api.v1.payload.Remove.Timestamp.getDefaultInstance()); + } + /** + *
+       * Represent the multiple remove request contents based on timestamp.
+       * 
+ * + * repeated .payload.v1.Remove.Timestamp timestamps = 1; + */ + public java.util.List + getTimestampsBuilderList() { + return getTimestampsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + org.vdaas.vald.api.v1.payload.Remove.Timestamp, org.vdaas.vald.api.v1.payload.Remove.Timestamp.Builder, org.vdaas.vald.api.v1.payload.Remove.TimestampOrBuilder> + getTimestampsFieldBuilder() { + if (timestampsBuilder_ == null) { + timestampsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + org.vdaas.vald.api.v1.payload.Remove.Timestamp, org.vdaas.vald.api.v1.payload.Remove.Timestamp.Builder, org.vdaas.vald.api.v1.payload.Remove.TimestampOrBuilder>( + timestamps_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + timestamps_ = null; + } + return timestampsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:payload.v1.Remove.TimestampRequest) + } + + // @@protoc_insertion_point(class_scope:payload.v1.Remove.TimestampRequest) + private static final org.vdaas.vald.api.v1.payload.Remove.TimestampRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.vdaas.vald.api.v1.payload.Remove.TimestampRequest(); + } + + public static org.vdaas.vald.api.v1.payload.Remove.TimestampRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TimestampRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public org.vdaas.vald.api.v1.payload.Remove.TimestampRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TimestampOrBuilder extends + // @@protoc_insertion_point(interface_extends:payload.v1.Remove.Timestamp) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * The timestamp.
+     * 
+ * + * int64 timestamp = 1; + * @return The timestamp. + */ + long getTimestamp(); + + /** + *
+     * The conditional operator.
+     * 
+ * + * .payload.v1.Remove.Timestamp.Operator operator = 2; + * @return The enum numeric value on the wire for operator. + */ + int getOperatorValue(); + /** + *
+     * The conditional operator.
+     * 
+ * + * .payload.v1.Remove.Timestamp.Operator operator = 2; + * @return The operator. + */ + org.vdaas.vald.api.v1.payload.Remove.Timestamp.Operator getOperator(); + } + /** + * Protobuf type {@code payload.v1.Remove.Timestamp} + */ + public static final class Timestamp extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:payload.v1.Remove.Timestamp) + TimestampOrBuilder { + private static final long serialVersionUID = 0L; + // Use Timestamp.newBuilder() to construct. + private Timestamp(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Timestamp() { + operator_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Timestamp(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Remove_Timestamp_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Remove_Timestamp_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.vdaas.vald.api.v1.payload.Remove.Timestamp.class, org.vdaas.vald.api.v1.payload.Remove.Timestamp.Builder.class); + } + + /** + *
+     * Operator is enum of each conditional operator.
+     * 
+ * + * Protobuf enum {@code payload.v1.Remove.Timestamp.Operator} + */ + public enum Operator + implements com.google.protobuf.ProtocolMessageEnum { + /** + * Eq = 0; + */ + Eq(0), + /** + * Ne = 1; + */ + Ne(1), + /** + * Ge = 2; + */ + Ge(2), + /** + * Gt = 3; + */ + Gt(3), + /** + * Le = 4; + */ + Le(4), + /** + * Lt = 5; + */ + Lt(5), + UNRECOGNIZED(-1), + ; + + /** + * Eq = 0; + */ + public static final int Eq_VALUE = 0; + /** + * Ne = 1; + */ + public static final int Ne_VALUE = 1; + /** + * Ge = 2; + */ + public static final int Ge_VALUE = 2; + /** + * Gt = 3; + */ + public static final int Gt_VALUE = 3; + /** + * Le = 4; + */ + public static final int Le_VALUE = 4; + /** + * Lt = 5; + */ + public static final int Lt_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; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Operator valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Operator forNumber(int value) { + switch (value) { + case 0: return Eq; + case 1: return Ne; + case 2: return Ge; + case 3: return Gt; + case 4: return Le; + case 5: return Lt; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Operator> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Operator findValueByNumber(int number) { + return Operator.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + 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 org.vdaas.vald.api.v1.payload.Remove.Timestamp.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:payload.v1.Remove.Timestamp.Operator) + } + + public static final int TIMESTAMP_FIELD_NUMBER = 1; + private long timestamp_ = 0L; + /** + *
+     * The timestamp.
+     * 
+ * + * int64 timestamp = 1; + * @return The timestamp. + */ + @java.lang.Override + public long getTimestamp() { + return timestamp_; + } + + public static final int OPERATOR_FIELD_NUMBER = 2; + private int operator_ = 0; + /** + *
+     * The conditional operator.
+     * 
+ * + * .payload.v1.Remove.Timestamp.Operator operator = 2; + * @return The enum numeric value on the wire for operator. + */ + @java.lang.Override public int getOperatorValue() { + return operator_; + } + /** + *
+     * The conditional operator.
+     * 
+ * + * .payload.v1.Remove.Timestamp.Operator operator = 2; + * @return The operator. + */ + @java.lang.Override public org.vdaas.vald.api.v1.payload.Remove.Timestamp.Operator getOperator() { + org.vdaas.vald.api.v1.payload.Remove.Timestamp.Operator result = org.vdaas.vald.api.v1.payload.Remove.Timestamp.Operator.forNumber(operator_); + return result == null ? org.vdaas.vald.api.v1.payload.Remove.Timestamp.Operator.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 (timestamp_ != 0L) { + output.writeInt64(1, timestamp_); + } + if (operator_ != org.vdaas.vald.api.v1.payload.Remove.Timestamp.Operator.Eq.getNumber()) { + output.writeEnum(2, operator_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (timestamp_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(1, timestamp_); + } + if (operator_ != org.vdaas.vald.api.v1.payload.Remove.Timestamp.Operator.Eq.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, operator_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.vdaas.vald.api.v1.payload.Remove.Timestamp)) { + return super.equals(obj); + } + org.vdaas.vald.api.v1.payload.Remove.Timestamp other = (org.vdaas.vald.api.v1.payload.Remove.Timestamp) obj; + + if (getTimestamp() + != other.getTimestamp()) return false; + if (operator_ != other.operator_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTimestamp()); + hash = (37 * hash) + OPERATOR_FIELD_NUMBER; + hash = (53 * hash) + operator_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.vdaas.vald.api.v1.payload.Remove.Timestamp parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.vdaas.vald.api.v1.payload.Remove.Timestamp parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.vdaas.vald.api.v1.payload.Remove.Timestamp parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.vdaas.vald.api.v1.payload.Remove.Timestamp parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.vdaas.vald.api.v1.payload.Remove.Timestamp parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.vdaas.vald.api.v1.payload.Remove.Timestamp parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.vdaas.vald.api.v1.payload.Remove.Timestamp parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.vdaas.vald.api.v1.payload.Remove.Timestamp parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static org.vdaas.vald.api.v1.payload.Remove.Timestamp parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static org.vdaas.vald.api.v1.payload.Remove.Timestamp parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.vdaas.vald.api.v1.payload.Remove.Timestamp parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.vdaas.vald.api.v1.payload.Remove.Timestamp parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.vdaas.vald.api.v1.payload.Remove.Timestamp prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code payload.v1.Remove.Timestamp} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:payload.v1.Remove.Timestamp) + org.vdaas.vald.api.v1.payload.Remove.TimestampOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Remove_Timestamp_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Remove_Timestamp_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.vdaas.vald.api.v1.payload.Remove.Timestamp.class, org.vdaas.vald.api.v1.payload.Remove.Timestamp.Builder.class); + } + + // Construct using org.vdaas.vald.api.v1.payload.Remove.Timestamp.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + timestamp_ = 0L; + operator_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.vdaas.vald.api.v1.payload.ValdPayload.internal_static_payload_v1_Remove_Timestamp_descriptor; + } + + @java.lang.Override + public org.vdaas.vald.api.v1.payload.Remove.Timestamp getDefaultInstanceForType() { + return org.vdaas.vald.api.v1.payload.Remove.Timestamp.getDefaultInstance(); + } + + @java.lang.Override + public org.vdaas.vald.api.v1.payload.Remove.Timestamp build() { + org.vdaas.vald.api.v1.payload.Remove.Timestamp result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.vdaas.vald.api.v1.payload.Remove.Timestamp buildPartial() { + org.vdaas.vald.api.v1.payload.Remove.Timestamp result = new org.vdaas.vald.api.v1.payload.Remove.Timestamp(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(org.vdaas.vald.api.v1.payload.Remove.Timestamp result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.timestamp_ = timestamp_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.operator_ = operator_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.vdaas.vald.api.v1.payload.Remove.Timestamp) { + return mergeFrom((org.vdaas.vald.api.v1.payload.Remove.Timestamp)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.vdaas.vald.api.v1.payload.Remove.Timestamp other) { + if (other == org.vdaas.vald.api.v1.payload.Remove.Timestamp.getDefaultInstance()) return this; + if (other.getTimestamp() != 0L) { + setTimestamp(other.getTimestamp()); + } + if (other.operator_ != 0) { + setOperatorValue(other.getOperatorValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + timestamp_ = input.readInt64(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: { + operator_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private long timestamp_ ; + /** + *
+       * The timestamp.
+       * 
+ * + * int64 timestamp = 1; + * @return The timestamp. + */ + @java.lang.Override + public long getTimestamp() { + return timestamp_; + } + /** + *
+       * The timestamp.
+       * 
+ * + * int64 timestamp = 1; + * @param value The timestamp to set. + * @return This builder for chaining. + */ + public Builder setTimestamp(long value) { + + timestamp_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * The timestamp.
+       * 
+ * + * int64 timestamp = 1; + * @return This builder for chaining. + */ + public Builder clearTimestamp() { + bitField0_ = (bitField0_ & ~0x00000001); + timestamp_ = 0L; + onChanged(); + return this; + } + + private int operator_ = 0; + /** + *
+       * The conditional operator.
+       * 
+ * + * .payload.v1.Remove.Timestamp.Operator operator = 2; + * @return The enum numeric value on the wire for operator. + */ + @java.lang.Override public int getOperatorValue() { + return operator_; + } + /** + *
+       * The conditional operator.
+       * 
+ * + * .payload.v1.Remove.Timestamp.Operator operator = 2; + * @param value The enum numeric value on the wire for operator to set. + * @return This builder for chaining. + */ + public Builder setOperatorValue(int value) { + operator_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * The conditional operator.
+       * 
+ * + * .payload.v1.Remove.Timestamp.Operator operator = 2; + * @return The operator. + */ + @java.lang.Override + public org.vdaas.vald.api.v1.payload.Remove.Timestamp.Operator getOperator() { + org.vdaas.vald.api.v1.payload.Remove.Timestamp.Operator result = org.vdaas.vald.api.v1.payload.Remove.Timestamp.Operator.forNumber(operator_); + return result == null ? org.vdaas.vald.api.v1.payload.Remove.Timestamp.Operator.UNRECOGNIZED : result; + } + /** + *
+       * The conditional operator.
+       * 
+ * + * .payload.v1.Remove.Timestamp.Operator operator = 2; + * @param value The operator to set. + * @return This builder for chaining. + */ + public Builder setOperator(org.vdaas.vald.api.v1.payload.Remove.Timestamp.Operator value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + operator_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * The conditional operator.
+       * 
+ * + * .payload.v1.Remove.Timestamp.Operator operator = 2; + * @return This builder for chaining. + */ + public Builder clearOperator() { + bitField0_ = (bitField0_ & ~0x00000002); + operator_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:payload.v1.Remove.Timestamp) + } + + // @@protoc_insertion_point(class_scope:payload.v1.Remove.Timestamp) + private static final org.vdaas.vald.api.v1.payload.Remove.Timestamp DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.vdaas.vald.api.v1.payload.Remove.Timestamp(); + } + + public static org.vdaas.vald.api.v1.payload.Remove.Timestamp getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Timestamp parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public org.vdaas.vald.api.v1.payload.Remove.Timestamp getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + public interface ConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:payload.v1.Remove.Config) com.google.protobuf.MessageOrBuilder { diff --git a/src/main/java/org/vdaas/vald/api/v1/payload/Search.java b/src/main/java/org/vdaas/vald/api/v1/payload/Search.java index 313f659f..c0aaef3a 100644 --- a/src/main/java/org/vdaas/vald/api/v1/payload/Search.java +++ b/src/main/java/org/vdaas/vald/api/v1/payload/Search.java @@ -281,9 +281,11 @@ protected java.lang.Object newInstance( org.vdaas.vald.api.v1.payload.Search.Request.class, org.vdaas.vald.api.v1.payload.Search.Request.Builder.class); } + private int bitField0_; public static final int VECTOR_FIELD_NUMBER = 1; @SuppressWarnings("serial") - private com.google.protobuf.Internal.FloatList vector_; + private com.google.protobuf.Internal.FloatList vector_ = + emptyFloatList(); /** *
      * The vector to be searched.
@@ -334,7 +336,7 @@ public float getVector(int index) {
      */
     @java.lang.Override
     public boolean hasConfig() {
-      return config_ != null;
+      return ((bitField0_ & 0x00000001) != 0);
     }
     /**
      * 
@@ -382,7 +384,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
       for (int i = 0; i < vector_.size(); i++) {
         output.writeFloatNoTag(vector_.getFloat(i));
       }
-      if (config_ != null) {
+      if (((bitField0_ & 0x00000001) != 0)) {
         output.writeMessage(2, getConfig());
       }
       getUnknownFields().writeTo(output);
@@ -405,7 +407,7 @@ public int getSerializedSize() {
         }
         vectorMemoizedSerializedSize = dataSize;
       }
-      if (config_ != null) {
+      if (((bitField0_ & 0x00000001) != 0)) {
         size += com.google.protobuf.CodedOutputStream
           .computeMessageSize(2, getConfig());
       }
@@ -573,13 +575,19 @@ public static final class Builder extends
 
       // Construct using org.vdaas.vald.api.v1.payload.Search.Request.newBuilder()
       private Builder() {
-
+        maybeForceBuilderInitialization();
       }
 
       private Builder(
           com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
-
+        maybeForceBuilderInitialization();
+      }
+      private void maybeForceBuilderInitialization() {
+        if (com.google.protobuf.GeneratedMessageV3
+                .alwaysUseFieldBuilders) {
+          getConfigFieldBuilder();
+        }
       }
       @java.lang.Override
       public Builder clear() {
@@ -617,27 +625,25 @@ public org.vdaas.vald.api.v1.payload.Search.Request build() {
       @java.lang.Override
       public org.vdaas.vald.api.v1.payload.Search.Request buildPartial() {
         org.vdaas.vald.api.v1.payload.Search.Request result = new org.vdaas.vald.api.v1.payload.Search.Request(this);
-        buildPartialRepeatedFields(result);
         if (bitField0_ != 0) { buildPartial0(result); }
         onBuilt();
         return result;
       }
 
-      private void buildPartialRepeatedFields(org.vdaas.vald.api.v1.payload.Search.Request result) {
-        if (((bitField0_ & 0x00000001) != 0)) {
-          vector_.makeImmutable();
-          bitField0_ = (bitField0_ & ~0x00000001);
-        }
-        result.vector_ = vector_;
-      }
-
       private void buildPartial0(org.vdaas.vald.api.v1.payload.Search.Request result) {
         int from_bitField0_ = bitField0_;
+        if (((from_bitField0_ & 0x00000001) != 0)) {
+          vector_.makeImmutable();
+          result.vector_ = vector_;
+        }
+        int to_bitField0_ = 0;
         if (((from_bitField0_ & 0x00000002) != 0)) {
           result.config_ = configBuilder_ == null
               ? config_
               : configBuilder_.build();
+          to_bitField0_ |= 0x00000001;
         }
+        result.bitField0_ |= to_bitField0_;
       }
 
       @java.lang.Override
@@ -687,7 +693,8 @@ public Builder mergeFrom(org.vdaas.vald.api.v1.payload.Search.Request other) {
         if (!other.vector_.isEmpty()) {
           if (vector_.isEmpty()) {
             vector_ = other.vector_;
-            bitField0_ = (bitField0_ & ~0x00000001);
+            vector_.makeImmutable();
+            bitField0_ |= 0x00000001;
           } else {
             ensureVectorIsMutable();
             vector_.addAll(other.vector_);
@@ -732,7 +739,8 @@ public Builder mergeFrom(
               case 10: {
                 int length = input.readRawVarint32();
                 int limit = input.pushLimit(length);
-                ensureVectorIsMutable();
+                int alloc = length > 4096 ? 4096 : length;
+                ensureVectorIsMutable(alloc / 4);
                 while (input.getBytesUntilLimit() > 0) {
                   vector_.addFloat(input.readFloat());
                 }
@@ -765,10 +773,16 @@ public Builder mergeFrom(
 
       private com.google.protobuf.Internal.FloatList vector_ = emptyFloatList();
       private void ensureVectorIsMutable() {
-        if (!((bitField0_ & 0x00000001) != 0)) {
-          vector_ = mutableCopy(vector_);
-          bitField0_ |= 0x00000001;
+        if (!vector_.isModifiable()) {
+          vector_ = makeMutableCopy(vector_);
+        }
+        bitField0_ |= 0x00000001;
+      }
+      private void ensureVectorIsMutable(int capacity) {
+        if (!vector_.isModifiable()) {
+          vector_ = makeMutableCopy(vector_, capacity);
         }
+        bitField0_ |= 0x00000001;
       }
       /**
        * 
@@ -780,8 +794,8 @@ private void ensureVectorIsMutable() {
        */
       public java.util.List
           getVectorList() {
-        return ((bitField0_ & 0x00000001) != 0) ?
-                 java.util.Collections.unmodifiableList(vector_) : vector_;
+        vector_.makeImmutable();
+        return vector_;
       }
       /**
        * 
@@ -821,6 +835,7 @@ public Builder setVector(
 
         ensureVectorIsMutable();
         vector_.setFloat(index, value);
+        bitField0_ |= 0x00000001;
         onChanged();
         return this;
       }
@@ -837,6 +852,7 @@ public Builder addVector(float value) {
 
         ensureVectorIsMutable();
         vector_.addFloat(value);
+        bitField0_ |= 0x00000001;
         onChanged();
         return this;
       }
@@ -854,6 +870,7 @@ public Builder addAllVector(
         ensureVectorIsMutable();
         com.google.protobuf.AbstractMessageLite.Builder.addAll(
             values, vector_);
+        bitField0_ |= 0x00000001;
         onChanged();
         return this;
       }
@@ -958,8 +975,10 @@ public Builder mergeConfig(org.vdaas.vald.api.v1.payload.Search.Config value) {
         } else {
           configBuilder_.mergeFrom(value);
         }
-        bitField0_ |= 0x00000002;
-        onChanged();
+        if (config_ != null) {
+          bitField0_ |= 0x00000002;
+          onChanged();
+        }
         return this;
       }
       /**
@@ -2083,6 +2102,7 @@ protected java.lang.Object newInstance(
               org.vdaas.vald.api.v1.payload.Search.IDRequest.class, org.vdaas.vald.api.v1.payload.Search.IDRequest.Builder.class);
     }
 
+    private int bitField0_;
     public static final int ID_FIELD_NUMBER = 1;
     @SuppressWarnings("serial")
     private volatile java.lang.Object id_ = "";
@@ -2142,7 +2162,7 @@ public java.lang.String getId() {
      */
     @java.lang.Override
     public boolean hasConfig() {
-      return config_ != null;
+      return ((bitField0_ & 0x00000001) != 0);
     }
     /**
      * 
@@ -2185,7 +2205,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
       if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) {
         com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_);
       }
-      if (config_ != null) {
+      if (((bitField0_ & 0x00000001) != 0)) {
         output.writeMessage(2, getConfig());
       }
       getUnknownFields().writeTo(output);
@@ -2200,7 +2220,7 @@ public int getSerializedSize() {
       if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) {
         size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_);
       }
-      if (config_ != null) {
+      if (((bitField0_ & 0x00000001) != 0)) {
         size += com.google.protobuf.CodedOutputStream
           .computeMessageSize(2, getConfig());
       }
@@ -2366,13 +2386,19 @@ public static final class Builder extends
 
       // Construct using org.vdaas.vald.api.v1.payload.Search.IDRequest.newBuilder()
       private Builder() {
-
+        maybeForceBuilderInitialization();
       }
 
       private Builder(
           com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
-
+        maybeForceBuilderInitialization();
+      }
+      private void maybeForceBuilderInitialization() {
+        if (com.google.protobuf.GeneratedMessageV3
+                .alwaysUseFieldBuilders) {
+          getConfigFieldBuilder();
+        }
       }
       @java.lang.Override
       public Builder clear() {
@@ -2420,11 +2446,14 @@ private void buildPartial0(org.vdaas.vald.api.v1.payload.Search.IDRequest result
         if (((from_bitField0_ & 0x00000001) != 0)) {
           result.id_ = id_;
         }
+        int to_bitField0_ = 0;
         if (((from_bitField0_ & 0x00000002) != 0)) {
           result.config_ = configBuilder_ == null
               ? config_
               : configBuilder_.build();
+          to_bitField0_ |= 0x00000001;
         }
+        result.bitField0_ |= to_bitField0_;
       }
 
       @java.lang.Override
@@ -2712,8 +2741,10 @@ public Builder mergeConfig(org.vdaas.vald.api.v1.payload.Search.Config value) {
         } else {
           configBuilder_.mergeFrom(value);
         }
-        bitField0_ |= 0x00000002;
-        onChanged();
+        if (config_ != null) {
+          bitField0_ |= 0x00000002;
+          onChanged();
+        }
         return this;
       }
       /**
@@ -3854,6 +3885,7 @@ protected java.lang.Object newInstance(
               org.vdaas.vald.api.v1.payload.Search.ObjectRequest.class, org.vdaas.vald.api.v1.payload.Search.ObjectRequest.Builder.class);
     }
 
+    private int bitField0_;
     public static final int OBJECT_FIELD_NUMBER = 1;
     private com.google.protobuf.ByteString object_ = com.google.protobuf.ByteString.EMPTY;
     /**
@@ -3881,7 +3913,7 @@ public com.google.protobuf.ByteString getObject() {
      */
     @java.lang.Override
     public boolean hasConfig() {
-      return config_ != null;
+      return ((bitField0_ & 0x00000001) != 0);
     }
     /**
      * 
@@ -3919,7 +3951,7 @@ public org.vdaas.vald.api.v1.payload.Search.ConfigOrBuilder getConfigOrBuilder()
      */
     @java.lang.Override
     public boolean hasVectorizer() {
-      return vectorizer_ != null;
+      return ((bitField0_ & 0x00000002) != 0);
     }
     /**
      * 
@@ -3962,10 +3994,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
       if (!object_.isEmpty()) {
         output.writeBytes(1, object_);
       }
-      if (config_ != null) {
+      if (((bitField0_ & 0x00000001) != 0)) {
         output.writeMessage(2, getConfig());
       }
-      if (vectorizer_ != null) {
+      if (((bitField0_ & 0x00000002) != 0)) {
         output.writeMessage(3, getVectorizer());
       }
       getUnknownFields().writeTo(output);
@@ -3981,11 +4013,11 @@ public int getSerializedSize() {
         size += com.google.protobuf.CodedOutputStream
           .computeBytesSize(1, object_);
       }
-      if (config_ != null) {
+      if (((bitField0_ & 0x00000001) != 0)) {
         size += com.google.protobuf.CodedOutputStream
           .computeMessageSize(2, getConfig());
       }
-      if (vectorizer_ != null) {
+      if (((bitField0_ & 0x00000002) != 0)) {
         size += com.google.protobuf.CodedOutputStream
           .computeMessageSize(3, getVectorizer());
       }
@@ -4160,13 +4192,20 @@ public static final class Builder extends
 
       // Construct using org.vdaas.vald.api.v1.payload.Search.ObjectRequest.newBuilder()
       private Builder() {
-
+        maybeForceBuilderInitialization();
       }
 
       private Builder(
           com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
-
+        maybeForceBuilderInitialization();
+      }
+      private void maybeForceBuilderInitialization() {
+        if (com.google.protobuf.GeneratedMessageV3
+                .alwaysUseFieldBuilders) {
+          getConfigFieldBuilder();
+          getVectorizerFieldBuilder();
+        }
       }
       @java.lang.Override
       public Builder clear() {
@@ -4219,16 +4258,20 @@ private void buildPartial0(org.vdaas.vald.api.v1.payload.Search.ObjectRequest re
         if (((from_bitField0_ & 0x00000001) != 0)) {
           result.object_ = object_;
         }
+        int to_bitField0_ = 0;
         if (((from_bitField0_ & 0x00000002) != 0)) {
           result.config_ = configBuilder_ == null
               ? config_
               : configBuilder_.build();
+          to_bitField0_ |= 0x00000001;
         }
         if (((from_bitField0_ & 0x00000004) != 0)) {
           result.vectorizer_ = vectorizerBuilder_ == null
               ? vectorizer_
               : vectorizerBuilder_.build();
+          to_bitField0_ |= 0x00000002;
         }
+        result.bitField0_ |= to_bitField0_;
       }
 
       @java.lang.Override
@@ -4476,8 +4519,10 @@ public Builder mergeConfig(org.vdaas.vald.api.v1.payload.Search.Config value) {
         } else {
           configBuilder_.mergeFrom(value);
         }
-        bitField0_ |= 0x00000002;
-        onChanged();
+        if (config_ != null) {
+          bitField0_ |= 0x00000002;
+          onChanged();
+        }
         return this;
       }
       /**
@@ -4631,8 +4676,10 @@ public Builder mergeVectorizer(org.vdaas.vald.api.v1.payload.Filter.Target value
         } else {
           vectorizerBuilder_.mergeFrom(value);
         }
-        bitField0_ |= 0x00000004;
-        onChanged();
+        if (vectorizer_ != null) {
+          bitField0_ |= 0x00000004;
+          onChanged();
+        }
         return this;
       }
       /**
@@ -5853,6 +5900,7 @@ protected java.lang.Object newInstance(
               org.vdaas.vald.api.v1.payload.Search.Config.class, org.vdaas.vald.api.v1.payload.Search.Config.Builder.class);
     }
 
+    private int bitField0_;
     public static final int REQUEST_ID_FIELD_NUMBER = 1;
     @SuppressWarnings("serial")
     private volatile java.lang.Object requestId_ = "";
@@ -5972,7 +6020,7 @@ public long getTimeout() {
      */
     @java.lang.Override
     public boolean hasIngressFilters() {
-      return ingressFilters_ != null;
+      return ((bitField0_ & 0x00000001) != 0);
     }
     /**
      * 
@@ -6010,7 +6058,7 @@ public org.vdaas.vald.api.v1.payload.Filter.ConfigOrBuilder getIngressFiltersOrB
      */
     @java.lang.Override
     public boolean hasEgressFilters() {
-      return egressFilters_ != null;
+      return ((bitField0_ & 0x00000002) != 0);
     }
     /**
      * 
@@ -6106,10 +6154,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
       if (timeout_ != 0L) {
         output.writeInt64(5, timeout_);
       }
-      if (ingressFilters_ != null) {
+      if (((bitField0_ & 0x00000001) != 0)) {
         output.writeMessage(6, getIngressFilters());
       }
-      if (egressFilters_ != null) {
+      if (((bitField0_ & 0x00000002) != 0)) {
         output.writeMessage(7, getEgressFilters());
       }
       if (minNum_ != 0) {
@@ -6146,11 +6194,11 @@ public int getSerializedSize() {
         size += com.google.protobuf.CodedOutputStream
           .computeInt64Size(5, timeout_);
       }
-      if (ingressFilters_ != null) {
+      if (((bitField0_ & 0x00000001) != 0)) {
         size += com.google.protobuf.CodedOutputStream
           .computeMessageSize(6, getIngressFilters());
       }
-      if (egressFilters_ != null) {
+      if (((bitField0_ & 0x00000002) != 0)) {
         size += com.google.protobuf.CodedOutputStream
           .computeMessageSize(7, getEgressFilters());
       }
@@ -6361,13 +6409,20 @@ public static final class Builder extends
 
       // Construct using org.vdaas.vald.api.v1.payload.Search.Config.newBuilder()
       private Builder() {
-
+        maybeForceBuilderInitialization();
       }
 
       private Builder(
           com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
-
+        maybeForceBuilderInitialization();
+      }
+      private void maybeForceBuilderInitialization() {
+        if (com.google.protobuf.GeneratedMessageV3
+                .alwaysUseFieldBuilders) {
+          getIngressFiltersFieldBuilder();
+          getEgressFiltersFieldBuilder();
+        }
       }
       @java.lang.Override
       public Builder clear() {
@@ -6438,15 +6493,18 @@ private void buildPartial0(org.vdaas.vald.api.v1.payload.Search.Config result) {
         if (((from_bitField0_ & 0x00000010) != 0)) {
           result.timeout_ = timeout_;
         }
+        int to_bitField0_ = 0;
         if (((from_bitField0_ & 0x00000020) != 0)) {
           result.ingressFilters_ = ingressFiltersBuilder_ == null
               ? ingressFilters_
               : ingressFiltersBuilder_.build();
+          to_bitField0_ |= 0x00000001;
         }
         if (((from_bitField0_ & 0x00000040) != 0)) {
           result.egressFilters_ = egressFiltersBuilder_ == null
               ? egressFilters_
               : egressFiltersBuilder_.build();
+          to_bitField0_ |= 0x00000002;
         }
         if (((from_bitField0_ & 0x00000080) != 0)) {
           result.minNum_ = minNum_;
@@ -6454,6 +6512,7 @@ private void buildPartial0(org.vdaas.vald.api.v1.payload.Search.Config result) {
         if (((from_bitField0_ & 0x00000100) != 0)) {
           result.aggregationAlgorithm_ = aggregationAlgorithm_;
         }
+        result.bitField0_ |= to_bitField0_;
       }
 
       @java.lang.Override
@@ -6975,8 +7034,10 @@ public Builder mergeIngressFilters(org.vdaas.vald.api.v1.payload.Filter.Config v
         } else {
           ingressFiltersBuilder_.mergeFrom(value);
         }
-        bitField0_ |= 0x00000020;
-        onChanged();
+        if (ingressFilters_ != null) {
+          bitField0_ |= 0x00000020;
+          onChanged();
+        }
         return this;
       }
       /**
@@ -7130,8 +7191,10 @@ public Builder mergeEgressFilters(org.vdaas.vald.api.v1.payload.Filter.Config va
         } else {
           egressFiltersBuilder_.mergeFrom(value);
         }
-        bitField0_ |= 0x00000040;
-        onChanged();
+        if (egressFilters_ != null) {
+          bitField0_ |= 0x00000040;
+          onChanged();
+        }
         return this;
       }
       /**
diff --git a/src/main/java/org/vdaas/vald/api/v1/payload/Update.java b/src/main/java/org/vdaas/vald/api/v1/payload/Update.java
index 59099ebc..89aaa5e4 100644
--- a/src/main/java/org/vdaas/vald/api/v1/payload/Update.java
+++ b/src/main/java/org/vdaas/vald/api/v1/payload/Update.java
@@ -139,6 +139,7 @@ protected java.lang.Object newInstance(
               org.vdaas.vald.api.v1.payload.Update.Request.class, org.vdaas.vald.api.v1.payload.Update.Request.Builder.class);
     }
 
+    private int bitField0_;
     public static final int VECTOR_FIELD_NUMBER = 1;
     private org.vdaas.vald.api.v1.payload.Object.Vector vector_;
     /**
@@ -151,7 +152,7 @@ protected java.lang.Object newInstance(
      */
     @java.lang.Override
     public boolean hasVector() {
-      return vector_ != null;
+      return ((bitField0_ & 0x00000001) != 0);
     }
     /**
      * 
@@ -189,7 +190,7 @@ public org.vdaas.vald.api.v1.payload.Object.VectorOrBuilder getVectorOrBuilder()
      */
     @java.lang.Override
     public boolean hasConfig() {
-      return config_ != null;
+      return ((bitField0_ & 0x00000002) != 0);
     }
     /**
      * 
@@ -229,10 +230,10 @@ public final boolean isInitialized() {
     @java.lang.Override
     public void writeTo(com.google.protobuf.CodedOutputStream output)
                         throws java.io.IOException {
-      if (vector_ != null) {
+      if (((bitField0_ & 0x00000001) != 0)) {
         output.writeMessage(1, getVector());
       }
-      if (config_ != null) {
+      if (((bitField0_ & 0x00000002) != 0)) {
         output.writeMessage(2, getConfig());
       }
       getUnknownFields().writeTo(output);
@@ -244,11 +245,11 @@ public int getSerializedSize() {
       if (size != -1) return size;
 
       size = 0;
-      if (vector_ != null) {
+      if (((bitField0_ & 0x00000001) != 0)) {
         size += com.google.protobuf.CodedOutputStream
           .computeMessageSize(1, getVector());
       }
-      if (config_ != null) {
+      if (((bitField0_ & 0x00000002) != 0)) {
         size += com.google.protobuf.CodedOutputStream
           .computeMessageSize(2, getConfig());
       }
@@ -419,13 +420,20 @@ public static final class Builder extends
 
       // Construct using org.vdaas.vald.api.v1.payload.Update.Request.newBuilder()
       private Builder() {
-
+        maybeForceBuilderInitialization();
       }
 
       private Builder(
           com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
-
+        maybeForceBuilderInitialization();
+      }
+      private void maybeForceBuilderInitialization() {
+        if (com.google.protobuf.GeneratedMessageV3
+                .alwaysUseFieldBuilders) {
+          getVectorFieldBuilder();
+          getConfigFieldBuilder();
+        }
       }
       @java.lang.Override
       public Builder clear() {
@@ -474,16 +482,20 @@ public org.vdaas.vald.api.v1.payload.Update.Request buildPartial() {
 
       private void buildPartial0(org.vdaas.vald.api.v1.payload.Update.Request result) {
         int from_bitField0_ = bitField0_;
+        int to_bitField0_ = 0;
         if (((from_bitField0_ & 0x00000001) != 0)) {
           result.vector_ = vectorBuilder_ == null
               ? vector_
               : vectorBuilder_.build();
+          to_bitField0_ |= 0x00000001;
         }
         if (((from_bitField0_ & 0x00000002) != 0)) {
           result.config_ = configBuilder_ == null
               ? config_
               : configBuilder_.build();
+          to_bitField0_ |= 0x00000002;
         }
+        result.bitField0_ |= to_bitField0_;
       }
 
       @java.lang.Override
@@ -679,8 +691,10 @@ public Builder mergeVector(org.vdaas.vald.api.v1.payload.Object.Vector value) {
         } else {
           vectorBuilder_.mergeFrom(value);
         }
-        bitField0_ |= 0x00000001;
-        onChanged();
+        if (vector_ != null) {
+          bitField0_ |= 0x00000001;
+          onChanged();
+        }
         return this;
       }
       /**
@@ -834,8 +848,10 @@ public Builder mergeConfig(org.vdaas.vald.api.v1.payload.Update.Config value) {
         } else {
           configBuilder_.mergeFrom(value);
         }
-        bitField0_ |= 0x00000002;
-        onChanged();
+        if (config_ != null) {
+          bitField0_ |= 0x00000002;
+          onChanged();
+        }
         return this;
       }
       /**
@@ -1992,6 +2008,7 @@ protected java.lang.Object newInstance(
               org.vdaas.vald.api.v1.payload.Update.ObjectRequest.class, org.vdaas.vald.api.v1.payload.Update.ObjectRequest.Builder.class);
     }
 
+    private int bitField0_;
     public static final int OBJECT_FIELD_NUMBER = 1;
     private org.vdaas.vald.api.v1.payload.Object.Blob object_;
     /**
@@ -2004,7 +2021,7 @@ protected java.lang.Object newInstance(
      */
     @java.lang.Override
     public boolean hasObject() {
-      return object_ != null;
+      return ((bitField0_ & 0x00000001) != 0);
     }
     /**
      * 
@@ -2042,7 +2059,7 @@ public org.vdaas.vald.api.v1.payload.Object.BlobOrBuilder getObjectOrBuilder() {
      */
     @java.lang.Override
     public boolean hasConfig() {
-      return config_ != null;
+      return ((bitField0_ & 0x00000002) != 0);
     }
     /**
      * 
@@ -2080,7 +2097,7 @@ public org.vdaas.vald.api.v1.payload.Update.ConfigOrBuilder getConfigOrBuilder()
      */
     @java.lang.Override
     public boolean hasVectorizer() {
-      return vectorizer_ != null;
+      return ((bitField0_ & 0x00000004) != 0);
     }
     /**
      * 
@@ -2120,13 +2137,13 @@ public final boolean isInitialized() {
     @java.lang.Override
     public void writeTo(com.google.protobuf.CodedOutputStream output)
                         throws java.io.IOException {
-      if (object_ != null) {
+      if (((bitField0_ & 0x00000001) != 0)) {
         output.writeMessage(1, getObject());
       }
-      if (config_ != null) {
+      if (((bitField0_ & 0x00000002) != 0)) {
         output.writeMessage(2, getConfig());
       }
-      if (vectorizer_ != null) {
+      if (((bitField0_ & 0x00000004) != 0)) {
         output.writeMessage(3, getVectorizer());
       }
       getUnknownFields().writeTo(output);
@@ -2138,15 +2155,15 @@ public int getSerializedSize() {
       if (size != -1) return size;
 
       size = 0;
-      if (object_ != null) {
+      if (((bitField0_ & 0x00000001) != 0)) {
         size += com.google.protobuf.CodedOutputStream
           .computeMessageSize(1, getObject());
       }
-      if (config_ != null) {
+      if (((bitField0_ & 0x00000002) != 0)) {
         size += com.google.protobuf.CodedOutputStream
           .computeMessageSize(2, getConfig());
       }
-      if (vectorizer_ != null) {
+      if (((bitField0_ & 0x00000004) != 0)) {
         size += com.google.protobuf.CodedOutputStream
           .computeMessageSize(3, getVectorizer());
       }
@@ -2326,13 +2343,21 @@ public static final class Builder extends
 
       // Construct using org.vdaas.vald.api.v1.payload.Update.ObjectRequest.newBuilder()
       private Builder() {
-
+        maybeForceBuilderInitialization();
       }
 
       private Builder(
           com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
-
+        maybeForceBuilderInitialization();
+      }
+      private void maybeForceBuilderInitialization() {
+        if (com.google.protobuf.GeneratedMessageV3
+                .alwaysUseFieldBuilders) {
+          getObjectFieldBuilder();
+          getConfigFieldBuilder();
+          getVectorizerFieldBuilder();
+        }
       }
       @java.lang.Override
       public Builder clear() {
@@ -2386,21 +2411,26 @@ public org.vdaas.vald.api.v1.payload.Update.ObjectRequest buildPartial() {
 
       private void buildPartial0(org.vdaas.vald.api.v1.payload.Update.ObjectRequest result) {
         int from_bitField0_ = bitField0_;
+        int to_bitField0_ = 0;
         if (((from_bitField0_ & 0x00000001) != 0)) {
           result.object_ = objectBuilder_ == null
               ? object_
               : objectBuilder_.build();
+          to_bitField0_ |= 0x00000001;
         }
         if (((from_bitField0_ & 0x00000002) != 0)) {
           result.config_ = configBuilder_ == null
               ? config_
               : configBuilder_.build();
+          to_bitField0_ |= 0x00000002;
         }
         if (((from_bitField0_ & 0x00000004) != 0)) {
           result.vectorizer_ = vectorizerBuilder_ == null
               ? vectorizer_
               : vectorizerBuilder_.build();
+          to_bitField0_ |= 0x00000004;
         }
+        result.bitField0_ |= to_bitField0_;
       }
 
       @java.lang.Override
@@ -2606,8 +2636,10 @@ public Builder mergeObject(org.vdaas.vald.api.v1.payload.Object.Blob value) {
         } else {
           objectBuilder_.mergeFrom(value);
         }
-        bitField0_ |= 0x00000001;
-        onChanged();
+        if (object_ != null) {
+          bitField0_ |= 0x00000001;
+          onChanged();
+        }
         return this;
       }
       /**
@@ -2761,8 +2793,10 @@ public Builder mergeConfig(org.vdaas.vald.api.v1.payload.Update.Config value) {
         } else {
           configBuilder_.mergeFrom(value);
         }
-        bitField0_ |= 0x00000002;
-        onChanged();
+        if (config_ != null) {
+          bitField0_ |= 0x00000002;
+          onChanged();
+        }
         return this;
       }
       /**
@@ -2916,8 +2950,10 @@ public Builder mergeVectorizer(org.vdaas.vald.api.v1.payload.Filter.Target value
         } else {
           vectorizerBuilder_.mergeFrom(value);
         }
-        bitField0_ |= 0x00000004;
-        onChanged();
+        if (vectorizer_ != null) {
+          bitField0_ |= 0x00000004;
+          onChanged();
+        }
         return this;
       }
       /**
@@ -4051,6 +4087,7 @@ protected java.lang.Object newInstance(
               org.vdaas.vald.api.v1.payload.Update.Config.class, org.vdaas.vald.api.v1.payload.Update.Config.Builder.class);
     }
 
+    private int bitField0_;
     public static final int SKIP_STRICT_EXIST_CHECK_FIELD_NUMBER = 1;
     private boolean skipStrictExistCheck_ = false;
     /**
@@ -4078,7 +4115,7 @@ public boolean getSkipStrictExistCheck() {
      */
     @java.lang.Override
     public boolean hasFilters() {
-      return filters_ != null;
+      return ((bitField0_ & 0x00000001) != 0);
     }
     /**
      * 
@@ -4152,7 +4189,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
       if (skipStrictExistCheck_ != false) {
         output.writeBool(1, skipStrictExistCheck_);
       }
-      if (filters_ != null) {
+      if (((bitField0_ & 0x00000001) != 0)) {
         output.writeMessage(2, getFilters());
       }
       if (timestamp_ != 0L) {
@@ -4174,7 +4211,7 @@ public int getSerializedSize() {
         size += com.google.protobuf.CodedOutputStream
           .computeBoolSize(1, skipStrictExistCheck_);
       }
-      if (filters_ != null) {
+      if (((bitField0_ & 0x00000001) != 0)) {
         size += com.google.protobuf.CodedOutputStream
           .computeMessageSize(2, getFilters());
       }
@@ -4359,13 +4396,19 @@ public static final class Builder extends
 
       // Construct using org.vdaas.vald.api.v1.payload.Update.Config.newBuilder()
       private Builder() {
-
+        maybeForceBuilderInitialization();
       }
 
       private Builder(
           com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
-
+        maybeForceBuilderInitialization();
+      }
+      private void maybeForceBuilderInitialization() {
+        if (com.google.protobuf.GeneratedMessageV3
+                .alwaysUseFieldBuilders) {
+          getFiltersFieldBuilder();
+        }
       }
       @java.lang.Override
       public Builder clear() {
@@ -4415,10 +4458,12 @@ private void buildPartial0(org.vdaas.vald.api.v1.payload.Update.Config result) {
         if (((from_bitField0_ & 0x00000001) != 0)) {
           result.skipStrictExistCheck_ = skipStrictExistCheck_;
         }
+        int to_bitField0_ = 0;
         if (((from_bitField0_ & 0x00000002) != 0)) {
           result.filters_ = filtersBuilder_ == null
               ? filters_
               : filtersBuilder_.build();
+          to_bitField0_ |= 0x00000001;
         }
         if (((from_bitField0_ & 0x00000004) != 0)) {
           result.timestamp_ = timestamp_;
@@ -4426,6 +4471,7 @@ private void buildPartial0(org.vdaas.vald.api.v1.payload.Update.Config result) {
         if (((from_bitField0_ & 0x00000008) != 0)) {
           result.disableBalancedUpdate_ = disableBalancedUpdate_;
         }
+        result.bitField0_ |= to_bitField0_;
       }
 
       @java.lang.Override
@@ -4679,8 +4725,10 @@ public Builder mergeFilters(org.vdaas.vald.api.v1.payload.Filter.Config value) {
         } else {
           filtersBuilder_.mergeFrom(value);
         }
-        bitField0_ |= 0x00000002;
-        onChanged();
+        if (filters_ != null) {
+          bitField0_ |= 0x00000002;
+          onChanged();
+        }
         return this;
       }
       /**
diff --git a/src/main/java/org/vdaas/vald/api/v1/payload/Upsert.java b/src/main/java/org/vdaas/vald/api/v1/payload/Upsert.java
index 77bc064e..10ab43f6 100644
--- a/src/main/java/org/vdaas/vald/api/v1/payload/Upsert.java
+++ b/src/main/java/org/vdaas/vald/api/v1/payload/Upsert.java
@@ -139,6 +139,7 @@ protected java.lang.Object newInstance(
               org.vdaas.vald.api.v1.payload.Upsert.Request.class, org.vdaas.vald.api.v1.payload.Upsert.Request.Builder.class);
     }
 
+    private int bitField0_;
     public static final int VECTOR_FIELD_NUMBER = 1;
     private org.vdaas.vald.api.v1.payload.Object.Vector vector_;
     /**
@@ -151,7 +152,7 @@ protected java.lang.Object newInstance(
      */
     @java.lang.Override
     public boolean hasVector() {
-      return vector_ != null;
+      return ((bitField0_ & 0x00000001) != 0);
     }
     /**
      * 
@@ -189,7 +190,7 @@ public org.vdaas.vald.api.v1.payload.Object.VectorOrBuilder getVectorOrBuilder()
      */
     @java.lang.Override
     public boolean hasConfig() {
-      return config_ != null;
+      return ((bitField0_ & 0x00000002) != 0);
     }
     /**
      * 
@@ -229,10 +230,10 @@ public final boolean isInitialized() {
     @java.lang.Override
     public void writeTo(com.google.protobuf.CodedOutputStream output)
                         throws java.io.IOException {
-      if (vector_ != null) {
+      if (((bitField0_ & 0x00000001) != 0)) {
         output.writeMessage(1, getVector());
       }
-      if (config_ != null) {
+      if (((bitField0_ & 0x00000002) != 0)) {
         output.writeMessage(2, getConfig());
       }
       getUnknownFields().writeTo(output);
@@ -244,11 +245,11 @@ public int getSerializedSize() {
       if (size != -1) return size;
 
       size = 0;
-      if (vector_ != null) {
+      if (((bitField0_ & 0x00000001) != 0)) {
         size += com.google.protobuf.CodedOutputStream
           .computeMessageSize(1, getVector());
       }
-      if (config_ != null) {
+      if (((bitField0_ & 0x00000002) != 0)) {
         size += com.google.protobuf.CodedOutputStream
           .computeMessageSize(2, getConfig());
       }
@@ -419,13 +420,20 @@ public static final class Builder extends
 
       // Construct using org.vdaas.vald.api.v1.payload.Upsert.Request.newBuilder()
       private Builder() {
-
+        maybeForceBuilderInitialization();
       }
 
       private Builder(
           com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
-
+        maybeForceBuilderInitialization();
+      }
+      private void maybeForceBuilderInitialization() {
+        if (com.google.protobuf.GeneratedMessageV3
+                .alwaysUseFieldBuilders) {
+          getVectorFieldBuilder();
+          getConfigFieldBuilder();
+        }
       }
       @java.lang.Override
       public Builder clear() {
@@ -474,16 +482,20 @@ public org.vdaas.vald.api.v1.payload.Upsert.Request buildPartial() {
 
       private void buildPartial0(org.vdaas.vald.api.v1.payload.Upsert.Request result) {
         int from_bitField0_ = bitField0_;
+        int to_bitField0_ = 0;
         if (((from_bitField0_ & 0x00000001) != 0)) {
           result.vector_ = vectorBuilder_ == null
               ? vector_
               : vectorBuilder_.build();
+          to_bitField0_ |= 0x00000001;
         }
         if (((from_bitField0_ & 0x00000002) != 0)) {
           result.config_ = configBuilder_ == null
               ? config_
               : configBuilder_.build();
+          to_bitField0_ |= 0x00000002;
         }
+        result.bitField0_ |= to_bitField0_;
       }
 
       @java.lang.Override
@@ -679,8 +691,10 @@ public Builder mergeVector(org.vdaas.vald.api.v1.payload.Object.Vector value) {
         } else {
           vectorBuilder_.mergeFrom(value);
         }
-        bitField0_ |= 0x00000001;
-        onChanged();
+        if (vector_ != null) {
+          bitField0_ |= 0x00000001;
+          onChanged();
+        }
         return this;
       }
       /**
@@ -834,8 +848,10 @@ public Builder mergeConfig(org.vdaas.vald.api.v1.payload.Upsert.Config value) {
         } else {
           configBuilder_.mergeFrom(value);
         }
-        bitField0_ |= 0x00000002;
-        onChanged();
+        if (config_ != null) {
+          bitField0_ |= 0x00000002;
+          onChanged();
+        }
         return this;
       }
       /**
@@ -1992,6 +2008,7 @@ protected java.lang.Object newInstance(
               org.vdaas.vald.api.v1.payload.Upsert.ObjectRequest.class, org.vdaas.vald.api.v1.payload.Upsert.ObjectRequest.Builder.class);
     }
 
+    private int bitField0_;
     public static final int OBJECT_FIELD_NUMBER = 1;
     private org.vdaas.vald.api.v1.payload.Object.Blob object_;
     /**
@@ -2004,7 +2021,7 @@ protected java.lang.Object newInstance(
      */
     @java.lang.Override
     public boolean hasObject() {
-      return object_ != null;
+      return ((bitField0_ & 0x00000001) != 0);
     }
     /**
      * 
@@ -2042,7 +2059,7 @@ public org.vdaas.vald.api.v1.payload.Object.BlobOrBuilder getObjectOrBuilder() {
      */
     @java.lang.Override
     public boolean hasConfig() {
-      return config_ != null;
+      return ((bitField0_ & 0x00000002) != 0);
     }
     /**
      * 
@@ -2080,7 +2097,7 @@ public org.vdaas.vald.api.v1.payload.Upsert.ConfigOrBuilder getConfigOrBuilder()
      */
     @java.lang.Override
     public boolean hasVectorizer() {
-      return vectorizer_ != null;
+      return ((bitField0_ & 0x00000004) != 0);
     }
     /**
      * 
@@ -2120,13 +2137,13 @@ public final boolean isInitialized() {
     @java.lang.Override
     public void writeTo(com.google.protobuf.CodedOutputStream output)
                         throws java.io.IOException {
-      if (object_ != null) {
+      if (((bitField0_ & 0x00000001) != 0)) {
         output.writeMessage(1, getObject());
       }
-      if (config_ != null) {
+      if (((bitField0_ & 0x00000002) != 0)) {
         output.writeMessage(2, getConfig());
       }
-      if (vectorizer_ != null) {
+      if (((bitField0_ & 0x00000004) != 0)) {
         output.writeMessage(3, getVectorizer());
       }
       getUnknownFields().writeTo(output);
@@ -2138,15 +2155,15 @@ public int getSerializedSize() {
       if (size != -1) return size;
 
       size = 0;
-      if (object_ != null) {
+      if (((bitField0_ & 0x00000001) != 0)) {
         size += com.google.protobuf.CodedOutputStream
           .computeMessageSize(1, getObject());
       }
-      if (config_ != null) {
+      if (((bitField0_ & 0x00000002) != 0)) {
         size += com.google.protobuf.CodedOutputStream
           .computeMessageSize(2, getConfig());
       }
-      if (vectorizer_ != null) {
+      if (((bitField0_ & 0x00000004) != 0)) {
         size += com.google.protobuf.CodedOutputStream
           .computeMessageSize(3, getVectorizer());
       }
@@ -2326,13 +2343,21 @@ public static final class Builder extends
 
       // Construct using org.vdaas.vald.api.v1.payload.Upsert.ObjectRequest.newBuilder()
       private Builder() {
-
+        maybeForceBuilderInitialization();
       }
 
       private Builder(
           com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
-
+        maybeForceBuilderInitialization();
+      }
+      private void maybeForceBuilderInitialization() {
+        if (com.google.protobuf.GeneratedMessageV3
+                .alwaysUseFieldBuilders) {
+          getObjectFieldBuilder();
+          getConfigFieldBuilder();
+          getVectorizerFieldBuilder();
+        }
       }
       @java.lang.Override
       public Builder clear() {
@@ -2386,21 +2411,26 @@ public org.vdaas.vald.api.v1.payload.Upsert.ObjectRequest buildPartial() {
 
       private void buildPartial0(org.vdaas.vald.api.v1.payload.Upsert.ObjectRequest result) {
         int from_bitField0_ = bitField0_;
+        int to_bitField0_ = 0;
         if (((from_bitField0_ & 0x00000001) != 0)) {
           result.object_ = objectBuilder_ == null
               ? object_
               : objectBuilder_.build();
+          to_bitField0_ |= 0x00000001;
         }
         if (((from_bitField0_ & 0x00000002) != 0)) {
           result.config_ = configBuilder_ == null
               ? config_
               : configBuilder_.build();
+          to_bitField0_ |= 0x00000002;
         }
         if (((from_bitField0_ & 0x00000004) != 0)) {
           result.vectorizer_ = vectorizerBuilder_ == null
               ? vectorizer_
               : vectorizerBuilder_.build();
+          to_bitField0_ |= 0x00000004;
         }
+        result.bitField0_ |= to_bitField0_;
       }
 
       @java.lang.Override
@@ -2606,8 +2636,10 @@ public Builder mergeObject(org.vdaas.vald.api.v1.payload.Object.Blob value) {
         } else {
           objectBuilder_.mergeFrom(value);
         }
-        bitField0_ |= 0x00000001;
-        onChanged();
+        if (object_ != null) {
+          bitField0_ |= 0x00000001;
+          onChanged();
+        }
         return this;
       }
       /**
@@ -2761,8 +2793,10 @@ public Builder mergeConfig(org.vdaas.vald.api.v1.payload.Upsert.Config value) {
         } else {
           configBuilder_.mergeFrom(value);
         }
-        bitField0_ |= 0x00000002;
-        onChanged();
+        if (config_ != null) {
+          bitField0_ |= 0x00000002;
+          onChanged();
+        }
         return this;
       }
       /**
@@ -2916,8 +2950,10 @@ public Builder mergeVectorizer(org.vdaas.vald.api.v1.payload.Filter.Target value
         } else {
           vectorizerBuilder_.mergeFrom(value);
         }
-        bitField0_ |= 0x00000004;
-        onChanged();
+        if (vectorizer_ != null) {
+          bitField0_ |= 0x00000004;
+          onChanged();
+        }
         return this;
       }
       /**
@@ -4051,6 +4087,7 @@ protected java.lang.Object newInstance(
               org.vdaas.vald.api.v1.payload.Upsert.Config.class, org.vdaas.vald.api.v1.payload.Upsert.Config.Builder.class);
     }
 
+    private int bitField0_;
     public static final int SKIP_STRICT_EXIST_CHECK_FIELD_NUMBER = 1;
     private boolean skipStrictExistCheck_ = false;
     /**
@@ -4078,7 +4115,7 @@ public boolean getSkipStrictExistCheck() {
      */
     @java.lang.Override
     public boolean hasFilters() {
-      return filters_ != null;
+      return ((bitField0_ & 0x00000001) != 0);
     }
     /**
      * 
@@ -4152,7 +4189,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
       if (skipStrictExistCheck_ != false) {
         output.writeBool(1, skipStrictExistCheck_);
       }
-      if (filters_ != null) {
+      if (((bitField0_ & 0x00000001) != 0)) {
         output.writeMessage(2, getFilters());
       }
       if (timestamp_ != 0L) {
@@ -4174,7 +4211,7 @@ public int getSerializedSize() {
         size += com.google.protobuf.CodedOutputStream
           .computeBoolSize(1, skipStrictExistCheck_);
       }
-      if (filters_ != null) {
+      if (((bitField0_ & 0x00000001) != 0)) {
         size += com.google.protobuf.CodedOutputStream
           .computeMessageSize(2, getFilters());
       }
@@ -4359,13 +4396,19 @@ public static final class Builder extends
 
       // Construct using org.vdaas.vald.api.v1.payload.Upsert.Config.newBuilder()
       private Builder() {
-
+        maybeForceBuilderInitialization();
       }
 
       private Builder(
           com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
-
+        maybeForceBuilderInitialization();
+      }
+      private void maybeForceBuilderInitialization() {
+        if (com.google.protobuf.GeneratedMessageV3
+                .alwaysUseFieldBuilders) {
+          getFiltersFieldBuilder();
+        }
       }
       @java.lang.Override
       public Builder clear() {
@@ -4415,10 +4458,12 @@ private void buildPartial0(org.vdaas.vald.api.v1.payload.Upsert.Config result) {
         if (((from_bitField0_ & 0x00000001) != 0)) {
           result.skipStrictExistCheck_ = skipStrictExistCheck_;
         }
+        int to_bitField0_ = 0;
         if (((from_bitField0_ & 0x00000002) != 0)) {
           result.filters_ = filtersBuilder_ == null
               ? filters_
               : filtersBuilder_.build();
+          to_bitField0_ |= 0x00000001;
         }
         if (((from_bitField0_ & 0x00000004) != 0)) {
           result.timestamp_ = timestamp_;
@@ -4426,6 +4471,7 @@ private void buildPartial0(org.vdaas.vald.api.v1.payload.Upsert.Config result) {
         if (((from_bitField0_ & 0x00000008) != 0)) {
           result.disableBalancedUpdate_ = disableBalancedUpdate_;
         }
+        result.bitField0_ |= to_bitField0_;
       }
 
       @java.lang.Override
@@ -4679,8 +4725,10 @@ public Builder mergeFilters(org.vdaas.vald.api.v1.payload.Filter.Config value) {
         } else {
           filtersBuilder_.mergeFrom(value);
         }
-        bitField0_ |= 0x00000002;
-        onChanged();
+        if (filters_ != null) {
+          bitField0_ |= 0x00000002;
+          onChanged();
+        }
         return this;
       }
       /**
diff --git a/src/main/java/org/vdaas/vald/api/v1/payload/ValdPayload.java b/src/main/java/org/vdaas/vald/api/v1/payload/ValdPayload.java
index 1f935a2a..cd54af4b 100644
--- a/src/main/java/org/vdaas/vald/api/v1/payload/ValdPayload.java
+++ b/src/main/java/org/vdaas/vald/api/v1/payload/ValdPayload.java
@@ -189,6 +189,16 @@ public static void registerAllExtensions(
   static final 
     com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internal_static_payload_v1_Remove_MultiRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_payload_v1_Remove_TimestampRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_payload_v1_Remove_TimestampRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_payload_v1_Remove_Timestamp_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_payload_v1_Remove_Timestamp_fieldAccessorTable;
   static final com.google.protobuf.Descriptors.Descriptor
     internal_static_payload_v1_Remove_Config_descriptor;
   static final 
@@ -269,6 +279,21 @@ public static void registerAllExtensions(
   static final 
     com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internal_static_payload_v1_Object_Locations_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_payload_v1_Object_List_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_payload_v1_Object_List_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_payload_v1_Object_List_Request_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_payload_v1_Object_List_Request_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_payload_v1_Object_List_Response_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_payload_v1_Object_List_Response_fieldAccessorTable;
   static final com.google.protobuf.Descriptors.Descriptor
     internal_static_payload_v1_Control_descriptor;
   static final 
@@ -372,140 +397,153 @@ public static void registerAllExtensions(
       "ayload.v1\032Agithub.com/envoyproxy/protoc-" +
       "gen-validate/validate/validate.proto\0328gi" +
       "thub.com/googleapis/googleapis/google/rp" +
-      "c/status.proto\"\375\010\n\006Search\032N\n\007Request\022\030\n\006" +
-      "vector\030\001 \003(\002B\010\372B\005\222\001\002\010\002\022)\n\006config\030\002 \001(\0132\031" +
-      ".payload.v1.Search.Config\032<\n\014MultiReques" +
-      "t\022,\n\010requests\030\001 \003(\0132\032.payload.v1.Search." +
-      "Request\032B\n\tIDRequest\022\n\n\002id\030\001 \001(\t\022)\n\006conf" +
-      "ig\030\002 \001(\0132\031.payload.v1.Search.Config\032@\n\016M" +
-      "ultiIDRequest\022.\n\010requests\030\001 \003(\0132\034.payloa" +
-      "d.v1.Search.IDRequest\032y\n\rObjectRequest\022\016" +
-      "\n\006object\030\001 \001(\014\022)\n\006config\030\002 \001(\0132\031.payload" +
-      ".v1.Search.Config\022-\n\nvectorizer\030\003 \001(\0132\031." +
+      "c/status.proto\032]github.com/planetscale/v" +
+      "tprotobuf/include/github.com/planetscale" +
+      "/vtprotobuf/vtproto/ext.proto\"\375\010\n\006Search" +
+      "\032N\n\007Request\022\030\n\006vector\030\001 \003(\002B\010\372B\005\222\001\002\010\002\022)\n" +
+      "\006config\030\002 \001(\0132\031.payload.v1.Search.Config" +
+      "\032<\n\014MultiRequest\022,\n\010requests\030\001 \003(\0132\032.pay" +
+      "load.v1.Search.Request\032B\n\tIDRequest\022\n\n\002i" +
+      "d\030\001 \001(\t\022)\n\006config\030\002 \001(\0132\031.payload.v1.Sea" +
+      "rch.Config\032@\n\016MultiIDRequest\022.\n\010requests" +
+      "\030\001 \003(\0132\034.payload.v1.Search.IDRequest\032y\n\r" +
+      "ObjectRequest\022\016\n\006object\030\001 \001(\014\022)\n\006config\030" +
+      "\002 \001(\0132\031.payload.v1.Search.Config\022-\n\nvect" +
+      "orizer\030\003 \001(\0132\031.payload.v1.Filter.Target\032" +
+      "H\n\022MultiObjectRequest\0222\n\010requests\030\001 \003(\0132" +
+      " .payload.v1.Search.ObjectRequest\032\255\002\n\006Co" +
+      "nfig\022\022\n\nrequest_id\030\001 \001(\t\022\024\n\003num\030\002 \001(\rB\007\372" +
+      "B\004*\002(\001\022\016\n\006radius\030\003 \001(\002\022\017\n\007epsilon\030\004 \001(\002\022" +
+      "\017\n\007timeout\030\005 \001(\003\0222\n\017ingress_filters\030\006 \001(" +
+      "\0132\031.payload.v1.Filter.Config\0221\n\016egress_f" +
+      "ilters\030\007 \001(\0132\031.payload.v1.Filter.Config\022" +
+      "\030\n\007min_num\030\010 \001(\rB\007\372B\004*\002(\000\022F\n\025aggregation" +
+      "_algorithm\030\t \001(\0162\'.payload.v1.Search.Agg" +
+      "regationAlgorithm\032L\n\010Response\022\022\n\nrequest" +
+      "_id\030\001 \001(\t\022,\n\007results\030\002 \003(\0132\033.payload.v1." +
+      "Object.Distance\032;\n\tResponses\022.\n\tresponse" +
+      "s\030\001 \003(\0132\033.payload.v1.Search.Response\032r\n\016" +
+      "StreamResponse\022/\n\010response\030\001 \001(\0132\033.paylo" +
+      "ad.v1.Search.ResponseH\000\022$\n\006status\030\002 \001(\0132" +
+      "\022.google.rpc.StatusH\000B\t\n\007payload\"k\n\024Aggr" +
+      "egationAlgorithm\022\013\n\007Unknown\020\000\022\023\n\017Concurr" +
+      "entQueue\020\001\022\r\n\tSortSlice\020\002\022\021\n\rSortPoolSli" +
+      "ce\020\003\022\017\n\013PairingHeap\020\004\"d\n\006Filter\032$\n\006Targe" +
+      "t\022\014\n\004host\030\001 \001(\t\022\014\n\004port\030\002 \001(\r\0324\n\006Config\022" +
+      "*\n\007targets\030\001 \003(\0132\031.payload.v1.Filter.Tar" +
+      "get\"\372\003\n\006Insert\032i\n\007Request\0223\n\006vector\030\001 \001(" +
+      "\0132\031.payload.v1.Object.VectorB\010\372B\005\222\001\002\010\002\022)" +
+      "\n\006config\030\002 \001(\0132\031.payload.v1.Insert.Confi" +
+      "g\032<\n\014MultiRequest\022,\n\010requests\030\001 \003(\0132\032.pa" +
+      "yload.v1.Insert.Request\032\222\001\n\rObjectReques" +
+      "t\022\'\n\006object\030\001 \001(\0132\027.payload.v1.Object.Bl" +
+      "ob\022)\n\006config\030\002 \001(\0132\031.payload.v1.Insert.C" +
+      "onfig\022-\n\nvectorizer\030\003 \001(\0132\031.payload.v1.F" +
+      "ilter.Target\032H\n\022MultiObjectRequest\0222\n\010re" +
+      "quests\030\001 \003(\0132 .payload.v1.Insert.ObjectR" +
+      "equest\032h\n\006Config\022\037\n\027skip_strict_exist_ch" +
+      "eck\030\001 \001(\010\022*\n\007filters\030\002 \001(\0132\031.payload.v1." +
+      "Filter.Config\022\021\n\ttimestamp\030\003 \001(\003\"\234\004\n\006Upd" +
+      "ate\032i\n\007Request\0223\n\006vector\030\001 \001(\0132\031.payload" +
+      ".v1.Object.VectorB\010\372B\005\222\001\002\010\002\022)\n\006config\030\002 " +
+      "\001(\0132\031.payload.v1.Update.Config\032<\n\014MultiR" +
+      "equest\022,\n\010requests\030\001 \003(\0132\032.payload.v1.Up" +
+      "date.Request\032\222\001\n\rObjectRequest\022\'\n\006object" +
+      "\030\001 \001(\0132\027.payload.v1.Object.Blob\022)\n\006confi" +
+      "g\030\002 \001(\0132\031.payload.v1.Update.Config\022-\n\nve" +
+      "ctorizer\030\003 \001(\0132\031.payload.v1.Filter.Targe" +
+      "t\032H\n\022MultiObjectRequest\0222\n\010requests\030\001 \003(" +
+      "\0132 .payload.v1.Update.ObjectRequest\032\211\001\n\006" +
+      "Config\022\037\n\027skip_strict_exist_check\030\001 \001(\010\022" +
+      "*\n\007filters\030\002 \001(\0132\031.payload.v1.Filter.Con" +
+      "fig\022\021\n\ttimestamp\030\003 \001(\003\022\037\n\027disable_balanc" +
+      "ed_update\030\004 \001(\010\"\234\004\n\006Upsert\032i\n\007Request\0223\n" +
+      "\006vector\030\001 \001(\0132\031.payload.v1.Object.Vector" +
+      "B\010\372B\005\222\001\002\010\002\022)\n\006config\030\002 \001(\0132\031.payload.v1." +
+      "Upsert.Config\032<\n\014MultiRequest\022,\n\010request" +
+      "s\030\001 \003(\0132\032.payload.v1.Upsert.Request\032\222\001\n\r" +
+      "ObjectRequest\022\'\n\006object\030\001 \001(\0132\027.payload." +
+      "v1.Object.Blob\022)\n\006config\030\002 \001(\0132\031.payload" +
+      ".v1.Upsert.Config\022-\n\nvectorizer\030\003 \001(\0132\031." +
       "payload.v1.Filter.Target\032H\n\022MultiObjectR" +
-      "equest\0222\n\010requests\030\001 \003(\0132 .payload.v1.Se" +
-      "arch.ObjectRequest\032\255\002\n\006Config\022\022\n\nrequest" +
-      "_id\030\001 \001(\t\022\024\n\003num\030\002 \001(\rB\007\372B\004*\002(\001\022\016\n\006radiu" +
-      "s\030\003 \001(\002\022\017\n\007epsilon\030\004 \001(\002\022\017\n\007timeout\030\005 \001(" +
-      "\003\0222\n\017ingress_filters\030\006 \001(\0132\031.payload.v1." +
-      "Filter.Config\0221\n\016egress_filters\030\007 \001(\0132\031." +
-      "payload.v1.Filter.Config\022\030\n\007min_num\030\010 \001(" +
-      "\rB\007\372B\004*\002(\000\022F\n\025aggregation_algorithm\030\t \001(" +
-      "\0162\'.payload.v1.Search.AggregationAlgorit" +
-      "hm\032L\n\010Response\022\022\n\nrequest_id\030\001 \001(\t\022,\n\007re" +
-      "sults\030\002 \003(\0132\033.payload.v1.Object.Distance" +
-      "\032;\n\tResponses\022.\n\tresponses\030\001 \003(\0132\033.paylo" +
-      "ad.v1.Search.Response\032r\n\016StreamResponse\022" +
-      "/\n\010response\030\001 \001(\0132\033.payload.v1.Search.Re" +
-      "sponseH\000\022$\n\006status\030\002 \001(\0132\022.google.rpc.St" +
-      "atusH\000B\t\n\007payload\"k\n\024AggregationAlgorith" +
-      "m\022\013\n\007Unknown\020\000\022\023\n\017ConcurrentQueue\020\001\022\r\n\tS" +
-      "ortSlice\020\002\022\021\n\rSortPoolSlice\020\003\022\017\n\013Pairing" +
-      "Heap\020\004\"d\n\006Filter\032$\n\006Target\022\014\n\004host\030\001 \001(\t" +
-      "\022\014\n\004port\030\002 \001(\r\0324\n\006Config\022*\n\007targets\030\001 \003(" +
-      "\0132\031.payload.v1.Filter.Target\"\372\003\n\006Insert\032" +
-      "i\n\007Request\0223\n\006vector\030\001 \001(\0132\031.payload.v1." +
-      "Object.VectorB\010\372B\005\222\001\002\010\002\022)\n\006config\030\002 \001(\0132" +
-      "\031.payload.v1.Insert.Config\032<\n\014MultiReque" +
-      "st\022,\n\010requests\030\001 \003(\0132\032.payload.v1.Insert" +
-      ".Request\032\222\001\n\rObjectRequest\022\'\n\006object\030\001 \001" +
-      "(\0132\027.payload.v1.Object.Blob\022)\n\006config\030\002 " +
-      "\001(\0132\031.payload.v1.Insert.Config\022-\n\nvector" +
-      "izer\030\003 \001(\0132\031.payload.v1.Filter.Target\032H\n" +
-      "\022MultiObjectRequest\0222\n\010requests\030\001 \003(\0132 ." +
-      "payload.v1.Insert.ObjectRequest\032h\n\006Confi" +
-      "g\022\037\n\027skip_strict_exist_check\030\001 \001(\010\022*\n\007fi" +
-      "lters\030\002 \001(\0132\031.payload.v1.Filter.Config\022\021" +
-      "\n\ttimestamp\030\003 \001(\003\"\234\004\n\006Update\032i\n\007Request\022" +
-      "3\n\006vector\030\001 \001(\0132\031.payload.v1.Object.Vect" +
-      "orB\010\372B\005\222\001\002\010\002\022)\n\006config\030\002 \001(\0132\031.payload.v" +
-      "1.Update.Config\032<\n\014MultiRequest\022,\n\010reque" +
-      "sts\030\001 \003(\0132\032.payload.v1.Update.Request\032\222\001" +
-      "\n\rObjectRequest\022\'\n\006object\030\001 \001(\0132\027.payloa" +
-      "d.v1.Object.Blob\022)\n\006config\030\002 \001(\0132\031.paylo" +
-      "ad.v1.Update.Config\022-\n\nvectorizer\030\003 \001(\0132" +
-      "\031.payload.v1.Filter.Target\032H\n\022MultiObjec" +
-      "tRequest\0222\n\010requests\030\001 \003(\0132 .payload.v1." +
-      "Update.ObjectRequest\032\211\001\n\006Config\022\037\n\027skip_" +
-      "strict_exist_check\030\001 \001(\010\022*\n\007filters\030\002 \001(" +
-      "\0132\031.payload.v1.Filter.Config\022\021\n\ttimestam" +
-      "p\030\003 \001(\003\022\037\n\027disable_balanced_update\030\004 \001(\010" +
-      "\"\234\004\n\006Upsert\032i\n\007Request\0223\n\006vector\030\001 \001(\0132\031" +
-      ".payload.v1.Object.VectorB\010\372B\005\222\001\002\010\002\022)\n\006c" +
-      "onfig\030\002 \001(\0132\031.payload.v1.Upsert.Config\032<" +
-      "\n\014MultiRequest\022,\n\010requests\030\001 \003(\0132\032.paylo" +
-      "ad.v1.Upsert.Request\032\222\001\n\rObjectRequest\022\'" +
-      "\n\006object\030\001 \001(\0132\027.payload.v1.Object.Blob\022" +
-      ")\n\006config\030\002 \001(\0132\031.payload.v1.Upsert.Conf" +
-      "ig\022-\n\nvectorizer\030\003 \001(\0132\031.payload.v1.Filt" +
-      "er.Target\032H\n\022MultiObjectRequest\0222\n\010reque" +
-      "sts\030\001 \003(\0132 .payload.v1.Upsert.ObjectRequ" +
-      "est\032\211\001\n\006Config\022\037\n\027skip_strict_exist_chec" +
-      "k\030\001 \001(\010\022*\n\007filters\030\002 \001(\0132\031.payload.v1.Fi" +
-      "lter.Config\022\021\n\ttimestamp\030\003 \001(\003\022\037\n\027disabl" +
-      "e_balanced_update\030\004 \001(\010\"\335\001\n\006Remove\032W\n\007Re" +
-      "quest\022!\n\002id\030\001 \001(\0132\025.payload.v1.Object.ID" +
-      "\022)\n\006config\030\002 \001(\0132\031.payload.v1.Remove.Con" +
-      "fig\032<\n\014MultiRequest\022,\n\010requests\030\001 \003(\0132\032." +
-      "payload.v1.Remove.Request\032<\n\006Config\022\037\n\027s" +
-      "kip_strict_exist_check\030\001 \001(\010\022\021\n\ttimestam" +
-      "p\030\003 \001(\003\"\310\007\n\006Object\032h\n\rVectorRequest\022+\n\002i" +
-      "d\030\001 \001(\0132\025.payload.v1.Object.IDB\010\372B\005\222\001\002\010\002" +
-      "\022*\n\007filters\030\002 \001(\0132\031.payload.v1.Filter.Co" +
-      "nfig\032(\n\010Distance\022\n\n\002id\030\001 \001(\t\022\020\n\010distance" +
-      "\030\002 \001(\002\032r\n\016StreamDistance\022/\n\010distance\030\001 \001" +
-      "(\0132\033.payload.v1.Object.DistanceH\000\022$\n\006sta" +
-      "tus\030\002 \001(\0132\022.google.rpc.StatusH\000B\t\n\007paylo" +
-      "ad\032\031\n\002ID\022\023\n\002id\030\001 \001(\tB\007\372B\004r\002\020\001\032\022\n\003IDs\022\013\n\003" +
-      "ids\030\001 \003(\t\0327\n\006Vector\022\023\n\002id\030\001 \001(\tB\007\372B\004r\002\020\001" +
-      "\022\030\n\006vector\030\002 \003(\002B\010\372B\005\222\001\002\010\002\0325\n\007Vectors\022*\n" +
-      "\007vectors\030\001 \003(\0132\031.payload.v1.Object.Vecto" +
-      "r\032l\n\014StreamVector\022+\n\006vector\030\001 \001(\0132\031.payl" +
-      "oad.v1.Object.VectorH\000\022$\n\006status\030\002 \001(\0132\022" +
-      ".google.rpc.StatusH\000B\t\n\007payload\032.\n\rResha" +
-      "peVector\022\016\n\006object\030\001 \001(\014\022\r\n\005shape\030\002 \003(\005\032" +
-      "+\n\004Blob\022\023\n\002id\030\001 \001(\tB\007\372B\004r\002\020\001\022\016\n\006object\030\002" +
-      " \001(\014\032f\n\nStreamBlob\022\'\n\004blob\030\001 \001(\0132\027.paylo" +
-      "ad.v1.Object.BlobH\000\022$\n\006status\030\002 \001(\0132\022.go" +
-      "ogle.rpc.StatusH\000B\t\n\007payload\0323\n\010Location" +
-      "\022\014\n\004name\030\001 \001(\t\022\014\n\004uuid\030\002 \001(\t\022\013\n\003ips\030\003 \003(" +
-      "\t\032r\n\016StreamLocation\022/\n\010location\030\001 \001(\0132\033." +
-      "payload.v1.Object.LocationH\000\022$\n\006status\030\002" +
-      " \001(\0132\022.google.rpc.StatusH\000B\t\n\007payload\032;\n" +
-      "\tLocations\022.\n\tlocations\030\001 \003(\0132\033.payload." +
-      "v1.Object.Location\";\n\007Control\0320\n\022CreateI" +
-      "ndexRequest\022\032\n\tpool_size\030\001 \001(\rB\007\372B\004*\002(\000\"" +
-      "O\n\nDiscoverer\032A\n\007Request\022\025\n\004name\030\001 \001(\tB\007" +
-      "\372B\004r\002\020\001\022\021\n\tnamespace\030\002 \001(\t\022\014\n\004node\030\003 \001(\t" +
-      "\"\210\006\n\004Info\032\227\001\n\005Index\032N\n\005Count\022\016\n\006stored\030\001" +
-      " \001(\r\022\023\n\013uncommitted\030\002 \001(\r\022\020\n\010indexing\030\003 " +
-      "\001(\010\022\016\n\006saving\030\004 \001(\010\032>\n\004UUID\032\031\n\tCommitted" +
-      "\022\014\n\004uuid\030\001 \001(\t\032\033\n\013Uncommitted\022\014\n\004uuid\030\001 " +
-      "\001(\t\032\276\001\n\003Pod\022\020\n\010app_name\030\001 \001(\t\022\014\n\004name\030\002 " +
-      "\001(\t\022\021\n\tnamespace\030\003 \001(\t\022\023\n\002ip\030\004 \001(\tB\007\372B\004r" +
-      "\002x\001\022!\n\003cpu\030\005 \001(\0132\024.payload.v1.Info.CPU\022\'" +
-      "\n\006memory\030\006 \001(\0132\027.payload.v1.Info.Memory\022" +
-      "#\n\004node\030\007 \001(\0132\025.payload.v1.Info.Node\032\263\001\n" +
-      "\004Node\022\014\n\004name\030\001 \001(\t\022\025\n\rinternal_addr\030\002 \001" +
-      "(\t\022\025\n\rexternal_addr\030\003 \001(\t\022!\n\003cpu\030\004 \001(\0132\024" +
-      ".payload.v1.Info.CPU\022\'\n\006memory\030\005 \001(\0132\027.p" +
-      "ayload.v1.Info.Memory\022#\n\004Pods\030\006 \001(\0132\025.pa" +
-      "yload.v1.Info.Pods\0324\n\003CPU\022\r\n\005limit\030\001 \001(\001" +
-      "\022\017\n\007request\030\002 \001(\001\022\r\n\005usage\030\003 \001(\001\0327\n\006Memo" +
-      "ry\022\r\n\005limit\030\001 \001(\001\022\017\n\007request\030\002 \001(\001\022\r\n\005us" +
-      "age\030\003 \001(\001\0324\n\004Pods\022,\n\004pods\030\001 \003(\0132\024.payloa" +
-      "d.v1.Info.PodB\010\372B\005\222\001\002\010\001\0327\n\005Nodes\022.\n\005node" +
-      "s\030\001 \003(\0132\025.payload.v1.Info.NodeB\010\372B\005\222\001\002\010\001" +
-      "\032\021\n\003IPs\022\n\n\002ip\030\001 \003(\t\"\007\n\005EmptyBZ\n\035org.vdaa" +
-      "s.vald.api.v1.payloadB\013ValdPayloadP\001Z*gi" +
-      "thub.com/vdaas/vald/apis/grpc/v1/payload" +
-      "b\006proto3"
+      "equest\0222\n\010requests\030\001 \003(\0132 .payload.v1.Up" +
+      "sert.ObjectRequest\032\211\001\n\006Config\022\037\n\027skip_st" +
+      "rict_exist_check\030\001 \001(\010\022*\n\007filters\030\002 \001(\0132" +
+      "\031.payload.v1.Filter.Config\022\021\n\ttimestamp\030" +
+      "\003 \001(\003\022\037\n\027disable_balanced_update\030\004 \001(\010\"\271" +
+      "\003\n\006Remove\032W\n\007Request\022!\n\002id\030\001 \001(\0132\025.paylo" +
+      "ad.v1.Object.ID\022)\n\006config\030\002 \001(\0132\031.payloa" +
+      "d.v1.Remove.Config\032<\n\014MultiRequest\022,\n\010re" +
+      "quests\030\001 \003(\0132\032.payload.v1.Remove.Request" +
+      "\032D\n\020TimestampRequest\0220\n\ntimestamps\030\001 \003(\013" +
+      "2\034.payload.v1.Remove.Timestamp\032\223\001\n\tTimes" +
+      "tamp\022\021\n\ttimestamp\030\001 \001(\003\0227\n\010operator\030\002 \001(" +
+      "\0162%.payload.v1.Remove.Timestamp.Operator" +
+      "\":\n\010Operator\022\006\n\002Eq\020\000\022\006\n\002Ne\020\001\022\006\n\002Ge\020\002\022\006\n\002" +
+      "Gt\020\003\022\006\n\002Le\020\004\022\006\n\002Lt\020\005\032<\n\006Config\022\037\n\027skip_s" +
+      "trict_exist_check\030\001 \001(\010\022\021\n\ttimestamp\030\003 \001" +
+      "(\003\"\336\010\n\006Object\032h\n\rVectorRequest\022+\n\002id\030\001 \001" +
+      "(\0132\025.payload.v1.Object.IDB\010\372B\005\222\001\002\010\002\022*\n\007f" +
+      "ilters\030\002 \001(\0132\031.payload.v1.Filter.Config\032" +
+      "(\n\010Distance\022\n\n\002id\030\001 \001(\t\022\020\n\010distance\030\002 \001(" +
+      "\002\032r\n\016StreamDistance\022/\n\010distance\030\001 \001(\0132\033." +
+      "payload.v1.Object.DistanceH\000\022$\n\006status\030\002" +
+      " \001(\0132\022.google.rpc.StatusH\000B\t\n\007payload\032\031\n" +
+      "\002ID\022\023\n\002id\030\001 \001(\tB\007\372B\004r\002\020\001\032\022\n\003IDs\022\013\n\003ids\030\001" +
+      " \003(\t\032P\n\006Vector\022\023\n\002id\030\001 \001(\tB\007\372B\004r\002\020\001\022\030\n\006v" +
+      "ector\030\002 \003(\002B\010\372B\005\222\001\002\010\002\022\021\n\ttimestamp\030\003 \001(\003" +
+      ":\004\250\246\037\001\0325\n\007Vectors\022*\n\007vectors\030\001 \003(\0132\031.pay" +
+      "load.v1.Object.Vector\032l\n\014StreamVector\022+\n" +
+      "\006vector\030\001 \001(\0132\031.payload.v1.Object.Vector" +
+      "H\000\022$\n\006status\030\002 \001(\0132\022.google.rpc.StatusH\000" +
+      "B\t\n\007payload\032.\n\rReshapeVector\022\016\n\006object\030\001" +
+      " \001(\014\022\r\n\005shape\030\002 \003(\005\032+\n\004Blob\022\023\n\002id\030\001 \001(\tB" +
+      "\007\372B\004r\002\020\001\022\016\n\006object\030\002 \001(\014\032f\n\nStreamBlob\022\'" +
+      "\n\004blob\030\001 \001(\0132\027.payload.v1.Object.BlobH\000\022" +
+      "$\n\006status\030\002 \001(\0132\022.google.rpc.StatusH\000B\t\n" +
+      "\007payload\0323\n\010Location\022\014\n\004name\030\001 \001(\t\022\014\n\004uu" +
+      "id\030\002 \001(\t\022\013\n\003ips\030\003 \003(\t\032r\n\016StreamLocation\022" +
+      "/\n\010location\030\001 \001(\0132\033.payload.v1.Object.Lo" +
+      "cationH\000\022$\n\006status\030\002 \001(\0132\022.google.rpc.St" +
+      "atusH\000B\t\n\007payload\032;\n\tLocations\022.\n\tlocati" +
+      "ons\030\001 \003(\0132\033.payload.v1.Object.Location\032{" +
+      "\n\004List\032\t\n\007Request\032h\n\010Response\022+\n\006vector\030" +
+      "\001 \001(\0132\031.payload.v1.Object.VectorH\000\022$\n\006st" +
+      "atus\030\002 \001(\0132\022.google.rpc.StatusH\000B\t\n\007payl" +
+      "oad\";\n\007Control\0320\n\022CreateIndexRequest\022\032\n\t" +
+      "pool_size\030\001 \001(\rB\007\372B\004*\002(\000\"O\n\nDiscoverer\032A" +
+      "\n\007Request\022\025\n\004name\030\001 \001(\tB\007\372B\004r\002\020\001\022\021\n\tname" +
+      "space\030\002 \001(\t\022\014\n\004node\030\003 \001(\t\"\210\006\n\004Info\032\227\001\n\005I" +
+      "ndex\032N\n\005Count\022\016\n\006stored\030\001 \001(\r\022\023\n\013uncommi" +
+      "tted\030\002 \001(\r\022\020\n\010indexing\030\003 \001(\010\022\016\n\006saving\030\004" +
+      " \001(\010\032>\n\004UUID\032\031\n\tCommitted\022\014\n\004uuid\030\001 \001(\t\032" +
+      "\033\n\013Uncommitted\022\014\n\004uuid\030\001 \001(\t\032\276\001\n\003Pod\022\020\n\010" +
+      "app_name\030\001 \001(\t\022\014\n\004name\030\002 \001(\t\022\021\n\tnamespac" +
+      "e\030\003 \001(\t\022\023\n\002ip\030\004 \001(\tB\007\372B\004r\002x\001\022!\n\003cpu\030\005 \001(" +
+      "\0132\024.payload.v1.Info.CPU\022\'\n\006memory\030\006 \001(\0132" +
+      "\027.payload.v1.Info.Memory\022#\n\004node\030\007 \001(\0132\025" +
+      ".payload.v1.Info.Node\032\263\001\n\004Node\022\014\n\004name\030\001" +
+      " \001(\t\022\025\n\rinternal_addr\030\002 \001(\t\022\025\n\rexternal_" +
+      "addr\030\003 \001(\t\022!\n\003cpu\030\004 \001(\0132\024.payload.v1.Inf" +
+      "o.CPU\022\'\n\006memory\030\005 \001(\0132\027.payload.v1.Info." +
+      "Memory\022#\n\004Pods\030\006 \001(\0132\025.payload.v1.Info.P" +
+      "ods\0324\n\003CPU\022\r\n\005limit\030\001 \001(\001\022\017\n\007request\030\002 \001" +
+      "(\001\022\r\n\005usage\030\003 \001(\001\0327\n\006Memory\022\r\n\005limit\030\001 \001" +
+      "(\001\022\017\n\007request\030\002 \001(\001\022\r\n\005usage\030\003 \001(\001\0324\n\004Po" +
+      "ds\022,\n\004pods\030\001 \003(\0132\024.payload.v1.Info.PodB\010" +
+      "\372B\005\222\001\002\010\001\0327\n\005Nodes\022.\n\005nodes\030\001 \003(\0132\025.paylo" +
+      "ad.v1.Info.NodeB\010\372B\005\222\001\002\010\001\032\021\n\003IPs\022\n\n\002ip\030\001" +
+      " \003(\t\"\007\n\005EmptyBd\n\035org.vdaas.vald.api.v1.p" +
+      "ayloadB\013ValdPayloadP\001Z*github.com/vdaas/" +
+      "vald/apis/grpc/v1/payload\242\002\007Payloadb\006pro" +
+      "to3"
     };
     descriptor = com.google.protobuf.Descriptors.FileDescriptor
       .internalBuildGeneratedFileFrom(descriptorData,
         new com.google.protobuf.Descriptors.FileDescriptor[] {
           io.envoyproxy.pgv.validate.Validate.getDescriptor(),
           com.google.rpc.StatusProto.getDescriptor(),
+          com.google.protobuf.VTProto.getDescriptor(),
         });
     internal_static_payload_v1_Search_descriptor =
       getDescriptor().getMessageTypes().get(0);
@@ -717,8 +755,20 @@ public static void registerAllExtensions(
       com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
         internal_static_payload_v1_Remove_MultiRequest_descriptor,
         new java.lang.String[] { "Requests", });
-    internal_static_payload_v1_Remove_Config_descriptor =
+    internal_static_payload_v1_Remove_TimestampRequest_descriptor =
       internal_static_payload_v1_Remove_descriptor.getNestedTypes().get(2);
+    internal_static_payload_v1_Remove_TimestampRequest_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_payload_v1_Remove_TimestampRequest_descriptor,
+        new java.lang.String[] { "Timestamps", });
+    internal_static_payload_v1_Remove_Timestamp_descriptor =
+      internal_static_payload_v1_Remove_descriptor.getNestedTypes().get(3);
+    internal_static_payload_v1_Remove_Timestamp_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_payload_v1_Remove_Timestamp_descriptor,
+        new java.lang.String[] { "Timestamp", "Operator", });
+    internal_static_payload_v1_Remove_Config_descriptor =
+      internal_static_payload_v1_Remove_descriptor.getNestedTypes().get(4);
     internal_static_payload_v1_Remove_Config_fieldAccessorTable = new
       com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
         internal_static_payload_v1_Remove_Config_descriptor,
@@ -764,7 +814,7 @@ public static void registerAllExtensions(
     internal_static_payload_v1_Object_Vector_fieldAccessorTable = new
       com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
         internal_static_payload_v1_Object_Vector_descriptor,
-        new java.lang.String[] { "Id", "Vector", });
+        new java.lang.String[] { "Id", "Vector", "Timestamp", });
     internal_static_payload_v1_Object_Vectors_descriptor =
       internal_static_payload_v1_Object_descriptor.getNestedTypes().get(6);
     internal_static_payload_v1_Object_Vectors_fieldAccessorTable = new
@@ -813,6 +863,24 @@ public static void registerAllExtensions(
       com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
         internal_static_payload_v1_Object_Locations_descriptor,
         new java.lang.String[] { "Locations", });
+    internal_static_payload_v1_Object_List_descriptor =
+      internal_static_payload_v1_Object_descriptor.getNestedTypes().get(14);
+    internal_static_payload_v1_Object_List_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_payload_v1_Object_List_descriptor,
+        new java.lang.String[] { });
+    internal_static_payload_v1_Object_List_Request_descriptor =
+      internal_static_payload_v1_Object_List_descriptor.getNestedTypes().get(0);
+    internal_static_payload_v1_Object_List_Request_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_payload_v1_Object_List_Request_descriptor,
+        new java.lang.String[] { });
+    internal_static_payload_v1_Object_List_Response_descriptor =
+      internal_static_payload_v1_Object_List_descriptor.getNestedTypes().get(1);
+    internal_static_payload_v1_Object_List_Response_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_payload_v1_Object_List_Response_descriptor,
+        new java.lang.String[] { "Vector", "Status", "Payload", });
     internal_static_payload_v1_Control_descriptor =
       getDescriptor().getMessageTypes().get(7);
     internal_static_payload_v1_Control_fieldAccessorTable = new
@@ -924,10 +992,12 @@ public static void registerAllExtensions(
     com.google.protobuf.ExtensionRegistry registry =
         com.google.protobuf.ExtensionRegistry.newInstance();
     registry.add(io.envoyproxy.pgv.validate.Validate.rules);
+    registry.add(com.google.protobuf.VTProto.mempool);
     com.google.protobuf.Descriptors.FileDescriptor
         .internalUpdateFileDescriptor(descriptor, registry);
     io.envoyproxy.pgv.validate.Validate.getDescriptor();
     com.google.rpc.StatusProto.getDescriptor();
+    com.google.protobuf.VTProto.getDescriptor();
   }
 
   // @@protoc_insertion_point(outer_class_scope)
diff --git a/src/main/java/org/vdaas/vald/api/v1/rpc/BadRequest.java b/src/main/java/org/vdaas/vald/api/v1/rpc/BadRequest.java
new file mode 100644
index 00000000..1cf8358a
--- /dev/null
+++ b/src/main/java/org/vdaas/vald/api/v1/rpc/BadRequest.java
@@ -0,0 +1,1965 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: apis/proto/v1/rpc/error_details.proto
+
+package org.vdaas.vald.api.v1.rpc;
+
+/**
+ * 
+ * Describes violations in a client request. This error type focuses on the
+ * syntactic aspects of the request.
+ * 
+ * + * Protobuf type {@code rpc.v1.BadRequest} + */ +public final class BadRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:rpc.v1.BadRequest) + BadRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use BadRequest.newBuilder() to construct. + private BadRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private BadRequest() { + fieldViolations_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new BadRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.vdaas.vald.api.v1.rpc.ErrorDetailsProto.internal_static_rpc_v1_BadRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.vdaas.vald.api.v1.rpc.ErrorDetailsProto.internal_static_rpc_v1_BadRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.vdaas.vald.api.v1.rpc.BadRequest.class, org.vdaas.vald.api.v1.rpc.BadRequest.Builder.class); + } + + public interface FieldViolationOrBuilder extends + // @@protoc_insertion_point(interface_extends:rpc.v1.BadRequest.FieldViolation) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * A path that leads to a field in the request body. The value will be a
+     * sequence of dot-separated identifiers that identify a protocol buffer
+     * field.
+     *
+     * Consider the following:
+     *
+     *     message CreateContactRequest {
+     *       message EmailAddress {
+     *         enum Type {
+     *           TYPE_UNSPECIFIED = 0;
+     *           HOME = 1;
+     *           WORK = 2;
+     *         }
+     *
+     *         optional string email = 1;
+     *         repeated EmailType type = 2;
+     *       }
+     *
+     *       string full_name = 1;
+     *       repeated EmailAddress email_addresses = 2;
+     *     }
+     *
+     * In this example, in proto `field` could take one of the following values:
+     *
+     * * `full_name` for a violation in the `full_name` value
+     * * `email_addresses[1].email` for a violation in the `email` field of the
+     *   first `email_addresses` message
+     * * `email_addresses[3].type[2]` for a violation in the second `type`
+     *   value in the third `email_addresses` message.
+     *
+     * In JSON, the same values are represented as:
+     *
+     * * `fullName` for a violation in the `fullName` value
+     * * `emailAddresses[1].email` for a violation in the `email` field of the
+     *   first `emailAddresses` message
+     * * `emailAddresses[3].type[2]` for a violation in the second `type`
+     *   value in the third `emailAddresses` message.
+     * 
+ * + * string field = 1; + * @return The field. + */ + java.lang.String getField(); + /** + *
+     * A path that leads to a field in the request body. The value will be a
+     * sequence of dot-separated identifiers that identify a protocol buffer
+     * field.
+     *
+     * Consider the following:
+     *
+     *     message CreateContactRequest {
+     *       message EmailAddress {
+     *         enum Type {
+     *           TYPE_UNSPECIFIED = 0;
+     *           HOME = 1;
+     *           WORK = 2;
+     *         }
+     *
+     *         optional string email = 1;
+     *         repeated EmailType type = 2;
+     *       }
+     *
+     *       string full_name = 1;
+     *       repeated EmailAddress email_addresses = 2;
+     *     }
+     *
+     * In this example, in proto `field` could take one of the following values:
+     *
+     * * `full_name` for a violation in the `full_name` value
+     * * `email_addresses[1].email` for a violation in the `email` field of the
+     *   first `email_addresses` message
+     * * `email_addresses[3].type[2]` for a violation in the second `type`
+     *   value in the third `email_addresses` message.
+     *
+     * In JSON, the same values are represented as:
+     *
+     * * `fullName` for a violation in the `fullName` value
+     * * `emailAddresses[1].email` for a violation in the `email` field of the
+     *   first `emailAddresses` message
+     * * `emailAddresses[3].type[2]` for a violation in the second `type`
+     *   value in the third `emailAddresses` message.
+     * 
+ * + * string field = 1; + * @return The bytes for field. + */ + com.google.protobuf.ByteString + getFieldBytes(); + + /** + *
+     * A description of why the request element is bad.
+     * 
+ * + * string description = 2; + * @return The description. + */ + java.lang.String getDescription(); + /** + *
+     * A description of why the request element is bad.
+     * 
+ * + * string description = 2; + * @return The bytes for description. + */ + com.google.protobuf.ByteString + getDescriptionBytes(); + } + /** + *
+   * A message type used to describe a single bad request field.
+   * 
+ * + * Protobuf type {@code rpc.v1.BadRequest.FieldViolation} + */ + public static final class FieldViolation extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:rpc.v1.BadRequest.FieldViolation) + FieldViolationOrBuilder { + private static final long serialVersionUID = 0L; + // Use FieldViolation.newBuilder() to construct. + private FieldViolation(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private FieldViolation() { + field_ = ""; + description_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new FieldViolation(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.vdaas.vald.api.v1.rpc.ErrorDetailsProto.internal_static_rpc_v1_BadRequest_FieldViolation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.vdaas.vald.api.v1.rpc.ErrorDetailsProto.internal_static_rpc_v1_BadRequest_FieldViolation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.vdaas.vald.api.v1.rpc.BadRequest.FieldViolation.class, org.vdaas.vald.api.v1.rpc.BadRequest.FieldViolation.Builder.class); + } + + public static final int FIELD_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object field_ = ""; + /** + *
+     * A path that leads to a field in the request body. The value will be a
+     * sequence of dot-separated identifiers that identify a protocol buffer
+     * field.
+     *
+     * Consider the following:
+     *
+     *     message CreateContactRequest {
+     *       message EmailAddress {
+     *         enum Type {
+     *           TYPE_UNSPECIFIED = 0;
+     *           HOME = 1;
+     *           WORK = 2;
+     *         }
+     *
+     *         optional string email = 1;
+     *         repeated EmailType type = 2;
+     *       }
+     *
+     *       string full_name = 1;
+     *       repeated EmailAddress email_addresses = 2;
+     *     }
+     *
+     * In this example, in proto `field` could take one of the following values:
+     *
+     * * `full_name` for a violation in the `full_name` value
+     * * `email_addresses[1].email` for a violation in the `email` field of the
+     *   first `email_addresses` message
+     * * `email_addresses[3].type[2]` for a violation in the second `type`
+     *   value in the third `email_addresses` message.
+     *
+     * In JSON, the same values are represented as:
+     *
+     * * `fullName` for a violation in the `fullName` value
+     * * `emailAddresses[1].email` for a violation in the `email` field of the
+     *   first `emailAddresses` message
+     * * `emailAddresses[3].type[2]` for a violation in the second `type`
+     *   value in the third `emailAddresses` message.
+     * 
+ * + * string field = 1; + * @return The field. + */ + @java.lang.Override + 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; + } + } + /** + *
+     * A path that leads to a field in the request body. The value will be a
+     * sequence of dot-separated identifiers that identify a protocol buffer
+     * field.
+     *
+     * Consider the following:
+     *
+     *     message CreateContactRequest {
+     *       message EmailAddress {
+     *         enum Type {
+     *           TYPE_UNSPECIFIED = 0;
+     *           HOME = 1;
+     *           WORK = 2;
+     *         }
+     *
+     *         optional string email = 1;
+     *         repeated EmailType type = 2;
+     *       }
+     *
+     *       string full_name = 1;
+     *       repeated EmailAddress email_addresses = 2;
+     *     }
+     *
+     * In this example, in proto `field` could take one of the following values:
+     *
+     * * `full_name` for a violation in the `full_name` value
+     * * `email_addresses[1].email` for a violation in the `email` field of the
+     *   first `email_addresses` message
+     * * `email_addresses[3].type[2]` for a violation in the second `type`
+     *   value in the third `email_addresses` message.
+     *
+     * In JSON, the same values are represented as:
+     *
+     * * `fullName` for a violation in the `fullName` value
+     * * `emailAddresses[1].email` for a violation in the `email` field of the
+     *   first `emailAddresses` message
+     * * `emailAddresses[3].type[2]` for a violation in the second `type`
+     *   value in the third `emailAddresses` message.
+     * 
+ * + * string field = 1; + * @return The bytes for field. + */ + @java.lang.Override + 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 DESCRIPTION_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + /** + *
+     * A description of why the request element is bad.
+     * 
+ * + * string description = 2; + * @return The description. + */ + @java.lang.Override + 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; + } + } + /** + *
+     * A description of why the request element is bad.
+     * 
+ * + * string description = 2; + * @return The bytes for description. + */ + @java.lang.Override + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(field_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, field_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(field_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, field_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.vdaas.vald.api.v1.rpc.BadRequest.FieldViolation)) { + return super.equals(obj); + } + org.vdaas.vald.api.v1.rpc.BadRequest.FieldViolation other = (org.vdaas.vald.api.v1.rpc.BadRequest.FieldViolation) obj; + + if (!getField() + .equals(other.getField())) return false; + if (!getDescription() + .equals(other.getDescription())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + FIELD_FIELD_NUMBER; + hash = (53 * hash) + getField().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.vdaas.vald.api.v1.rpc.BadRequest.FieldViolation parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.vdaas.vald.api.v1.rpc.BadRequest.FieldViolation parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.vdaas.vald.api.v1.rpc.BadRequest.FieldViolation parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.vdaas.vald.api.v1.rpc.BadRequest.FieldViolation parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.vdaas.vald.api.v1.rpc.BadRequest.FieldViolation parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.vdaas.vald.api.v1.rpc.BadRequest.FieldViolation parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.vdaas.vald.api.v1.rpc.BadRequest.FieldViolation parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.vdaas.vald.api.v1.rpc.BadRequest.FieldViolation parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static org.vdaas.vald.api.v1.rpc.BadRequest.FieldViolation parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static org.vdaas.vald.api.v1.rpc.BadRequest.FieldViolation parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.vdaas.vald.api.v1.rpc.BadRequest.FieldViolation parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.vdaas.vald.api.v1.rpc.BadRequest.FieldViolation parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.vdaas.vald.api.v1.rpc.BadRequest.FieldViolation prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new 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 message type used to describe a single bad request field.
+     * 
+ * + * Protobuf type {@code rpc.v1.BadRequest.FieldViolation} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:rpc.v1.BadRequest.FieldViolation) + org.vdaas.vald.api.v1.rpc.BadRequest.FieldViolationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.vdaas.vald.api.v1.rpc.ErrorDetailsProto.internal_static_rpc_v1_BadRequest_FieldViolation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.vdaas.vald.api.v1.rpc.ErrorDetailsProto.internal_static_rpc_v1_BadRequest_FieldViolation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.vdaas.vald.api.v1.rpc.BadRequest.FieldViolation.class, org.vdaas.vald.api.v1.rpc.BadRequest.FieldViolation.Builder.class); + } + + // Construct using org.vdaas.vald.api.v1.rpc.BadRequest.FieldViolation.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + field_ = ""; + description_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.vdaas.vald.api.v1.rpc.ErrorDetailsProto.internal_static_rpc_v1_BadRequest_FieldViolation_descriptor; + } + + @java.lang.Override + public org.vdaas.vald.api.v1.rpc.BadRequest.FieldViolation getDefaultInstanceForType() { + return org.vdaas.vald.api.v1.rpc.BadRequest.FieldViolation.getDefaultInstance(); + } + + @java.lang.Override + public org.vdaas.vald.api.v1.rpc.BadRequest.FieldViolation build() { + org.vdaas.vald.api.v1.rpc.BadRequest.FieldViolation result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.vdaas.vald.api.v1.rpc.BadRequest.FieldViolation buildPartial() { + org.vdaas.vald.api.v1.rpc.BadRequest.FieldViolation result = new org.vdaas.vald.api.v1.rpc.BadRequest.FieldViolation(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(org.vdaas.vald.api.v1.rpc.BadRequest.FieldViolation result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.field_ = field_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.description_ = description_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.vdaas.vald.api.v1.rpc.BadRequest.FieldViolation) { + return mergeFrom((org.vdaas.vald.api.v1.rpc.BadRequest.FieldViolation)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.vdaas.vald.api.v1.rpc.BadRequest.FieldViolation other) { + if (other == org.vdaas.vald.api.v1.rpc.BadRequest.FieldViolation.getDefaultInstance()) return this; + if (!other.getField().isEmpty()) { + field_ = other.field_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + field_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object field_ = ""; + /** + *
+       * A path that leads to a field in the request body. The value will be a
+       * sequence of dot-separated identifiers that identify a protocol buffer
+       * field.
+       *
+       * Consider the following:
+       *
+       *     message CreateContactRequest {
+       *       message EmailAddress {
+       *         enum Type {
+       *           TYPE_UNSPECIFIED = 0;
+       *           HOME = 1;
+       *           WORK = 2;
+       *         }
+       *
+       *         optional string email = 1;
+       *         repeated EmailType type = 2;
+       *       }
+       *
+       *       string full_name = 1;
+       *       repeated EmailAddress email_addresses = 2;
+       *     }
+       *
+       * In this example, in proto `field` could take one of the following values:
+       *
+       * * `full_name` for a violation in the `full_name` value
+       * * `email_addresses[1].email` for a violation in the `email` field of the
+       *   first `email_addresses` message
+       * * `email_addresses[3].type[2]` for a violation in the second `type`
+       *   value in the third `email_addresses` message.
+       *
+       * In JSON, the same values are represented as:
+       *
+       * * `fullName` for a violation in the `fullName` value
+       * * `emailAddresses[1].email` for a violation in the `email` field of the
+       *   first `emailAddresses` message
+       * * `emailAddresses[3].type[2]` for a violation in the second `type`
+       *   value in the third `emailAddresses` message.
+       * 
+ * + * string field = 1; + * @return The field. + */ + 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; + } + } + /** + *
+       * A path that leads to a field in the request body. The value will be a
+       * sequence of dot-separated identifiers that identify a protocol buffer
+       * field.
+       *
+       * Consider the following:
+       *
+       *     message CreateContactRequest {
+       *       message EmailAddress {
+       *         enum Type {
+       *           TYPE_UNSPECIFIED = 0;
+       *           HOME = 1;
+       *           WORK = 2;
+       *         }
+       *
+       *         optional string email = 1;
+       *         repeated EmailType type = 2;
+       *       }
+       *
+       *       string full_name = 1;
+       *       repeated EmailAddress email_addresses = 2;
+       *     }
+       *
+       * In this example, in proto `field` could take one of the following values:
+       *
+       * * `full_name` for a violation in the `full_name` value
+       * * `email_addresses[1].email` for a violation in the `email` field of the
+       *   first `email_addresses` message
+       * * `email_addresses[3].type[2]` for a violation in the second `type`
+       *   value in the third `email_addresses` message.
+       *
+       * In JSON, the same values are represented as:
+       *
+       * * `fullName` for a violation in the `fullName` value
+       * * `emailAddresses[1].email` for a violation in the `email` field of the
+       *   first `emailAddresses` message
+       * * `emailAddresses[3].type[2]` for a violation in the second `type`
+       *   value in the third `emailAddresses` message.
+       * 
+ * + * string field = 1; + * @return The bytes for field. + */ + 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; + } + } + /** + *
+       * A path that leads to a field in the request body. The value will be a
+       * sequence of dot-separated identifiers that identify a protocol buffer
+       * field.
+       *
+       * Consider the following:
+       *
+       *     message CreateContactRequest {
+       *       message EmailAddress {
+       *         enum Type {
+       *           TYPE_UNSPECIFIED = 0;
+       *           HOME = 1;
+       *           WORK = 2;
+       *         }
+       *
+       *         optional string email = 1;
+       *         repeated EmailType type = 2;
+       *       }
+       *
+       *       string full_name = 1;
+       *       repeated EmailAddress email_addresses = 2;
+       *     }
+       *
+       * In this example, in proto `field` could take one of the following values:
+       *
+       * * `full_name` for a violation in the `full_name` value
+       * * `email_addresses[1].email` for a violation in the `email` field of the
+       *   first `email_addresses` message
+       * * `email_addresses[3].type[2]` for a violation in the second `type`
+       *   value in the third `email_addresses` message.
+       *
+       * In JSON, the same values are represented as:
+       *
+       * * `fullName` for a violation in the `fullName` value
+       * * `emailAddresses[1].email` for a violation in the `email` field of the
+       *   first `emailAddresses` message
+       * * `emailAddresses[3].type[2]` for a violation in the second `type`
+       *   value in the third `emailAddresses` message.
+       * 
+ * + * string field = 1; + * @param value The field to set. + * @return This builder for chaining. + */ + public Builder setField( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + field_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * A path that leads to a field in the request body. The value will be a
+       * sequence of dot-separated identifiers that identify a protocol buffer
+       * field.
+       *
+       * Consider the following:
+       *
+       *     message CreateContactRequest {
+       *       message EmailAddress {
+       *         enum Type {
+       *           TYPE_UNSPECIFIED = 0;
+       *           HOME = 1;
+       *           WORK = 2;
+       *         }
+       *
+       *         optional string email = 1;
+       *         repeated EmailType type = 2;
+       *       }
+       *
+       *       string full_name = 1;
+       *       repeated EmailAddress email_addresses = 2;
+       *     }
+       *
+       * In this example, in proto `field` could take one of the following values:
+       *
+       * * `full_name` for a violation in the `full_name` value
+       * * `email_addresses[1].email` for a violation in the `email` field of the
+       *   first `email_addresses` message
+       * * `email_addresses[3].type[2]` for a violation in the second `type`
+       *   value in the third `email_addresses` message.
+       *
+       * In JSON, the same values are represented as:
+       *
+       * * `fullName` for a violation in the `fullName` value
+       * * `emailAddresses[1].email` for a violation in the `email` field of the
+       *   first `emailAddresses` message
+       * * `emailAddresses[3].type[2]` for a violation in the second `type`
+       *   value in the third `emailAddresses` message.
+       * 
+ * + * string field = 1; + * @return This builder for chaining. + */ + public Builder clearField() { + field_ = getDefaultInstance().getField(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * A path that leads to a field in the request body. The value will be a
+       * sequence of dot-separated identifiers that identify a protocol buffer
+       * field.
+       *
+       * Consider the following:
+       *
+       *     message CreateContactRequest {
+       *       message EmailAddress {
+       *         enum Type {
+       *           TYPE_UNSPECIFIED = 0;
+       *           HOME = 1;
+       *           WORK = 2;
+       *         }
+       *
+       *         optional string email = 1;
+       *         repeated EmailType type = 2;
+       *       }
+       *
+       *       string full_name = 1;
+       *       repeated EmailAddress email_addresses = 2;
+       *     }
+       *
+       * In this example, in proto `field` could take one of the following values:
+       *
+       * * `full_name` for a violation in the `full_name` value
+       * * `email_addresses[1].email` for a violation in the `email` field of the
+       *   first `email_addresses` message
+       * * `email_addresses[3].type[2]` for a violation in the second `type`
+       *   value in the third `email_addresses` message.
+       *
+       * In JSON, the same values are represented as:
+       *
+       * * `fullName` for a violation in the `fullName` value
+       * * `emailAddresses[1].email` for a violation in the `email` field of the
+       *   first `emailAddresses` message
+       * * `emailAddresses[3].type[2]` for a violation in the second `type`
+       *   value in the third `emailAddresses` message.
+       * 
+ * + * string field = 1; + * @param value The bytes for field to set. + * @return This builder for chaining. + */ + public Builder setFieldBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + field_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + /** + *
+       * A description of why the request element is bad.
+       * 
+ * + * string description = 2; + * @return The description. + */ + 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; + } + } + /** + *
+       * A description of why the request element is bad.
+       * 
+ * + * string description = 2; + * @return The bytes for description. + */ + 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; + } + } + /** + *
+       * A description of why the request element is bad.
+       * 
+ * + * string description = 2; + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + description_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * A description of why the request element is bad.
+       * 
+ * + * string description = 2; + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+       * A description of why the request element is bad.
+       * 
+ * + * string description = 2; + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + description_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:rpc.v1.BadRequest.FieldViolation) + } + + // @@protoc_insertion_point(class_scope:rpc.v1.BadRequest.FieldViolation) + private static final org.vdaas.vald.api.v1.rpc.BadRequest.FieldViolation DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.vdaas.vald.api.v1.rpc.BadRequest.FieldViolation(); + } + + public static org.vdaas.vald.api.v1.rpc.BadRequest.FieldViolation getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FieldViolation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public org.vdaas.vald.api.v1.rpc.BadRequest.FieldViolation getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public static final int FIELD_VIOLATIONS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private java.util.List fieldViolations_; + /** + *
+   * Describes all violations in a client request.
+   * 
+ * + * repeated .rpc.v1.BadRequest.FieldViolation field_violations = 1; + */ + @java.lang.Override + public java.util.List getFieldViolationsList() { + return fieldViolations_; + } + /** + *
+   * Describes all violations in a client request.
+   * 
+ * + * repeated .rpc.v1.BadRequest.FieldViolation field_violations = 1; + */ + @java.lang.Override + public java.util.List + getFieldViolationsOrBuilderList() { + return fieldViolations_; + } + /** + *
+   * Describes all violations in a client request.
+   * 
+ * + * repeated .rpc.v1.BadRequest.FieldViolation field_violations = 1; + */ + @java.lang.Override + public int getFieldViolationsCount() { + return fieldViolations_.size(); + } + /** + *
+   * Describes all violations in a client request.
+   * 
+ * + * repeated .rpc.v1.BadRequest.FieldViolation field_violations = 1; + */ + @java.lang.Override + public org.vdaas.vald.api.v1.rpc.BadRequest.FieldViolation getFieldViolations(int index) { + return fieldViolations_.get(index); + } + /** + *
+   * Describes all violations in a client request.
+   * 
+ * + * repeated .rpc.v1.BadRequest.FieldViolation field_violations = 1; + */ + @java.lang.Override + public org.vdaas.vald.api.v1.rpc.BadRequest.FieldViolationOrBuilder getFieldViolationsOrBuilder( + int index) { + return fieldViolations_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < fieldViolations_.size(); i++) { + output.writeMessage(1, fieldViolations_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < fieldViolations_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, fieldViolations_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.vdaas.vald.api.v1.rpc.BadRequest)) { + return super.equals(obj); + } + org.vdaas.vald.api.v1.rpc.BadRequest other = (org.vdaas.vald.api.v1.rpc.BadRequest) obj; + + if (!getFieldViolationsList() + .equals(other.getFieldViolationsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getFieldViolationsCount() > 0) { + hash = (37 * hash) + FIELD_VIOLATIONS_FIELD_NUMBER; + hash = (53 * hash) + getFieldViolationsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.vdaas.vald.api.v1.rpc.BadRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.vdaas.vald.api.v1.rpc.BadRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.vdaas.vald.api.v1.rpc.BadRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.vdaas.vald.api.v1.rpc.BadRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.vdaas.vald.api.v1.rpc.BadRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.vdaas.vald.api.v1.rpc.BadRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.vdaas.vald.api.v1.rpc.BadRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.vdaas.vald.api.v1.rpc.BadRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static org.vdaas.vald.api.v1.rpc.BadRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static org.vdaas.vald.api.v1.rpc.BadRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.vdaas.vald.api.v1.rpc.BadRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.vdaas.vald.api.v1.rpc.BadRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.vdaas.vald.api.v1.rpc.BadRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new 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 violations in a client request. This error type focuses on the
+   * syntactic aspects of the request.
+   * 
+ * + * Protobuf type {@code rpc.v1.BadRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:rpc.v1.BadRequest) + org.vdaas.vald.api.v1.rpc.BadRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.vdaas.vald.api.v1.rpc.ErrorDetailsProto.internal_static_rpc_v1_BadRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.vdaas.vald.api.v1.rpc.ErrorDetailsProto.internal_static_rpc_v1_BadRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.vdaas.vald.api.v1.rpc.BadRequest.class, org.vdaas.vald.api.v1.rpc.BadRequest.Builder.class); + } + + // Construct using org.vdaas.vald.api.v1.rpc.BadRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (fieldViolationsBuilder_ == null) { + fieldViolations_ = java.util.Collections.emptyList(); + } else { + fieldViolations_ = null; + fieldViolationsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.vdaas.vald.api.v1.rpc.ErrorDetailsProto.internal_static_rpc_v1_BadRequest_descriptor; + } + + @java.lang.Override + public org.vdaas.vald.api.v1.rpc.BadRequest getDefaultInstanceForType() { + return org.vdaas.vald.api.v1.rpc.BadRequest.getDefaultInstance(); + } + + @java.lang.Override + public org.vdaas.vald.api.v1.rpc.BadRequest build() { + org.vdaas.vald.api.v1.rpc.BadRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.vdaas.vald.api.v1.rpc.BadRequest buildPartial() { + org.vdaas.vald.api.v1.rpc.BadRequest result = new org.vdaas.vald.api.v1.rpc.BadRequest(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(org.vdaas.vald.api.v1.rpc.BadRequest result) { + if (fieldViolationsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + fieldViolations_ = java.util.Collections.unmodifiableList(fieldViolations_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.fieldViolations_ = fieldViolations_; + } else { + result.fieldViolations_ = fieldViolationsBuilder_.build(); + } + } + + private void buildPartial0(org.vdaas.vald.api.v1.rpc.BadRequest result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.vdaas.vald.api.v1.rpc.BadRequest) { + return mergeFrom((org.vdaas.vald.api.v1.rpc.BadRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.vdaas.vald.api.v1.rpc.BadRequest other) { + if (other == org.vdaas.vald.api.v1.rpc.BadRequest.getDefaultInstance()) return this; + if (fieldViolationsBuilder_ == null) { + if (!other.fieldViolations_.isEmpty()) { + if (fieldViolations_.isEmpty()) { + fieldViolations_ = other.fieldViolations_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureFieldViolationsIsMutable(); + fieldViolations_.addAll(other.fieldViolations_); + } + onChanged(); + } + } else { + if (!other.fieldViolations_.isEmpty()) { + if (fieldViolationsBuilder_.isEmpty()) { + fieldViolationsBuilder_.dispose(); + fieldViolationsBuilder_ = null; + fieldViolations_ = other.fieldViolations_; + bitField0_ = (bitField0_ & ~0x00000001); + fieldViolationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getFieldViolationsFieldBuilder() : null; + } else { + fieldViolationsBuilder_.addAllMessages(other.fieldViolations_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + org.vdaas.vald.api.v1.rpc.BadRequest.FieldViolation m = + input.readMessage( + org.vdaas.vald.api.v1.rpc.BadRequest.FieldViolation.parser(), + extensionRegistry); + if (fieldViolationsBuilder_ == null) { + ensureFieldViolationsIsMutable(); + fieldViolations_.add(m); + } else { + fieldViolationsBuilder_.addMessage(m); + } + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.util.List fieldViolations_ = + java.util.Collections.emptyList(); + private void ensureFieldViolationsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + fieldViolations_ = new java.util.ArrayList(fieldViolations_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + org.vdaas.vald.api.v1.rpc.BadRequest.FieldViolation, org.vdaas.vald.api.v1.rpc.BadRequest.FieldViolation.Builder, org.vdaas.vald.api.v1.rpc.BadRequest.FieldViolationOrBuilder> fieldViolationsBuilder_; + + /** + *
+     * Describes all violations in a client request.
+     * 
+ * + * repeated .rpc.v1.BadRequest.FieldViolation field_violations = 1; + */ + public java.util.List getFieldViolationsList() { + if (fieldViolationsBuilder_ == null) { + return java.util.Collections.unmodifiableList(fieldViolations_); + } else { + return fieldViolationsBuilder_.getMessageList(); + } + } + /** + *
+     * Describes all violations in a client request.
+     * 
+ * + * repeated .rpc.v1.BadRequest.FieldViolation field_violations = 1; + */ + public int getFieldViolationsCount() { + if (fieldViolationsBuilder_ == null) { + return fieldViolations_.size(); + } else { + return fieldViolationsBuilder_.getCount(); + } + } + /** + *
+     * Describes all violations in a client request.
+     * 
+ * + * repeated .rpc.v1.BadRequest.FieldViolation field_violations = 1; + */ + public org.vdaas.vald.api.v1.rpc.BadRequest.FieldViolation getFieldViolations(int index) { + if (fieldViolationsBuilder_ == null) { + return fieldViolations_.get(index); + } else { + return fieldViolationsBuilder_.getMessage(index); + } + } + /** + *
+     * Describes all violations in a client request.
+     * 
+ * + * repeated .rpc.v1.BadRequest.FieldViolation field_violations = 1; + */ + public Builder setFieldViolations( + int index, org.vdaas.vald.api.v1.rpc.BadRequest.FieldViolation value) { + if (fieldViolationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFieldViolationsIsMutable(); + fieldViolations_.set(index, value); + onChanged(); + } else { + fieldViolationsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * Describes all violations in a client request.
+     * 
+ * + * repeated .rpc.v1.BadRequest.FieldViolation field_violations = 1; + */ + public Builder setFieldViolations( + int index, org.vdaas.vald.api.v1.rpc.BadRequest.FieldViolation.Builder builderForValue) { + if (fieldViolationsBuilder_ == null) { + ensureFieldViolationsIsMutable(); + fieldViolations_.set(index, builderForValue.build()); + onChanged(); + } else { + fieldViolationsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Describes all violations in a client request.
+     * 
+ * + * repeated .rpc.v1.BadRequest.FieldViolation field_violations = 1; + */ + public Builder addFieldViolations(org.vdaas.vald.api.v1.rpc.BadRequest.FieldViolation value) { + if (fieldViolationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFieldViolationsIsMutable(); + fieldViolations_.add(value); + onChanged(); + } else { + fieldViolationsBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * Describes all violations in a client request.
+     * 
+ * + * repeated .rpc.v1.BadRequest.FieldViolation field_violations = 1; + */ + public Builder addFieldViolations( + int index, org.vdaas.vald.api.v1.rpc.BadRequest.FieldViolation value) { + if (fieldViolationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFieldViolationsIsMutable(); + fieldViolations_.add(index, value); + onChanged(); + } else { + fieldViolationsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * Describes all violations in a client request.
+     * 
+ * + * repeated .rpc.v1.BadRequest.FieldViolation field_violations = 1; + */ + public Builder addFieldViolations( + org.vdaas.vald.api.v1.rpc.BadRequest.FieldViolation.Builder builderForValue) { + if (fieldViolationsBuilder_ == null) { + ensureFieldViolationsIsMutable(); + fieldViolations_.add(builderForValue.build()); + onChanged(); + } else { + fieldViolationsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * Describes all violations in a client request.
+     * 
+ * + * repeated .rpc.v1.BadRequest.FieldViolation field_violations = 1; + */ + public Builder addFieldViolations( + int index, org.vdaas.vald.api.v1.rpc.BadRequest.FieldViolation.Builder builderForValue) { + if (fieldViolationsBuilder_ == null) { + ensureFieldViolationsIsMutable(); + fieldViolations_.add(index, builderForValue.build()); + onChanged(); + } else { + fieldViolationsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Describes all violations in a client request.
+     * 
+ * + * repeated .rpc.v1.BadRequest.FieldViolation field_violations = 1; + */ + public Builder addAllFieldViolations( + java.lang.Iterable values) { + if (fieldViolationsBuilder_ == null) { + ensureFieldViolationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, fieldViolations_); + onChanged(); + } else { + fieldViolationsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * Describes all violations in a client request.
+     * 
+ * + * repeated .rpc.v1.BadRequest.FieldViolation field_violations = 1; + */ + public Builder clearFieldViolations() { + if (fieldViolationsBuilder_ == null) { + fieldViolations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + fieldViolationsBuilder_.clear(); + } + return this; + } + /** + *
+     * Describes all violations in a client request.
+     * 
+ * + * repeated .rpc.v1.BadRequest.FieldViolation field_violations = 1; + */ + public Builder removeFieldViolations(int index) { + if (fieldViolationsBuilder_ == null) { + ensureFieldViolationsIsMutable(); + fieldViolations_.remove(index); + onChanged(); + } else { + fieldViolationsBuilder_.remove(index); + } + return this; + } + /** + *
+     * Describes all violations in a client request.
+     * 
+ * + * repeated .rpc.v1.BadRequest.FieldViolation field_violations = 1; + */ + public org.vdaas.vald.api.v1.rpc.BadRequest.FieldViolation.Builder getFieldViolationsBuilder( + int index) { + return getFieldViolationsFieldBuilder().getBuilder(index); + } + /** + *
+     * Describes all violations in a client request.
+     * 
+ * + * repeated .rpc.v1.BadRequest.FieldViolation field_violations = 1; + */ + public org.vdaas.vald.api.v1.rpc.BadRequest.FieldViolationOrBuilder getFieldViolationsOrBuilder( + int index) { + if (fieldViolationsBuilder_ == null) { + return fieldViolations_.get(index); } else { + return fieldViolationsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * Describes all violations in a client request.
+     * 
+ * + * repeated .rpc.v1.BadRequest.FieldViolation field_violations = 1; + */ + public java.util.List + getFieldViolationsOrBuilderList() { + if (fieldViolationsBuilder_ != null) { + return fieldViolationsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(fieldViolations_); + } + } + /** + *
+     * Describes all violations in a client request.
+     * 
+ * + * repeated .rpc.v1.BadRequest.FieldViolation field_violations = 1; + */ + public org.vdaas.vald.api.v1.rpc.BadRequest.FieldViolation.Builder addFieldViolationsBuilder() { + return getFieldViolationsFieldBuilder().addBuilder( + org.vdaas.vald.api.v1.rpc.BadRequest.FieldViolation.getDefaultInstance()); + } + /** + *
+     * Describes all violations in a client request.
+     * 
+ * + * repeated .rpc.v1.BadRequest.FieldViolation field_violations = 1; + */ + public org.vdaas.vald.api.v1.rpc.BadRequest.FieldViolation.Builder addFieldViolationsBuilder( + int index) { + return getFieldViolationsFieldBuilder().addBuilder( + index, org.vdaas.vald.api.v1.rpc.BadRequest.FieldViolation.getDefaultInstance()); + } + /** + *
+     * Describes all violations in a client request.
+     * 
+ * + * repeated .rpc.v1.BadRequest.FieldViolation field_violations = 1; + */ + public java.util.List + getFieldViolationsBuilderList() { + return getFieldViolationsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + org.vdaas.vald.api.v1.rpc.BadRequest.FieldViolation, org.vdaas.vald.api.v1.rpc.BadRequest.FieldViolation.Builder, org.vdaas.vald.api.v1.rpc.BadRequest.FieldViolationOrBuilder> + getFieldViolationsFieldBuilder() { + if (fieldViolationsBuilder_ == null) { + fieldViolationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + org.vdaas.vald.api.v1.rpc.BadRequest.FieldViolation, org.vdaas.vald.api.v1.rpc.BadRequest.FieldViolation.Builder, org.vdaas.vald.api.v1.rpc.BadRequest.FieldViolationOrBuilder>( + fieldViolations_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + fieldViolations_ = null; + } + return fieldViolationsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:rpc.v1.BadRequest) + } + + // @@protoc_insertion_point(class_scope:rpc.v1.BadRequest) + private static final org.vdaas.vald.api.v1.rpc.BadRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.vdaas.vald.api.v1.rpc.BadRequest(); + } + + public static org.vdaas.vald.api.v1.rpc.BadRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BadRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public org.vdaas.vald.api.v1.rpc.BadRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/src/main/java/org/vdaas/vald/api/v1/rpc/BadRequestOrBuilder.java b/src/main/java/org/vdaas/vald/api/v1/rpc/BadRequestOrBuilder.java new file mode 100644 index 00000000..92cfacc5 --- /dev/null +++ b/src/main/java/org/vdaas/vald/api/v1/rpc/BadRequestOrBuilder.java @@ -0,0 +1,53 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: apis/proto/v1/rpc/error_details.proto + +package org.vdaas.vald.api.v1.rpc; + +public interface BadRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:rpc.v1.BadRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Describes all violations in a client request.
+   * 
+ * + * repeated .rpc.v1.BadRequest.FieldViolation field_violations = 1; + */ + java.util.List + getFieldViolationsList(); + /** + *
+   * Describes all violations in a client request.
+   * 
+ * + * repeated .rpc.v1.BadRequest.FieldViolation field_violations = 1; + */ + org.vdaas.vald.api.v1.rpc.BadRequest.FieldViolation getFieldViolations(int index); + /** + *
+   * Describes all violations in a client request.
+   * 
+ * + * repeated .rpc.v1.BadRequest.FieldViolation field_violations = 1; + */ + int getFieldViolationsCount(); + /** + *
+   * Describes all violations in a client request.
+   * 
+ * + * repeated .rpc.v1.BadRequest.FieldViolation field_violations = 1; + */ + java.util.List + getFieldViolationsOrBuilderList(); + /** + *
+   * Describes all violations in a client request.
+   * 
+ * + * repeated .rpc.v1.BadRequest.FieldViolation field_violations = 1; + */ + org.vdaas.vald.api.v1.rpc.BadRequest.FieldViolationOrBuilder getFieldViolationsOrBuilder( + int index); +} diff --git a/src/main/java/org/vdaas/vald/api/v1/rpc/DebugInfo.java b/src/main/java/org/vdaas/vald/api/v1/rpc/DebugInfo.java new file mode 100644 index 00000000..910143e5 --- /dev/null +++ b/src/main/java/org/vdaas/vald/api/v1/rpc/DebugInfo.java @@ -0,0 +1,818 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: apis/proto/v1/rpc/error_details.proto + +package org.vdaas.vald.api.v1.rpc; + +/** + *
+ * Describes additional debugging info.
+ * 
+ * + * Protobuf type {@code rpc.v1.DebugInfo} + */ +public final class DebugInfo extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:rpc.v1.DebugInfo) + DebugInfoOrBuilder { +private static final long serialVersionUID = 0L; + // Use DebugInfo.newBuilder() to construct. + private DebugInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DebugInfo() { + stackEntries_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + detail_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new DebugInfo(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.vdaas.vald.api.v1.rpc.ErrorDetailsProto.internal_static_rpc_v1_DebugInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.vdaas.vald.api.v1.rpc.ErrorDetailsProto.internal_static_rpc_v1_DebugInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.vdaas.vald.api.v1.rpc.DebugInfo.class, org.vdaas.vald.api.v1.rpc.DebugInfo.Builder.class); + } + + public static final int STACK_ENTRIES_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList stackEntries_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + *
+   * The stack trace entries indicating where the error occurred.
+   * 
+ * + * repeated string stack_entries = 1; + * @return A list containing the stackEntries. + */ + public com.google.protobuf.ProtocolStringList + getStackEntriesList() { + return stackEntries_; + } + /** + *
+   * The stack trace entries indicating where the error occurred.
+   * 
+ * + * repeated string stack_entries = 1; + * @return The count of stackEntries. + */ + public int getStackEntriesCount() { + return stackEntries_.size(); + } + /** + *
+   * The stack trace entries indicating where the error occurred.
+   * 
+ * + * repeated string stack_entries = 1; + * @param index The index of the element to return. + * @return The stackEntries at the given index. + */ + public java.lang.String getStackEntries(int index) { + return stackEntries_.get(index); + } + /** + *
+   * The stack trace entries indicating where the error occurred.
+   * 
+ * + * repeated string stack_entries = 1; + * @param index The index of the value to return. + * @return The bytes of the stackEntries at the given index. + */ + public com.google.protobuf.ByteString + getStackEntriesBytes(int index) { + return stackEntries_.getByteString(index); + } + + public static final int DETAIL_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object detail_ = ""; + /** + *
+   * Additional debugging information provided by the server.
+   * 
+ * + * string detail = 2; + * @return The detail. + */ + @java.lang.Override + public java.lang.String getDetail() { + java.lang.Object ref = detail_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + detail_ = s; + return s; + } + } + /** + *
+   * Additional debugging information provided by the server.
+   * 
+ * + * string detail = 2; + * @return The bytes for detail. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getDetailBytes() { + java.lang.Object ref = detail_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + detail_ = 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 < stackEntries_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, stackEntries_.getRaw(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(detail_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, detail_); + } + getUnknownFields().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 < stackEntries_.size(); i++) { + dataSize += computeStringSizeNoTag(stackEntries_.getRaw(i)); + } + size += dataSize; + size += 1 * getStackEntriesList().size(); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(detail_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, detail_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.vdaas.vald.api.v1.rpc.DebugInfo)) { + return super.equals(obj); + } + org.vdaas.vald.api.v1.rpc.DebugInfo other = (org.vdaas.vald.api.v1.rpc.DebugInfo) obj; + + if (!getStackEntriesList() + .equals(other.getStackEntriesList())) return false; + if (!getDetail() + .equals(other.getDetail())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getStackEntriesCount() > 0) { + hash = (37 * hash) + STACK_ENTRIES_FIELD_NUMBER; + hash = (53 * hash) + getStackEntriesList().hashCode(); + } + hash = (37 * hash) + DETAIL_FIELD_NUMBER; + hash = (53 * hash) + getDetail().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.vdaas.vald.api.v1.rpc.DebugInfo parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.vdaas.vald.api.v1.rpc.DebugInfo parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.vdaas.vald.api.v1.rpc.DebugInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.vdaas.vald.api.v1.rpc.DebugInfo parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.vdaas.vald.api.v1.rpc.DebugInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.vdaas.vald.api.v1.rpc.DebugInfo parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.vdaas.vald.api.v1.rpc.DebugInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.vdaas.vald.api.v1.rpc.DebugInfo parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static org.vdaas.vald.api.v1.rpc.DebugInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static org.vdaas.vald.api.v1.rpc.DebugInfo parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.vdaas.vald.api.v1.rpc.DebugInfo parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.vdaas.vald.api.v1.rpc.DebugInfo parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.vdaas.vald.api.v1.rpc.DebugInfo prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new 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 additional debugging info.
+   * 
+ * + * Protobuf type {@code rpc.v1.DebugInfo} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:rpc.v1.DebugInfo) + org.vdaas.vald.api.v1.rpc.DebugInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.vdaas.vald.api.v1.rpc.ErrorDetailsProto.internal_static_rpc_v1_DebugInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.vdaas.vald.api.v1.rpc.ErrorDetailsProto.internal_static_rpc_v1_DebugInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.vdaas.vald.api.v1.rpc.DebugInfo.class, org.vdaas.vald.api.v1.rpc.DebugInfo.Builder.class); + } + + // Construct using org.vdaas.vald.api.v1.rpc.DebugInfo.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + stackEntries_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + detail_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.vdaas.vald.api.v1.rpc.ErrorDetailsProto.internal_static_rpc_v1_DebugInfo_descriptor; + } + + @java.lang.Override + public org.vdaas.vald.api.v1.rpc.DebugInfo getDefaultInstanceForType() { + return org.vdaas.vald.api.v1.rpc.DebugInfo.getDefaultInstance(); + } + + @java.lang.Override + public org.vdaas.vald.api.v1.rpc.DebugInfo build() { + org.vdaas.vald.api.v1.rpc.DebugInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.vdaas.vald.api.v1.rpc.DebugInfo buildPartial() { + org.vdaas.vald.api.v1.rpc.DebugInfo result = new org.vdaas.vald.api.v1.rpc.DebugInfo(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(org.vdaas.vald.api.v1.rpc.DebugInfo result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + stackEntries_.makeImmutable(); + result.stackEntries_ = stackEntries_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.detail_ = detail_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.vdaas.vald.api.v1.rpc.DebugInfo) { + return mergeFrom((org.vdaas.vald.api.v1.rpc.DebugInfo)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.vdaas.vald.api.v1.rpc.DebugInfo other) { + if (other == org.vdaas.vald.api.v1.rpc.DebugInfo.getDefaultInstance()) return this; + if (!other.stackEntries_.isEmpty()) { + if (stackEntries_.isEmpty()) { + stackEntries_ = other.stackEntries_; + bitField0_ |= 0x00000001; + } else { + ensureStackEntriesIsMutable(); + stackEntries_.addAll(other.stackEntries_); + } + onChanged(); + } + if (!other.getDetail().isEmpty()) { + detail_ = other.detail_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + 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(); + ensureStackEntriesIsMutable(); + stackEntries_.add(s); + break; + } // case 10 + case 18: { + detail_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private com.google.protobuf.LazyStringArrayList stackEntries_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureStackEntriesIsMutable() { + if (!stackEntries_.isModifiable()) { + stackEntries_ = new com.google.protobuf.LazyStringArrayList(stackEntries_); + } + bitField0_ |= 0x00000001; + } + /** + *
+     * The stack trace entries indicating where the error occurred.
+     * 
+ * + * repeated string stack_entries = 1; + * @return A list containing the stackEntries. + */ + public com.google.protobuf.ProtocolStringList + getStackEntriesList() { + stackEntries_.makeImmutable(); + return stackEntries_; + } + /** + *
+     * The stack trace entries indicating where the error occurred.
+     * 
+ * + * repeated string stack_entries = 1; + * @return The count of stackEntries. + */ + public int getStackEntriesCount() { + return stackEntries_.size(); + } + /** + *
+     * The stack trace entries indicating where the error occurred.
+     * 
+ * + * repeated string stack_entries = 1; + * @param index The index of the element to return. + * @return The stackEntries at the given index. + */ + public java.lang.String getStackEntries(int index) { + return stackEntries_.get(index); + } + /** + *
+     * The stack trace entries indicating where the error occurred.
+     * 
+ * + * repeated string stack_entries = 1; + * @param index The index of the value to return. + * @return The bytes of the stackEntries at the given index. + */ + public com.google.protobuf.ByteString + getStackEntriesBytes(int index) { + return stackEntries_.getByteString(index); + } + /** + *
+     * The stack trace entries indicating where the error occurred.
+     * 
+ * + * repeated string stack_entries = 1; + * @param index The index to set the value at. + * @param value The stackEntries to set. + * @return This builder for chaining. + */ + public Builder setStackEntries( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureStackEntriesIsMutable(); + stackEntries_.set(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * The stack trace entries indicating where the error occurred.
+     * 
+ * + * repeated string stack_entries = 1; + * @param value The stackEntries to add. + * @return This builder for chaining. + */ + public Builder addStackEntries( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureStackEntriesIsMutable(); + stackEntries_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * The stack trace entries indicating where the error occurred.
+     * 
+ * + * repeated string stack_entries = 1; + * @param values The stackEntries to add. + * @return This builder for chaining. + */ + public Builder addAllStackEntries( + java.lang.Iterable values) { + ensureStackEntriesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, stackEntries_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * The stack trace entries indicating where the error occurred.
+     * 
+ * + * repeated string stack_entries = 1; + * @return This builder for chaining. + */ + public Builder clearStackEntries() { + stackEntries_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001);; + onChanged(); + return this; + } + /** + *
+     * The stack trace entries indicating where the error occurred.
+     * 
+ * + * repeated string stack_entries = 1; + * @param value The bytes of the stackEntries to add. + * @return This builder for chaining. + */ + public Builder addStackEntriesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensureStackEntriesIsMutable(); + stackEntries_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object detail_ = ""; + /** + *
+     * Additional debugging information provided by the server.
+     * 
+ * + * string detail = 2; + * @return The detail. + */ + public java.lang.String getDetail() { + java.lang.Object ref = detail_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + detail_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Additional debugging information provided by the server.
+     * 
+ * + * string detail = 2; + * @return The bytes for detail. + */ + public com.google.protobuf.ByteString + getDetailBytes() { + java.lang.Object ref = detail_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + detail_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Additional debugging information provided by the server.
+     * 
+ * + * string detail = 2; + * @param value The detail to set. + * @return This builder for chaining. + */ + public Builder setDetail( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + detail_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Additional debugging information provided by the server.
+     * 
+ * + * string detail = 2; + * @return This builder for chaining. + */ + public Builder clearDetail() { + detail_ = getDefaultInstance().getDetail(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+     * Additional debugging information provided by the server.
+     * 
+ * + * string detail = 2; + * @param value The bytes for detail to set. + * @return This builder for chaining. + */ + public Builder setDetailBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + detail_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:rpc.v1.DebugInfo) + } + + // @@protoc_insertion_point(class_scope:rpc.v1.DebugInfo) + private static final org.vdaas.vald.api.v1.rpc.DebugInfo DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.vdaas.vald.api.v1.rpc.DebugInfo(); + } + + public static org.vdaas.vald.api.v1.rpc.DebugInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DebugInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public org.vdaas.vald.api.v1.rpc.DebugInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/src/main/java/org/vdaas/vald/api/v1/rpc/DebugInfoOrBuilder.java b/src/main/java/org/vdaas/vald/api/v1/rpc/DebugInfoOrBuilder.java new file mode 100644 index 00000000..dec7440e --- /dev/null +++ b/src/main/java/org/vdaas/vald/api/v1/rpc/DebugInfoOrBuilder.java @@ -0,0 +1,70 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: apis/proto/v1/rpc/error_details.proto + +package org.vdaas.vald.api.v1.rpc; + +public interface DebugInfoOrBuilder extends + // @@protoc_insertion_point(interface_extends:rpc.v1.DebugInfo) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The stack trace entries indicating where the error occurred.
+   * 
+ * + * repeated string stack_entries = 1; + * @return A list containing the stackEntries. + */ + java.util.List + getStackEntriesList(); + /** + *
+   * The stack trace entries indicating where the error occurred.
+   * 
+ * + * repeated string stack_entries = 1; + * @return The count of stackEntries. + */ + int getStackEntriesCount(); + /** + *
+   * The stack trace entries indicating where the error occurred.
+   * 
+ * + * repeated string stack_entries = 1; + * @param index The index of the element to return. + * @return The stackEntries at the given index. + */ + java.lang.String getStackEntries(int index); + /** + *
+   * The stack trace entries indicating where the error occurred.
+   * 
+ * + * repeated string stack_entries = 1; + * @param index The index of the value to return. + * @return The bytes of the stackEntries at the given index. + */ + com.google.protobuf.ByteString + getStackEntriesBytes(int index); + + /** + *
+   * Additional debugging information provided by the server.
+   * 
+ * + * string detail = 2; + * @return The detail. + */ + java.lang.String getDetail(); + /** + *
+   * Additional debugging information provided by the server.
+   * 
+ * + * string detail = 2; + * @return The bytes for detail. + */ + com.google.protobuf.ByteString + getDetailBytes(); +} diff --git a/src/main/java/org/vdaas/vald/api/v1/rpc/ErrorDetailsProto.java b/src/main/java/org/vdaas/vald/api/v1/rpc/ErrorDetailsProto.java new file mode 100644 index 00000000..3949890b --- /dev/null +++ b/src/main/java/org/vdaas/vald/api/v1/rpc/ErrorDetailsProto.java @@ -0,0 +1,230 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: apis/proto/v1/rpc/error_details.proto + +package org.vdaas.vald.api.v1.rpc; + +public final class ErrorDetailsProto { + private ErrorDetailsProto() {} + 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_rpc_v1_ErrorInfo_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_rpc_v1_ErrorInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_rpc_v1_ErrorInfo_MetadataEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_rpc_v1_ErrorInfo_MetadataEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_rpc_v1_RetryInfo_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_rpc_v1_RetryInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_rpc_v1_DebugInfo_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_rpc_v1_DebugInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_rpc_v1_QuotaFailure_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_rpc_v1_QuotaFailure_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_rpc_v1_QuotaFailure_Violation_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_rpc_v1_QuotaFailure_Violation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_rpc_v1_PreconditionFailure_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_rpc_v1_PreconditionFailure_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_rpc_v1_PreconditionFailure_Violation_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_rpc_v1_PreconditionFailure_Violation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_rpc_v1_BadRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_rpc_v1_BadRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_rpc_v1_BadRequest_FieldViolation_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_rpc_v1_BadRequest_FieldViolation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_rpc_v1_RequestInfo_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_rpc_v1_RequestInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_rpc_v1_ResourceInfo_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_rpc_v1_ResourceInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_rpc_v1_Help_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_rpc_v1_Help_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_rpc_v1_Help_Link_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_rpc_v1_Help_Link_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_rpc_v1_LocalizedMessage_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_rpc_v1_LocalizedMessage_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%apis/proto/v1/rpc/error_details.proto\022" + + "\006rpc.v1\032\036google/protobuf/duration.proto\"" + + "\217\001\n\tErrorInfo\022\016\n\006reason\030\001 \001(\t\022\016\n\006domain\030" + + "\002 \001(\t\0221\n\010metadata\030\003 \003(\0132\037.rpc.v1.ErrorIn" + + "fo.MetadataEntry\032/\n\rMetadataEntry\022\013\n\003key" + + "\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\";\n\tRetryInfo\022." + + "\n\013retry_delay\030\001 \001(\0132\031.google.protobuf.Du" + + "ration\"2\n\tDebugInfo\022\025\n\rstack_entries\030\001 \003" + + "(\t\022\016\n\006detail\030\002 \001(\t\"u\n\014QuotaFailure\0222\n\nvi" + + "olations\030\001 \003(\0132\036.rpc.v1.QuotaFailure.Vio" + + "lation\0321\n\tViolation\022\017\n\007subject\030\001 \001(\t\022\023\n\013" + + "description\030\002 \001(\t\"\221\001\n\023PreconditionFailur" + + "e\0229\n\nviolations\030\001 \003(\0132%.rpc.v1.Precondit" + + "ionFailure.Violation\032?\n\tViolation\022\014\n\004typ" + + "e\030\001 \001(\t\022\017\n\007subject\030\002 \001(\t\022\023\n\013description\030" + + "\003 \001(\t\"\177\n\nBadRequest\022;\n\020field_violations\030" + + "\001 \003(\0132!.rpc.v1.BadRequest.FieldViolation" + + "\0324\n\016FieldViolation\022\r\n\005field\030\001 \001(\t\022\023\n\013des" + + "cription\030\002 \001(\t\"7\n\013RequestInfo\022\022\n\nrequest" + + "_id\030\001 \001(\t\022\024\n\014serving_data\030\002 \001(\t\"`\n\014Resou" + + "rceInfo\022\025\n\rresource_type\030\001 \001(\t\022\025\n\rresour" + + "ce_name\030\002 \001(\t\022\r\n\005owner\030\003 \001(\t\022\023\n\013descript" + + "ion\030\004 \001(\t\"R\n\004Help\022 \n\005links\030\001 \003(\0132\021.rpc.v" + + "1.Help.Link\032(\n\004Link\022\023\n\013description\030\001 \001(\t" + + "\022\013\n\003url\030\002 \001(\t\"3\n\020LocalizedMessage\022\016\n\006loc" + + "ale\030\001 \001(\t\022\017\n\007message\030\002 \001(\tBi\n\031org.vdaas." + + "vald.api.v1.rpcB\021ErrorDetailsProtoP\001Z1gi" + + "thub.com/vdaas/vald/apis/grpc/v1/rpc/err" + + "details\242\002\003RPCb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.protobuf.DurationProto.getDescriptor(), + }); + internal_static_rpc_v1_ErrorInfo_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_rpc_v1_ErrorInfo_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_rpc_v1_ErrorInfo_descriptor, + new java.lang.String[] { "Reason", "Domain", "Metadata", }); + internal_static_rpc_v1_ErrorInfo_MetadataEntry_descriptor = + internal_static_rpc_v1_ErrorInfo_descriptor.getNestedTypes().get(0); + internal_static_rpc_v1_ErrorInfo_MetadataEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_rpc_v1_ErrorInfo_MetadataEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_rpc_v1_RetryInfo_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_rpc_v1_RetryInfo_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_rpc_v1_RetryInfo_descriptor, + new java.lang.String[] { "RetryDelay", }); + internal_static_rpc_v1_DebugInfo_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_rpc_v1_DebugInfo_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_rpc_v1_DebugInfo_descriptor, + new java.lang.String[] { "StackEntries", "Detail", }); + internal_static_rpc_v1_QuotaFailure_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_rpc_v1_QuotaFailure_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_rpc_v1_QuotaFailure_descriptor, + new java.lang.String[] { "Violations", }); + internal_static_rpc_v1_QuotaFailure_Violation_descriptor = + internal_static_rpc_v1_QuotaFailure_descriptor.getNestedTypes().get(0); + internal_static_rpc_v1_QuotaFailure_Violation_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_rpc_v1_QuotaFailure_Violation_descriptor, + new java.lang.String[] { "Subject", "Description", }); + internal_static_rpc_v1_PreconditionFailure_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_rpc_v1_PreconditionFailure_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_rpc_v1_PreconditionFailure_descriptor, + new java.lang.String[] { "Violations", }); + internal_static_rpc_v1_PreconditionFailure_Violation_descriptor = + internal_static_rpc_v1_PreconditionFailure_descriptor.getNestedTypes().get(0); + internal_static_rpc_v1_PreconditionFailure_Violation_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_rpc_v1_PreconditionFailure_Violation_descriptor, + new java.lang.String[] { "Type", "Subject", "Description", }); + internal_static_rpc_v1_BadRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_rpc_v1_BadRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_rpc_v1_BadRequest_descriptor, + new java.lang.String[] { "FieldViolations", }); + internal_static_rpc_v1_BadRequest_FieldViolation_descriptor = + internal_static_rpc_v1_BadRequest_descriptor.getNestedTypes().get(0); + internal_static_rpc_v1_BadRequest_FieldViolation_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_rpc_v1_BadRequest_FieldViolation_descriptor, + new java.lang.String[] { "Field", "Description", }); + internal_static_rpc_v1_RequestInfo_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_rpc_v1_RequestInfo_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_rpc_v1_RequestInfo_descriptor, + new java.lang.String[] { "RequestId", "ServingData", }); + internal_static_rpc_v1_ResourceInfo_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_rpc_v1_ResourceInfo_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_rpc_v1_ResourceInfo_descriptor, + new java.lang.String[] { "ResourceType", "ResourceName", "Owner", "Description", }); + internal_static_rpc_v1_Help_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_rpc_v1_Help_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_rpc_v1_Help_descriptor, + new java.lang.String[] { "Links", }); + internal_static_rpc_v1_Help_Link_descriptor = + internal_static_rpc_v1_Help_descriptor.getNestedTypes().get(0); + internal_static_rpc_v1_Help_Link_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_rpc_v1_Help_Link_descriptor, + new java.lang.String[] { "Description", "Url", }); + internal_static_rpc_v1_LocalizedMessage_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_rpc_v1_LocalizedMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_rpc_v1_LocalizedMessage_descriptor, + new java.lang.String[] { "Locale", "Message", }); + com.google.protobuf.DurationProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/src/main/java/org/vdaas/vald/api/v1/rpc/ErrorInfo.java b/src/main/java/org/vdaas/vald/api/v1/rpc/ErrorInfo.java new file mode 100644 index 00000000..f3725c6b --- /dev/null +++ b/src/main/java/org/vdaas/vald/api/v1/rpc/ErrorInfo.java @@ -0,0 +1,1250 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: apis/proto/v1/rpc/error_details.proto + +package org.vdaas.vald.api.v1.rpc; + +/** + *
+ * Describes the cause of the error with structured details.
+ *
+ * Example of an error when contacting the "pubsub.googleapis.com" API when it
+ * is not enabled:
+ *
+ *     { "reason": "API_DISABLED"
+ *       "domain": "googleapis.com"
+ *       "metadata": {
+ *         "resource": "projects/123",
+ *         "service": "pubsub.googleapis.com"
+ *       }
+ *     }
+ *
+ * This response indicates that the pubsub.googleapis.com API is not enabled.
+ *
+ * Example of an error that is returned when attempting to create a Spanner
+ * instance in a region that is out of stock:
+ *
+ *     { "reason": "STOCKOUT"
+ *       "domain": "spanner.googleapis.com",
+ *       "metadata": {
+ *         "availableRegions": "us-central1,us-east2"
+ *       }
+ *     }
+ * 
+ * + * Protobuf type {@code rpc.v1.ErrorInfo} + */ +public final class ErrorInfo extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:rpc.v1.ErrorInfo) + ErrorInfoOrBuilder { +private static final long serialVersionUID = 0L; + // Use ErrorInfo.newBuilder() to construct. + private ErrorInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ErrorInfo() { + reason_ = ""; + domain_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ErrorInfo(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.vdaas.vald.api.v1.rpc.ErrorDetailsProto.internal_static_rpc_v1_ErrorInfo_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 3: + return internalGetMetadata(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.vdaas.vald.api.v1.rpc.ErrorDetailsProto.internal_static_rpc_v1_ErrorInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.vdaas.vald.api.v1.rpc.ErrorInfo.class, org.vdaas.vald.api.v1.rpc.ErrorInfo.Builder.class); + } + + public static final int REASON_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object reason_ = ""; + /** + *
+   * The reason of the error. This is a constant value that identifies the
+   * proximate cause of the error. Error reasons are unique within a particular
+   * domain of errors. This should be at most 63 characters and match a
+   * regular expression of `[A-Z][A-Z0-9_]+[A-Z0-9]`, which represents
+   * UPPER_SNAKE_CASE.
+   * 
+ * + * string reason = 1; + * @return The reason. + */ + @java.lang.Override + public java.lang.String getReason() { + java.lang.Object ref = reason_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + reason_ = s; + return s; + } + } + /** + *
+   * The reason of the error. This is a constant value that identifies the
+   * proximate cause of the error. Error reasons are unique within a particular
+   * domain of errors. This should be at most 63 characters and match a
+   * regular expression of `[A-Z][A-Z0-9_]+[A-Z0-9]`, which represents
+   * UPPER_SNAKE_CASE.
+   * 
+ * + * string reason = 1; + * @return The bytes for reason. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getReasonBytes() { + java.lang.Object ref = reason_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + reason_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DOMAIN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object domain_ = ""; + /** + *
+   * The logical grouping to which the "reason" belongs. The error domain
+   * is typically the registered service name of the tool or product that
+   * generates the error. Example: "pubsub.googleapis.com". If the error is
+   * generated by some common infrastructure, the error domain must be a
+   * globally unique value that identifies the infrastructure. For Google API
+   * infrastructure, the error domain is "googleapis.com".
+   * 
+ * + * string domain = 2; + * @return The domain. + */ + @java.lang.Override + 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; + } + } + /** + *
+   * The logical grouping to which the "reason" belongs. The error domain
+   * is typically the registered service name of the tool or product that
+   * generates the error. Example: "pubsub.googleapis.com". If the error is
+   * generated by some common infrastructure, the error domain must be a
+   * globally unique value that identifies the infrastructure. For Google API
+   * infrastructure, the error domain is "googleapis.com".
+   * 
+ * + * string domain = 2; + * @return The bytes for domain. + */ + @java.lang.Override + 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 METADATA_FIELD_NUMBER = 3; + private static final class MetadataDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + org.vdaas.vald.api.v1.rpc.ErrorDetailsProto.internal_static_rpc_v1_ErrorInfo_MetadataEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + @SuppressWarnings("serial") + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> metadata_; + private com.google.protobuf.MapField + internalGetMetadata() { + if (metadata_ == null) { + return com.google.protobuf.MapField.emptyMapField( + MetadataDefaultEntryHolder.defaultEntry); + } + return metadata_; + } + public int getMetadataCount() { + return internalGetMetadata().getMap().size(); + } + /** + *
+   * Additional structured details about this error.
+   *
+   * Keys should match /[a-zA-Z0-9-_]/ and be limited to 64 characters in
+   * length. When identifying the current value of an exceeded limit, the units
+   * should be contained in the key, not the value.  For example, rather than
+   * {"instanceLimit": "100/request"}, should be returned as,
+   * {"instanceLimitPerRequest": "100"}, if the client exceeds the number of
+   * instances that can be created in a single (batch) request.
+   * 
+ * + * map<string, string> metadata = 3; + */ + @java.lang.Override + public boolean containsMetadata( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetMetadata().getMap().containsKey(key); + } + /** + * Use {@link #getMetadataMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getMetadata() { + return getMetadataMap(); + } + /** + *
+   * Additional structured details about this error.
+   *
+   * Keys should match /[a-zA-Z0-9-_]/ and be limited to 64 characters in
+   * length. When identifying the current value of an exceeded limit, the units
+   * should be contained in the key, not the value.  For example, rather than
+   * {"instanceLimit": "100/request"}, should be returned as,
+   * {"instanceLimitPerRequest": "100"}, if the client exceeds the number of
+   * instances that can be created in a single (batch) request.
+   * 
+ * + * map<string, string> metadata = 3; + */ + @java.lang.Override + public java.util.Map getMetadataMap() { + return internalGetMetadata().getMap(); + } + /** + *
+   * Additional structured details about this error.
+   *
+   * Keys should match /[a-zA-Z0-9-_]/ and be limited to 64 characters in
+   * length. When identifying the current value of an exceeded limit, the units
+   * should be contained in the key, not the value.  For example, rather than
+   * {"instanceLimit": "100/request"}, should be returned as,
+   * {"instanceLimitPerRequest": "100"}, if the client exceeds the number of
+   * instances that can be created in a single (batch) request.
+   * 
+ * + * map<string, string> metadata = 3; + */ + @java.lang.Override + public /* nullable */ +java.lang.String getMetadataOrDefault( + java.lang.String key, + /* nullable */ +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetMetadata().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+   * Additional structured details about this error.
+   *
+   * Keys should match /[a-zA-Z0-9-_]/ and be limited to 64 characters in
+   * length. When identifying the current value of an exceeded limit, the units
+   * should be contained in the key, not the value.  For example, rather than
+   * {"instanceLimit": "100/request"}, should be returned as,
+   * {"instanceLimitPerRequest": "100"}, if the client exceeds the number of
+   * instances that can be created in a single (batch) request.
+   * 
+ * + * map<string, string> metadata = 3; + */ + @java.lang.Override + public java.lang.String getMetadataOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetMetadata().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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(reason_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, reason_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(domain_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, domain_); + } + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetMetadata(), + MetadataDefaultEntryHolder.defaultEntry, + 3); + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(reason_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, reason_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(domain_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, domain_); + } + for (java.util.Map.Entry entry + : internalGetMetadata().getMap().entrySet()) { + com.google.protobuf.MapEntry + metadata__ = MetadataDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, metadata__); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.vdaas.vald.api.v1.rpc.ErrorInfo)) { + return super.equals(obj); + } + org.vdaas.vald.api.v1.rpc.ErrorInfo other = (org.vdaas.vald.api.v1.rpc.ErrorInfo) obj; + + if (!getReason() + .equals(other.getReason())) return false; + if (!getDomain() + .equals(other.getDomain())) return false; + if (!internalGetMetadata().equals( + other.internalGetMetadata())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + REASON_FIELD_NUMBER; + hash = (53 * hash) + getReason().hashCode(); + hash = (37 * hash) + DOMAIN_FIELD_NUMBER; + hash = (53 * hash) + getDomain().hashCode(); + if (!internalGetMetadata().getMap().isEmpty()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + internalGetMetadata().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.vdaas.vald.api.v1.rpc.ErrorInfo parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.vdaas.vald.api.v1.rpc.ErrorInfo parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.vdaas.vald.api.v1.rpc.ErrorInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.vdaas.vald.api.v1.rpc.ErrorInfo parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.vdaas.vald.api.v1.rpc.ErrorInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.vdaas.vald.api.v1.rpc.ErrorInfo parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.vdaas.vald.api.v1.rpc.ErrorInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.vdaas.vald.api.v1.rpc.ErrorInfo parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static org.vdaas.vald.api.v1.rpc.ErrorInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static org.vdaas.vald.api.v1.rpc.ErrorInfo parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.vdaas.vald.api.v1.rpc.ErrorInfo parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.vdaas.vald.api.v1.rpc.ErrorInfo parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.vdaas.vald.api.v1.rpc.ErrorInfo prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new 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 cause of the error with structured details.
+   *
+   * Example of an error when contacting the "pubsub.googleapis.com" API when it
+   * is not enabled:
+   *
+   *     { "reason": "API_DISABLED"
+   *       "domain": "googleapis.com"
+   *       "metadata": {
+   *         "resource": "projects/123",
+   *         "service": "pubsub.googleapis.com"
+   *       }
+   *     }
+   *
+   * This response indicates that the pubsub.googleapis.com API is not enabled.
+   *
+   * Example of an error that is returned when attempting to create a Spanner
+   * instance in a region that is out of stock:
+   *
+   *     { "reason": "STOCKOUT"
+   *       "domain": "spanner.googleapis.com",
+   *       "metadata": {
+   *         "availableRegions": "us-central1,us-east2"
+   *       }
+   *     }
+   * 
+ * + * Protobuf type {@code rpc.v1.ErrorInfo} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:rpc.v1.ErrorInfo) + org.vdaas.vald.api.v1.rpc.ErrorInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.vdaas.vald.api.v1.rpc.ErrorDetailsProto.internal_static_rpc_v1_ErrorInfo_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 3: + return internalGetMetadata(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 3: + return internalGetMutableMetadata(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.vdaas.vald.api.v1.rpc.ErrorDetailsProto.internal_static_rpc_v1_ErrorInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.vdaas.vald.api.v1.rpc.ErrorInfo.class, org.vdaas.vald.api.v1.rpc.ErrorInfo.Builder.class); + } + + // Construct using org.vdaas.vald.api.v1.rpc.ErrorInfo.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + reason_ = ""; + domain_ = ""; + internalGetMutableMetadata().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.vdaas.vald.api.v1.rpc.ErrorDetailsProto.internal_static_rpc_v1_ErrorInfo_descriptor; + } + + @java.lang.Override + public org.vdaas.vald.api.v1.rpc.ErrorInfo getDefaultInstanceForType() { + return org.vdaas.vald.api.v1.rpc.ErrorInfo.getDefaultInstance(); + } + + @java.lang.Override + public org.vdaas.vald.api.v1.rpc.ErrorInfo build() { + org.vdaas.vald.api.v1.rpc.ErrorInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.vdaas.vald.api.v1.rpc.ErrorInfo buildPartial() { + org.vdaas.vald.api.v1.rpc.ErrorInfo result = new org.vdaas.vald.api.v1.rpc.ErrorInfo(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(org.vdaas.vald.api.v1.rpc.ErrorInfo result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.reason_ = reason_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.domain_ = domain_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.metadata_ = internalGetMetadata(); + result.metadata_.makeImmutable(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.vdaas.vald.api.v1.rpc.ErrorInfo) { + return mergeFrom((org.vdaas.vald.api.v1.rpc.ErrorInfo)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.vdaas.vald.api.v1.rpc.ErrorInfo other) { + if (other == org.vdaas.vald.api.v1.rpc.ErrorInfo.getDefaultInstance()) return this; + if (!other.getReason().isEmpty()) { + reason_ = other.reason_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDomain().isEmpty()) { + domain_ = other.domain_; + bitField0_ |= 0x00000002; + onChanged(); + } + internalGetMutableMetadata().mergeFrom( + other.internalGetMetadata()); + bitField0_ |= 0x00000004; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + reason_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + domain_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + com.google.protobuf.MapEntry + metadata__ = input.readMessage( + MetadataDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableMetadata().getMutableMap().put( + metadata__.getKey(), metadata__.getValue()); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object reason_ = ""; + /** + *
+     * The reason of the error. This is a constant value that identifies the
+     * proximate cause of the error. Error reasons are unique within a particular
+     * domain of errors. This should be at most 63 characters and match a
+     * regular expression of `[A-Z][A-Z0-9_]+[A-Z0-9]`, which represents
+     * UPPER_SNAKE_CASE.
+     * 
+ * + * string reason = 1; + * @return The reason. + */ + public java.lang.String getReason() { + java.lang.Object ref = reason_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + reason_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The reason of the error. This is a constant value that identifies the
+     * proximate cause of the error. Error reasons are unique within a particular
+     * domain of errors. This should be at most 63 characters and match a
+     * regular expression of `[A-Z][A-Z0-9_]+[A-Z0-9]`, which represents
+     * UPPER_SNAKE_CASE.
+     * 
+ * + * string reason = 1; + * @return The bytes for reason. + */ + public com.google.protobuf.ByteString + getReasonBytes() { + java.lang.Object ref = reason_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + reason_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The reason of the error. This is a constant value that identifies the
+     * proximate cause of the error. Error reasons are unique within a particular
+     * domain of errors. This should be at most 63 characters and match a
+     * regular expression of `[A-Z][A-Z0-9_]+[A-Z0-9]`, which represents
+     * UPPER_SNAKE_CASE.
+     * 
+ * + * string reason = 1; + * @param value The reason to set. + * @return This builder for chaining. + */ + public Builder setReason( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + reason_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * The reason of the error. This is a constant value that identifies the
+     * proximate cause of the error. Error reasons are unique within a particular
+     * domain of errors. This should be at most 63 characters and match a
+     * regular expression of `[A-Z][A-Z0-9_]+[A-Z0-9]`, which represents
+     * UPPER_SNAKE_CASE.
+     * 
+ * + * string reason = 1; + * @return This builder for chaining. + */ + public Builder clearReason() { + reason_ = getDefaultInstance().getReason(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * The reason of the error. This is a constant value that identifies the
+     * proximate cause of the error. Error reasons are unique within a particular
+     * domain of errors. This should be at most 63 characters and match a
+     * regular expression of `[A-Z][A-Z0-9_]+[A-Z0-9]`, which represents
+     * UPPER_SNAKE_CASE.
+     * 
+ * + * string reason = 1; + * @param value The bytes for reason to set. + * @return This builder for chaining. + */ + public Builder setReasonBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + reason_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object domain_ = ""; + /** + *
+     * The logical grouping to which the "reason" belongs. The error domain
+     * is typically the registered service name of the tool or product that
+     * generates the error. Example: "pubsub.googleapis.com". If the error is
+     * generated by some common infrastructure, the error domain must be a
+     * globally unique value that identifies the infrastructure. For Google API
+     * infrastructure, the error domain is "googleapis.com".
+     * 
+ * + * string domain = 2; + * @return The domain. + */ + 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; + } + } + /** + *
+     * The logical grouping to which the "reason" belongs. The error domain
+     * is typically the registered service name of the tool or product that
+     * generates the error. Example: "pubsub.googleapis.com". If the error is
+     * generated by some common infrastructure, the error domain must be a
+     * globally unique value that identifies the infrastructure. For Google API
+     * infrastructure, the error domain is "googleapis.com".
+     * 
+ * + * string domain = 2; + * @return The bytes for domain. + */ + 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; + } + } + /** + *
+     * The logical grouping to which the "reason" belongs. The error domain
+     * is typically the registered service name of the tool or product that
+     * generates the error. Example: "pubsub.googleapis.com". If the error is
+     * generated by some common infrastructure, the error domain must be a
+     * globally unique value that identifies the infrastructure. For Google API
+     * infrastructure, the error domain is "googleapis.com".
+     * 
+ * + * string domain = 2; + * @param value The domain to set. + * @return This builder for chaining. + */ + public Builder setDomain( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + domain_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * The logical grouping to which the "reason" belongs. The error domain
+     * is typically the registered service name of the tool or product that
+     * generates the error. Example: "pubsub.googleapis.com". If the error is
+     * generated by some common infrastructure, the error domain must be a
+     * globally unique value that identifies the infrastructure. For Google API
+     * infrastructure, the error domain is "googleapis.com".
+     * 
+ * + * string domain = 2; + * @return This builder for chaining. + */ + public Builder clearDomain() { + domain_ = getDefaultInstance().getDomain(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+     * The logical grouping to which the "reason" belongs. The error domain
+     * is typically the registered service name of the tool or product that
+     * generates the error. Example: "pubsub.googleapis.com". If the error is
+     * generated by some common infrastructure, the error domain must be a
+     * globally unique value that identifies the infrastructure. For Google API
+     * infrastructure, the error domain is "googleapis.com".
+     * 
+ * + * string domain = 2; + * @param value The bytes for domain to set. + * @return This builder for chaining. + */ + public Builder setDomainBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + domain_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> metadata_; + private com.google.protobuf.MapField + internalGetMetadata() { + if (metadata_ == null) { + return com.google.protobuf.MapField.emptyMapField( + MetadataDefaultEntryHolder.defaultEntry); + } + return metadata_; + } + private com.google.protobuf.MapField + internalGetMutableMetadata() { + if (metadata_ == null) { + metadata_ = com.google.protobuf.MapField.newMapField( + MetadataDefaultEntryHolder.defaultEntry); + } + if (!metadata_.isMutable()) { + metadata_ = metadata_.copy(); + } + bitField0_ |= 0x00000004; + onChanged(); + return metadata_; + } + public int getMetadataCount() { + return internalGetMetadata().getMap().size(); + } + /** + *
+     * Additional structured details about this error.
+     *
+     * Keys should match /[a-zA-Z0-9-_]/ and be limited to 64 characters in
+     * length. When identifying the current value of an exceeded limit, the units
+     * should be contained in the key, not the value.  For example, rather than
+     * {"instanceLimit": "100/request"}, should be returned as,
+     * {"instanceLimitPerRequest": "100"}, if the client exceeds the number of
+     * instances that can be created in a single (batch) request.
+     * 
+ * + * map<string, string> metadata = 3; + */ + @java.lang.Override + public boolean containsMetadata( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetMetadata().getMap().containsKey(key); + } + /** + * Use {@link #getMetadataMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getMetadata() { + return getMetadataMap(); + } + /** + *
+     * Additional structured details about this error.
+     *
+     * Keys should match /[a-zA-Z0-9-_]/ and be limited to 64 characters in
+     * length. When identifying the current value of an exceeded limit, the units
+     * should be contained in the key, not the value.  For example, rather than
+     * {"instanceLimit": "100/request"}, should be returned as,
+     * {"instanceLimitPerRequest": "100"}, if the client exceeds the number of
+     * instances that can be created in a single (batch) request.
+     * 
+ * + * map<string, string> metadata = 3; + */ + @java.lang.Override + public java.util.Map getMetadataMap() { + return internalGetMetadata().getMap(); + } + /** + *
+     * Additional structured details about this error.
+     *
+     * Keys should match /[a-zA-Z0-9-_]/ and be limited to 64 characters in
+     * length. When identifying the current value of an exceeded limit, the units
+     * should be contained in the key, not the value.  For example, rather than
+     * {"instanceLimit": "100/request"}, should be returned as,
+     * {"instanceLimitPerRequest": "100"}, if the client exceeds the number of
+     * instances that can be created in a single (batch) request.
+     * 
+ * + * map<string, string> metadata = 3; + */ + @java.lang.Override + public /* nullable */ +java.lang.String getMetadataOrDefault( + java.lang.String key, + /* nullable */ +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetMetadata().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+     * Additional structured details about this error.
+     *
+     * Keys should match /[a-zA-Z0-9-_]/ and be limited to 64 characters in
+     * length. When identifying the current value of an exceeded limit, the units
+     * should be contained in the key, not the value.  For example, rather than
+     * {"instanceLimit": "100/request"}, should be returned as,
+     * {"instanceLimitPerRequest": "100"}, if the client exceeds the number of
+     * instances that can be created in a single (batch) request.
+     * 
+ * + * map<string, string> metadata = 3; + */ + @java.lang.Override + public java.lang.String getMetadataOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetMetadata().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + public Builder clearMetadata() { + bitField0_ = (bitField0_ & ~0x00000004); + internalGetMutableMetadata().getMutableMap() + .clear(); + return this; + } + /** + *
+     * Additional structured details about this error.
+     *
+     * Keys should match /[a-zA-Z0-9-_]/ and be limited to 64 characters in
+     * length. When identifying the current value of an exceeded limit, the units
+     * should be contained in the key, not the value.  For example, rather than
+     * {"instanceLimit": "100/request"}, should be returned as,
+     * {"instanceLimitPerRequest": "100"}, if the client exceeds the number of
+     * instances that can be created in a single (batch) request.
+     * 
+ * + * map<string, string> metadata = 3; + */ + public Builder removeMetadata( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableMetadata().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableMetadata() { + bitField0_ |= 0x00000004; + return internalGetMutableMetadata().getMutableMap(); + } + /** + *
+     * Additional structured details about this error.
+     *
+     * Keys should match /[a-zA-Z0-9-_]/ and be limited to 64 characters in
+     * length. When identifying the current value of an exceeded limit, the units
+     * should be contained in the key, not the value.  For example, rather than
+     * {"instanceLimit": "100/request"}, should be returned as,
+     * {"instanceLimitPerRequest": "100"}, if the client exceeds the number of
+     * instances that can be created in a single (batch) request.
+     * 
+ * + * map<string, string> metadata = 3; + */ + public Builder putMetadata( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { throw new NullPointerException("map value"); } + internalGetMutableMetadata().getMutableMap() + .put(key, value); + bitField0_ |= 0x00000004; + return this; + } + /** + *
+     * Additional structured details about this error.
+     *
+     * Keys should match /[a-zA-Z0-9-_]/ and be limited to 64 characters in
+     * length. When identifying the current value of an exceeded limit, the units
+     * should be contained in the key, not the value.  For example, rather than
+     * {"instanceLimit": "100/request"}, should be returned as,
+     * {"instanceLimitPerRequest": "100"}, if the client exceeds the number of
+     * instances that can be created in a single (batch) request.
+     * 
+ * + * map<string, string> metadata = 3; + */ + public Builder putAllMetadata( + java.util.Map values) { + internalGetMutableMetadata().getMutableMap() + .putAll(values); + bitField0_ |= 0x00000004; + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:rpc.v1.ErrorInfo) + } + + // @@protoc_insertion_point(class_scope:rpc.v1.ErrorInfo) + private static final org.vdaas.vald.api.v1.rpc.ErrorInfo DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.vdaas.vald.api.v1.rpc.ErrorInfo(); + } + + public static org.vdaas.vald.api.v1.rpc.ErrorInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ErrorInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public org.vdaas.vald.api.v1.rpc.ErrorInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/src/main/java/org/vdaas/vald/api/v1/rpc/ErrorInfoOrBuilder.java b/src/main/java/org/vdaas/vald/api/v1/rpc/ErrorInfoOrBuilder.java new file mode 100644 index 00000000..aee84967 --- /dev/null +++ b/src/main/java/org/vdaas/vald/api/v1/rpc/ErrorInfoOrBuilder.java @@ -0,0 +1,156 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: apis/proto/v1/rpc/error_details.proto + +package org.vdaas.vald.api.v1.rpc; + +public interface ErrorInfoOrBuilder extends + // @@protoc_insertion_point(interface_extends:rpc.v1.ErrorInfo) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The reason of the error. This is a constant value that identifies the
+   * proximate cause of the error. Error reasons are unique within a particular
+   * domain of errors. This should be at most 63 characters and match a
+   * regular expression of `[A-Z][A-Z0-9_]+[A-Z0-9]`, which represents
+   * UPPER_SNAKE_CASE.
+   * 
+ * + * string reason = 1; + * @return The reason. + */ + java.lang.String getReason(); + /** + *
+   * The reason of the error. This is a constant value that identifies the
+   * proximate cause of the error. Error reasons are unique within a particular
+   * domain of errors. This should be at most 63 characters and match a
+   * regular expression of `[A-Z][A-Z0-9_]+[A-Z0-9]`, which represents
+   * UPPER_SNAKE_CASE.
+   * 
+ * + * string reason = 1; + * @return The bytes for reason. + */ + com.google.protobuf.ByteString + getReasonBytes(); + + /** + *
+   * The logical grouping to which the "reason" belongs. The error domain
+   * is typically the registered service name of the tool or product that
+   * generates the error. Example: "pubsub.googleapis.com". If the error is
+   * generated by some common infrastructure, the error domain must be a
+   * globally unique value that identifies the infrastructure. For Google API
+   * infrastructure, the error domain is "googleapis.com".
+   * 
+ * + * string domain = 2; + * @return The domain. + */ + java.lang.String getDomain(); + /** + *
+   * The logical grouping to which the "reason" belongs. The error domain
+   * is typically the registered service name of the tool or product that
+   * generates the error. Example: "pubsub.googleapis.com". If the error is
+   * generated by some common infrastructure, the error domain must be a
+   * globally unique value that identifies the infrastructure. For Google API
+   * infrastructure, the error domain is "googleapis.com".
+   * 
+ * + * string domain = 2; + * @return The bytes for domain. + */ + com.google.protobuf.ByteString + getDomainBytes(); + + /** + *
+   * Additional structured details about this error.
+   *
+   * Keys should match /[a-zA-Z0-9-_]/ and be limited to 64 characters in
+   * length. When identifying the current value of an exceeded limit, the units
+   * should be contained in the key, not the value.  For example, rather than
+   * {"instanceLimit": "100/request"}, should be returned as,
+   * {"instanceLimitPerRequest": "100"}, if the client exceeds the number of
+   * instances that can be created in a single (batch) request.
+   * 
+ * + * map<string, string> metadata = 3; + */ + int getMetadataCount(); + /** + *
+   * Additional structured details about this error.
+   *
+   * Keys should match /[a-zA-Z0-9-_]/ and be limited to 64 characters in
+   * length. When identifying the current value of an exceeded limit, the units
+   * should be contained in the key, not the value.  For example, rather than
+   * {"instanceLimit": "100/request"}, should be returned as,
+   * {"instanceLimitPerRequest": "100"}, if the client exceeds the number of
+   * instances that can be created in a single (batch) request.
+   * 
+ * + * map<string, string> metadata = 3; + */ + boolean containsMetadata( + java.lang.String key); + /** + * Use {@link #getMetadataMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getMetadata(); + /** + *
+   * Additional structured details about this error.
+   *
+   * Keys should match /[a-zA-Z0-9-_]/ and be limited to 64 characters in
+   * length. When identifying the current value of an exceeded limit, the units
+   * should be contained in the key, not the value.  For example, rather than
+   * {"instanceLimit": "100/request"}, should be returned as,
+   * {"instanceLimitPerRequest": "100"}, if the client exceeds the number of
+   * instances that can be created in a single (batch) request.
+   * 
+ * + * map<string, string> metadata = 3; + */ + java.util.Map + getMetadataMap(); + /** + *
+   * Additional structured details about this error.
+   *
+   * Keys should match /[a-zA-Z0-9-_]/ and be limited to 64 characters in
+   * length. When identifying the current value of an exceeded limit, the units
+   * should be contained in the key, not the value.  For example, rather than
+   * {"instanceLimit": "100/request"}, should be returned as,
+   * {"instanceLimitPerRequest": "100"}, if the client exceeds the number of
+   * instances that can be created in a single (batch) request.
+   * 
+ * + * map<string, string> metadata = 3; + */ + /* nullable */ +java.lang.String getMetadataOrDefault( + java.lang.String key, + /* nullable */ +java.lang.String defaultValue); + /** + *
+   * Additional structured details about this error.
+   *
+   * Keys should match /[a-zA-Z0-9-_]/ and be limited to 64 characters in
+   * length. When identifying the current value of an exceeded limit, the units
+   * should be contained in the key, not the value.  For example, rather than
+   * {"instanceLimit": "100/request"}, should be returned as,
+   * {"instanceLimitPerRequest": "100"}, if the client exceeds the number of
+   * instances that can be created in a single (batch) request.
+   * 
+ * + * map<string, string> metadata = 3; + */ + java.lang.String getMetadataOrThrow( + java.lang.String key); +} diff --git a/src/main/java/org/vdaas/vald/api/v1/rpc/Help.java b/src/main/java/org/vdaas/vald/api/v1/rpc/Help.java new file mode 100644 index 00000000..f97ed2d8 --- /dev/null +++ b/src/main/java/org/vdaas/vald/api/v1/rpc/Help.java @@ -0,0 +1,1647 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: apis/proto/v1/rpc/error_details.proto + +package org.vdaas.vald.api.v1.rpc; + +/** + *
+ * Provides links to documentation or for performing an out of band action.
+ *
+ * For example, if a quota check failed with an error indicating the calling
+ * project hasn't enabled the accessed service, this can contain a URL pointing
+ * directly to the right place in the developer console to flip the bit.
+ * 
+ * + * Protobuf type {@code rpc.v1.Help} + */ +public final class Help extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:rpc.v1.Help) + HelpOrBuilder { +private static final long serialVersionUID = 0L; + // Use Help.newBuilder() to construct. + private Help(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Help() { + links_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Help(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.vdaas.vald.api.v1.rpc.ErrorDetailsProto.internal_static_rpc_v1_Help_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.vdaas.vald.api.v1.rpc.ErrorDetailsProto.internal_static_rpc_v1_Help_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.vdaas.vald.api.v1.rpc.Help.class, org.vdaas.vald.api.v1.rpc.Help.Builder.class); + } + + public interface LinkOrBuilder extends + // @@protoc_insertion_point(interface_extends:rpc.v1.Help.Link) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Describes what the link offers.
+     * 
+ * + * string description = 1; + * @return The description. + */ + java.lang.String getDescription(); + /** + *
+     * Describes what the link offers.
+     * 
+ * + * string description = 1; + * @return The bytes for description. + */ + com.google.protobuf.ByteString + getDescriptionBytes(); + + /** + *
+     * The URL of the link.
+     * 
+ * + * string url = 2; + * @return The url. + */ + java.lang.String getUrl(); + /** + *
+     * The URL of the link.
+     * 
+ * + * string url = 2; + * @return The bytes for url. + */ + com.google.protobuf.ByteString + getUrlBytes(); + } + /** + *
+   * Describes a URL link.
+   * 
+ * + * Protobuf type {@code rpc.v1.Help.Link} + */ + public static final class Link extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:rpc.v1.Help.Link) + LinkOrBuilder { + private static final long serialVersionUID = 0L; + // Use Link.newBuilder() to construct. + private Link(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Link() { + description_ = ""; + url_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Link(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.vdaas.vald.api.v1.rpc.ErrorDetailsProto.internal_static_rpc_v1_Help_Link_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.vdaas.vald.api.v1.rpc.ErrorDetailsProto.internal_static_rpc_v1_Help_Link_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.vdaas.vald.api.v1.rpc.Help.Link.class, org.vdaas.vald.api.v1.rpc.Help.Link.Builder.class); + } + + public static final int DESCRIPTION_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + /** + *
+     * Describes what the link offers.
+     * 
+ * + * string description = 1; + * @return The description. + */ + @java.lang.Override + 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; + } + } + /** + *
+     * Describes what the link offers.
+     * 
+ * + * string description = 1; + * @return The bytes for description. + */ + @java.lang.Override + 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 URL_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object url_ = ""; + /** + *
+     * The URL of the link.
+     * 
+ * + * string url = 2; + * @return The url. + */ + @java.lang.Override + public java.lang.String getUrl() { + java.lang.Object ref = url_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + url_ = s; + return s; + } + } + /** + *
+     * The URL of the link.
+     * 
+ * + * string url = 2; + * @return The bytes for url. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getUrlBytes() { + java.lang.Object ref = url_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + url_ = 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, description_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(url_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, url_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, description_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(url_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, url_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.vdaas.vald.api.v1.rpc.Help.Link)) { + return super.equals(obj); + } + org.vdaas.vald.api.v1.rpc.Help.Link other = (org.vdaas.vald.api.v1.rpc.Help.Link) obj; + + if (!getDescription() + .equals(other.getDescription())) return false; + if (!getUrl() + .equals(other.getUrl())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (37 * hash) + URL_FIELD_NUMBER; + hash = (53 * hash) + getUrl().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.vdaas.vald.api.v1.rpc.Help.Link parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.vdaas.vald.api.v1.rpc.Help.Link parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.vdaas.vald.api.v1.rpc.Help.Link parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.vdaas.vald.api.v1.rpc.Help.Link parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.vdaas.vald.api.v1.rpc.Help.Link parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.vdaas.vald.api.v1.rpc.Help.Link parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.vdaas.vald.api.v1.rpc.Help.Link parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.vdaas.vald.api.v1.rpc.Help.Link parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static org.vdaas.vald.api.v1.rpc.Help.Link parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static org.vdaas.vald.api.v1.rpc.Help.Link parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.vdaas.vald.api.v1.rpc.Help.Link parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.vdaas.vald.api.v1.rpc.Help.Link parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.vdaas.vald.api.v1.rpc.Help.Link prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new 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 a URL link.
+     * 
+ * + * Protobuf type {@code rpc.v1.Help.Link} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:rpc.v1.Help.Link) + org.vdaas.vald.api.v1.rpc.Help.LinkOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.vdaas.vald.api.v1.rpc.ErrorDetailsProto.internal_static_rpc_v1_Help_Link_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.vdaas.vald.api.v1.rpc.ErrorDetailsProto.internal_static_rpc_v1_Help_Link_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.vdaas.vald.api.v1.rpc.Help.Link.class, org.vdaas.vald.api.v1.rpc.Help.Link.Builder.class); + } + + // Construct using org.vdaas.vald.api.v1.rpc.Help.Link.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + description_ = ""; + url_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.vdaas.vald.api.v1.rpc.ErrorDetailsProto.internal_static_rpc_v1_Help_Link_descriptor; + } + + @java.lang.Override + public org.vdaas.vald.api.v1.rpc.Help.Link getDefaultInstanceForType() { + return org.vdaas.vald.api.v1.rpc.Help.Link.getDefaultInstance(); + } + + @java.lang.Override + public org.vdaas.vald.api.v1.rpc.Help.Link build() { + org.vdaas.vald.api.v1.rpc.Help.Link result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.vdaas.vald.api.v1.rpc.Help.Link buildPartial() { + org.vdaas.vald.api.v1.rpc.Help.Link result = new org.vdaas.vald.api.v1.rpc.Help.Link(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(org.vdaas.vald.api.v1.rpc.Help.Link result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.description_ = description_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.url_ = url_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.vdaas.vald.api.v1.rpc.Help.Link) { + return mergeFrom((org.vdaas.vald.api.v1.rpc.Help.Link)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.vdaas.vald.api.v1.rpc.Help.Link other) { + if (other == org.vdaas.vald.api.v1.rpc.Help.Link.getDefaultInstance()) return this; + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getUrl().isEmpty()) { + url_ = other.url_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + url_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object description_ = ""; + /** + *
+       * Describes what the link offers.
+       * 
+ * + * string description = 1; + * @return The description. + */ + 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; + } + } + /** + *
+       * Describes what the link offers.
+       * 
+ * + * string description = 1; + * @return The bytes for description. + */ + 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; + } + } + /** + *
+       * Describes what the link offers.
+       * 
+ * + * string description = 1; + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + description_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * Describes what the link offers.
+       * 
+ * + * string description = 1; + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * Describes what the link offers.
+       * 
+ * + * string description = 1; + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + description_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object url_ = ""; + /** + *
+       * The URL of the link.
+       * 
+ * + * string url = 2; + * @return The url. + */ + public java.lang.String getUrl() { + java.lang.Object ref = url_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + url_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * The URL of the link.
+       * 
+ * + * string url = 2; + * @return The bytes for url. + */ + public com.google.protobuf.ByteString + getUrlBytes() { + java.lang.Object ref = url_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + url_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * The URL of the link.
+       * 
+ * + * string url = 2; + * @param value The url to set. + * @return This builder for chaining. + */ + public Builder setUrl( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + url_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * The URL of the link.
+       * 
+ * + * string url = 2; + * @return This builder for chaining. + */ + public Builder clearUrl() { + url_ = getDefaultInstance().getUrl(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+       * The URL of the link.
+       * 
+ * + * string url = 2; + * @param value The bytes for url to set. + * @return This builder for chaining. + */ + public Builder setUrlBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + url_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:rpc.v1.Help.Link) + } + + // @@protoc_insertion_point(class_scope:rpc.v1.Help.Link) + private static final org.vdaas.vald.api.v1.rpc.Help.Link DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.vdaas.vald.api.v1.rpc.Help.Link(); + } + + public static org.vdaas.vald.api.v1.rpc.Help.Link getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Link parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public org.vdaas.vald.api.v1.rpc.Help.Link getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public static final int LINKS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private java.util.List links_; + /** + *
+   * URL(s) pointing to additional information on handling the current error.
+   * 
+ * + * repeated .rpc.v1.Help.Link links = 1; + */ + @java.lang.Override + public java.util.List getLinksList() { + return links_; + } + /** + *
+   * URL(s) pointing to additional information on handling the current error.
+   * 
+ * + * repeated .rpc.v1.Help.Link links = 1; + */ + @java.lang.Override + public java.util.List + getLinksOrBuilderList() { + return links_; + } + /** + *
+   * URL(s) pointing to additional information on handling the current error.
+   * 
+ * + * repeated .rpc.v1.Help.Link links = 1; + */ + @java.lang.Override + public int getLinksCount() { + return links_.size(); + } + /** + *
+   * URL(s) pointing to additional information on handling the current error.
+   * 
+ * + * repeated .rpc.v1.Help.Link links = 1; + */ + @java.lang.Override + public org.vdaas.vald.api.v1.rpc.Help.Link getLinks(int index) { + return links_.get(index); + } + /** + *
+   * URL(s) pointing to additional information on handling the current error.
+   * 
+ * + * repeated .rpc.v1.Help.Link links = 1; + */ + @java.lang.Override + public org.vdaas.vald.api.v1.rpc.Help.LinkOrBuilder getLinksOrBuilder( + int index) { + return links_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < links_.size(); i++) { + output.writeMessage(1, links_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < links_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, links_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.vdaas.vald.api.v1.rpc.Help)) { + return super.equals(obj); + } + org.vdaas.vald.api.v1.rpc.Help other = (org.vdaas.vald.api.v1.rpc.Help) obj; + + if (!getLinksList() + .equals(other.getLinksList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getLinksCount() > 0) { + hash = (37 * hash) + LINKS_FIELD_NUMBER; + hash = (53 * hash) + getLinksList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.vdaas.vald.api.v1.rpc.Help parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.vdaas.vald.api.v1.rpc.Help parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.vdaas.vald.api.v1.rpc.Help parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.vdaas.vald.api.v1.rpc.Help parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.vdaas.vald.api.v1.rpc.Help parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.vdaas.vald.api.v1.rpc.Help parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.vdaas.vald.api.v1.rpc.Help parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.vdaas.vald.api.v1.rpc.Help parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static org.vdaas.vald.api.v1.rpc.Help parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static org.vdaas.vald.api.v1.rpc.Help parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.vdaas.vald.api.v1.rpc.Help parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.vdaas.vald.api.v1.rpc.Help parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.vdaas.vald.api.v1.rpc.Help prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Provides links to documentation or for performing an out of band action.
+   *
+   * For example, if a quota check failed with an error indicating the calling
+   * project hasn't enabled the accessed service, this can contain a URL pointing
+   * directly to the right place in the developer console to flip the bit.
+   * 
+ * + * Protobuf type {@code rpc.v1.Help} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:rpc.v1.Help) + org.vdaas.vald.api.v1.rpc.HelpOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.vdaas.vald.api.v1.rpc.ErrorDetailsProto.internal_static_rpc_v1_Help_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.vdaas.vald.api.v1.rpc.ErrorDetailsProto.internal_static_rpc_v1_Help_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.vdaas.vald.api.v1.rpc.Help.class, org.vdaas.vald.api.v1.rpc.Help.Builder.class); + } + + // Construct using org.vdaas.vald.api.v1.rpc.Help.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (linksBuilder_ == null) { + links_ = java.util.Collections.emptyList(); + } else { + links_ = null; + linksBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.vdaas.vald.api.v1.rpc.ErrorDetailsProto.internal_static_rpc_v1_Help_descriptor; + } + + @java.lang.Override + public org.vdaas.vald.api.v1.rpc.Help getDefaultInstanceForType() { + return org.vdaas.vald.api.v1.rpc.Help.getDefaultInstance(); + } + + @java.lang.Override + public org.vdaas.vald.api.v1.rpc.Help build() { + org.vdaas.vald.api.v1.rpc.Help result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.vdaas.vald.api.v1.rpc.Help buildPartial() { + org.vdaas.vald.api.v1.rpc.Help result = new org.vdaas.vald.api.v1.rpc.Help(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(org.vdaas.vald.api.v1.rpc.Help result) { + if (linksBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + links_ = java.util.Collections.unmodifiableList(links_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.links_ = links_; + } else { + result.links_ = linksBuilder_.build(); + } + } + + private void buildPartial0(org.vdaas.vald.api.v1.rpc.Help result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.vdaas.vald.api.v1.rpc.Help) { + return mergeFrom((org.vdaas.vald.api.v1.rpc.Help)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.vdaas.vald.api.v1.rpc.Help other) { + if (other == org.vdaas.vald.api.v1.rpc.Help.getDefaultInstance()) return this; + if (linksBuilder_ == null) { + if (!other.links_.isEmpty()) { + if (links_.isEmpty()) { + links_ = other.links_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureLinksIsMutable(); + links_.addAll(other.links_); + } + onChanged(); + } + } else { + if (!other.links_.isEmpty()) { + if (linksBuilder_.isEmpty()) { + linksBuilder_.dispose(); + linksBuilder_ = null; + links_ = other.links_; + bitField0_ = (bitField0_ & ~0x00000001); + linksBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getLinksFieldBuilder() : null; + } else { + linksBuilder_.addAllMessages(other.links_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + org.vdaas.vald.api.v1.rpc.Help.Link m = + input.readMessage( + org.vdaas.vald.api.v1.rpc.Help.Link.parser(), + extensionRegistry); + if (linksBuilder_ == null) { + ensureLinksIsMutable(); + links_.add(m); + } else { + linksBuilder_.addMessage(m); + } + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.util.List links_ = + java.util.Collections.emptyList(); + private void ensureLinksIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + links_ = new java.util.ArrayList(links_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + org.vdaas.vald.api.v1.rpc.Help.Link, org.vdaas.vald.api.v1.rpc.Help.Link.Builder, org.vdaas.vald.api.v1.rpc.Help.LinkOrBuilder> linksBuilder_; + + /** + *
+     * URL(s) pointing to additional information on handling the current error.
+     * 
+ * + * repeated .rpc.v1.Help.Link links = 1; + */ + public java.util.List getLinksList() { + if (linksBuilder_ == null) { + return java.util.Collections.unmodifiableList(links_); + } else { + return linksBuilder_.getMessageList(); + } + } + /** + *
+     * URL(s) pointing to additional information on handling the current error.
+     * 
+ * + * repeated .rpc.v1.Help.Link links = 1; + */ + public int getLinksCount() { + if (linksBuilder_ == null) { + return links_.size(); + } else { + return linksBuilder_.getCount(); + } + } + /** + *
+     * URL(s) pointing to additional information on handling the current error.
+     * 
+ * + * repeated .rpc.v1.Help.Link links = 1; + */ + public org.vdaas.vald.api.v1.rpc.Help.Link getLinks(int index) { + if (linksBuilder_ == null) { + return links_.get(index); + } else { + return linksBuilder_.getMessage(index); + } + } + /** + *
+     * URL(s) pointing to additional information on handling the current error.
+     * 
+ * + * repeated .rpc.v1.Help.Link links = 1; + */ + public Builder setLinks( + int index, org.vdaas.vald.api.v1.rpc.Help.Link value) { + if (linksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLinksIsMutable(); + links_.set(index, value); + onChanged(); + } else { + linksBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * URL(s) pointing to additional information on handling the current error.
+     * 
+ * + * repeated .rpc.v1.Help.Link links = 1; + */ + public Builder setLinks( + int index, org.vdaas.vald.api.v1.rpc.Help.Link.Builder builderForValue) { + if (linksBuilder_ == null) { + ensureLinksIsMutable(); + links_.set(index, builderForValue.build()); + onChanged(); + } else { + linksBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * URL(s) pointing to additional information on handling the current error.
+     * 
+ * + * repeated .rpc.v1.Help.Link links = 1; + */ + public Builder addLinks(org.vdaas.vald.api.v1.rpc.Help.Link value) { + if (linksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLinksIsMutable(); + links_.add(value); + onChanged(); + } else { + linksBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * URL(s) pointing to additional information on handling the current error.
+     * 
+ * + * repeated .rpc.v1.Help.Link links = 1; + */ + public Builder addLinks( + int index, org.vdaas.vald.api.v1.rpc.Help.Link value) { + if (linksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLinksIsMutable(); + links_.add(index, value); + onChanged(); + } else { + linksBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * URL(s) pointing to additional information on handling the current error.
+     * 
+ * + * repeated .rpc.v1.Help.Link links = 1; + */ + public Builder addLinks( + org.vdaas.vald.api.v1.rpc.Help.Link.Builder builderForValue) { + if (linksBuilder_ == null) { + ensureLinksIsMutable(); + links_.add(builderForValue.build()); + onChanged(); + } else { + linksBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * URL(s) pointing to additional information on handling the current error.
+     * 
+ * + * repeated .rpc.v1.Help.Link links = 1; + */ + public Builder addLinks( + int index, org.vdaas.vald.api.v1.rpc.Help.Link.Builder builderForValue) { + if (linksBuilder_ == null) { + ensureLinksIsMutable(); + links_.add(index, builderForValue.build()); + onChanged(); + } else { + linksBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * URL(s) pointing to additional information on handling the current error.
+     * 
+ * + * repeated .rpc.v1.Help.Link links = 1; + */ + public Builder addAllLinks( + java.lang.Iterable values) { + if (linksBuilder_ == null) { + ensureLinksIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, links_); + onChanged(); + } else { + linksBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * URL(s) pointing to additional information on handling the current error.
+     * 
+ * + * repeated .rpc.v1.Help.Link links = 1; + */ + public Builder clearLinks() { + if (linksBuilder_ == null) { + links_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + linksBuilder_.clear(); + } + return this; + } + /** + *
+     * URL(s) pointing to additional information on handling the current error.
+     * 
+ * + * repeated .rpc.v1.Help.Link links = 1; + */ + public Builder removeLinks(int index) { + if (linksBuilder_ == null) { + ensureLinksIsMutable(); + links_.remove(index); + onChanged(); + } else { + linksBuilder_.remove(index); + } + return this; + } + /** + *
+     * URL(s) pointing to additional information on handling the current error.
+     * 
+ * + * repeated .rpc.v1.Help.Link links = 1; + */ + public org.vdaas.vald.api.v1.rpc.Help.Link.Builder getLinksBuilder( + int index) { + return getLinksFieldBuilder().getBuilder(index); + } + /** + *
+     * URL(s) pointing to additional information on handling the current error.
+     * 
+ * + * repeated .rpc.v1.Help.Link links = 1; + */ + public org.vdaas.vald.api.v1.rpc.Help.LinkOrBuilder getLinksOrBuilder( + int index) { + if (linksBuilder_ == null) { + return links_.get(index); } else { + return linksBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * URL(s) pointing to additional information on handling the current error.
+     * 
+ * + * repeated .rpc.v1.Help.Link links = 1; + */ + public java.util.List + getLinksOrBuilderList() { + if (linksBuilder_ != null) { + return linksBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(links_); + } + } + /** + *
+     * URL(s) pointing to additional information on handling the current error.
+     * 
+ * + * repeated .rpc.v1.Help.Link links = 1; + */ + public org.vdaas.vald.api.v1.rpc.Help.Link.Builder addLinksBuilder() { + return getLinksFieldBuilder().addBuilder( + org.vdaas.vald.api.v1.rpc.Help.Link.getDefaultInstance()); + } + /** + *
+     * URL(s) pointing to additional information on handling the current error.
+     * 
+ * + * repeated .rpc.v1.Help.Link links = 1; + */ + public org.vdaas.vald.api.v1.rpc.Help.Link.Builder addLinksBuilder( + int index) { + return getLinksFieldBuilder().addBuilder( + index, org.vdaas.vald.api.v1.rpc.Help.Link.getDefaultInstance()); + } + /** + *
+     * URL(s) pointing to additional information on handling the current error.
+     * 
+ * + * repeated .rpc.v1.Help.Link links = 1; + */ + public java.util.List + getLinksBuilderList() { + return getLinksFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + org.vdaas.vald.api.v1.rpc.Help.Link, org.vdaas.vald.api.v1.rpc.Help.Link.Builder, org.vdaas.vald.api.v1.rpc.Help.LinkOrBuilder> + getLinksFieldBuilder() { + if (linksBuilder_ == null) { + linksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + org.vdaas.vald.api.v1.rpc.Help.Link, org.vdaas.vald.api.v1.rpc.Help.Link.Builder, org.vdaas.vald.api.v1.rpc.Help.LinkOrBuilder>( + links_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + links_ = null; + } + return linksBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:rpc.v1.Help) + } + + // @@protoc_insertion_point(class_scope:rpc.v1.Help) + private static final org.vdaas.vald.api.v1.rpc.Help DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.vdaas.vald.api.v1.rpc.Help(); + } + + public static org.vdaas.vald.api.v1.rpc.Help getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Help parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public org.vdaas.vald.api.v1.rpc.Help getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/src/main/java/org/vdaas/vald/api/v1/rpc/HelpOrBuilder.java b/src/main/java/org/vdaas/vald/api/v1/rpc/HelpOrBuilder.java new file mode 100644 index 00000000..ce1dcbc4 --- /dev/null +++ b/src/main/java/org/vdaas/vald/api/v1/rpc/HelpOrBuilder.java @@ -0,0 +1,53 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: apis/proto/v1/rpc/error_details.proto + +package org.vdaas.vald.api.v1.rpc; + +public interface HelpOrBuilder extends + // @@protoc_insertion_point(interface_extends:rpc.v1.Help) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * URL(s) pointing to additional information on handling the current error.
+   * 
+ * + * repeated .rpc.v1.Help.Link links = 1; + */ + java.util.List + getLinksList(); + /** + *
+   * URL(s) pointing to additional information on handling the current error.
+   * 
+ * + * repeated .rpc.v1.Help.Link links = 1; + */ + org.vdaas.vald.api.v1.rpc.Help.Link getLinks(int index); + /** + *
+   * URL(s) pointing to additional information on handling the current error.
+   * 
+ * + * repeated .rpc.v1.Help.Link links = 1; + */ + int getLinksCount(); + /** + *
+   * URL(s) pointing to additional information on handling the current error.
+   * 
+ * + * repeated .rpc.v1.Help.Link links = 1; + */ + java.util.List + getLinksOrBuilderList(); + /** + *
+   * URL(s) pointing to additional information on handling the current error.
+   * 
+ * + * repeated .rpc.v1.Help.Link links = 1; + */ + org.vdaas.vald.api.v1.rpc.Help.LinkOrBuilder getLinksOrBuilder( + int index); +} diff --git a/src/main/java/org/vdaas/vald/api/v1/rpc/LocalizedMessage.java b/src/main/java/org/vdaas/vald/api/v1/rpc/LocalizedMessage.java new file mode 100644 index 00000000..f41b900e --- /dev/null +++ b/src/main/java/org/vdaas/vald/api/v1/rpc/LocalizedMessage.java @@ -0,0 +1,757 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: apis/proto/v1/rpc/error_details.proto + +package org.vdaas.vald.api.v1.rpc; + +/** + *
+ * Provides a localized error message that is safe to return to the user
+ * which can be attached to an RPC error.
+ * 
+ * + * Protobuf type {@code rpc.v1.LocalizedMessage} + */ +public final class LocalizedMessage extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:rpc.v1.LocalizedMessage) + LocalizedMessageOrBuilder { +private static final long serialVersionUID = 0L; + // Use LocalizedMessage.newBuilder() to construct. + private LocalizedMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private LocalizedMessage() { + locale_ = ""; + message_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new LocalizedMessage(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.vdaas.vald.api.v1.rpc.ErrorDetailsProto.internal_static_rpc_v1_LocalizedMessage_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.vdaas.vald.api.v1.rpc.ErrorDetailsProto.internal_static_rpc_v1_LocalizedMessage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.vdaas.vald.api.v1.rpc.LocalizedMessage.class, org.vdaas.vald.api.v1.rpc.LocalizedMessage.Builder.class); + } + + public static final int LOCALE_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object locale_ = ""; + /** + *
+   * The locale used following the specification defined at
+   * https://www.rfc-editor.org/rfc/bcp/bcp47.txt.
+   * Examples are: "en-US", "fr-CH", "es-MX"
+   * 
+ * + * string locale = 1; + * @return The locale. + */ + @java.lang.Override + public java.lang.String getLocale() { + java.lang.Object ref = locale_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + locale_ = s; + return s; + } + } + /** + *
+   * The locale used following the specification defined at
+   * https://www.rfc-editor.org/rfc/bcp/bcp47.txt.
+   * Examples are: "en-US", "fr-CH", "es-MX"
+   * 
+ * + * string locale = 1; + * @return The bytes for locale. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getLocaleBytes() { + java.lang.Object ref = locale_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + locale_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MESSAGE_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object message_ = ""; + /** + *
+   * The localized error message in the above locale.
+   * 
+ * + * string message = 2; + * @return The message. + */ + @java.lang.Override + public java.lang.String getMessage() { + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } + } + /** + *
+   * The localized error message in the above locale.
+   * 
+ * + * string message = 2; + * @return The bytes for message. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getMessageBytes() { + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + message_ = 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(locale_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, locale_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, message_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(locale_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, locale_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, message_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.vdaas.vald.api.v1.rpc.LocalizedMessage)) { + return super.equals(obj); + } + org.vdaas.vald.api.v1.rpc.LocalizedMessage other = (org.vdaas.vald.api.v1.rpc.LocalizedMessage) obj; + + if (!getLocale() + .equals(other.getLocale())) return false; + if (!getMessage() + .equals(other.getMessage())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + LOCALE_FIELD_NUMBER; + hash = (53 * hash) + getLocale().hashCode(); + hash = (37 * hash) + MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getMessage().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.vdaas.vald.api.v1.rpc.LocalizedMessage parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.vdaas.vald.api.v1.rpc.LocalizedMessage parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.vdaas.vald.api.v1.rpc.LocalizedMessage parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.vdaas.vald.api.v1.rpc.LocalizedMessage parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.vdaas.vald.api.v1.rpc.LocalizedMessage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.vdaas.vald.api.v1.rpc.LocalizedMessage parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.vdaas.vald.api.v1.rpc.LocalizedMessage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.vdaas.vald.api.v1.rpc.LocalizedMessage parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static org.vdaas.vald.api.v1.rpc.LocalizedMessage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static org.vdaas.vald.api.v1.rpc.LocalizedMessage parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.vdaas.vald.api.v1.rpc.LocalizedMessage parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.vdaas.vald.api.v1.rpc.LocalizedMessage parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.vdaas.vald.api.v1.rpc.LocalizedMessage prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Provides a localized error message that is safe to return to the user
+   * which can be attached to an RPC error.
+   * 
+ * + * Protobuf type {@code rpc.v1.LocalizedMessage} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:rpc.v1.LocalizedMessage) + org.vdaas.vald.api.v1.rpc.LocalizedMessageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.vdaas.vald.api.v1.rpc.ErrorDetailsProto.internal_static_rpc_v1_LocalizedMessage_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.vdaas.vald.api.v1.rpc.ErrorDetailsProto.internal_static_rpc_v1_LocalizedMessage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.vdaas.vald.api.v1.rpc.LocalizedMessage.class, org.vdaas.vald.api.v1.rpc.LocalizedMessage.Builder.class); + } + + // Construct using org.vdaas.vald.api.v1.rpc.LocalizedMessage.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + locale_ = ""; + message_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.vdaas.vald.api.v1.rpc.ErrorDetailsProto.internal_static_rpc_v1_LocalizedMessage_descriptor; + } + + @java.lang.Override + public org.vdaas.vald.api.v1.rpc.LocalizedMessage getDefaultInstanceForType() { + return org.vdaas.vald.api.v1.rpc.LocalizedMessage.getDefaultInstance(); + } + + @java.lang.Override + public org.vdaas.vald.api.v1.rpc.LocalizedMessage build() { + org.vdaas.vald.api.v1.rpc.LocalizedMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.vdaas.vald.api.v1.rpc.LocalizedMessage buildPartial() { + org.vdaas.vald.api.v1.rpc.LocalizedMessage result = new org.vdaas.vald.api.v1.rpc.LocalizedMessage(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(org.vdaas.vald.api.v1.rpc.LocalizedMessage result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.locale_ = locale_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.message_ = message_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.vdaas.vald.api.v1.rpc.LocalizedMessage) { + return mergeFrom((org.vdaas.vald.api.v1.rpc.LocalizedMessage)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.vdaas.vald.api.v1.rpc.LocalizedMessage other) { + if (other == org.vdaas.vald.api.v1.rpc.LocalizedMessage.getDefaultInstance()) return this; + if (!other.getLocale().isEmpty()) { + locale_ = other.locale_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getMessage().isEmpty()) { + message_ = other.message_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + locale_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + message_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object locale_ = ""; + /** + *
+     * The locale used following the specification defined at
+     * https://www.rfc-editor.org/rfc/bcp/bcp47.txt.
+     * Examples are: "en-US", "fr-CH", "es-MX"
+     * 
+ * + * string locale = 1; + * @return The locale. + */ + public java.lang.String getLocale() { + java.lang.Object ref = locale_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + locale_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The locale used following the specification defined at
+     * https://www.rfc-editor.org/rfc/bcp/bcp47.txt.
+     * Examples are: "en-US", "fr-CH", "es-MX"
+     * 
+ * + * string locale = 1; + * @return The bytes for locale. + */ + public com.google.protobuf.ByteString + getLocaleBytes() { + java.lang.Object ref = locale_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + locale_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The locale used following the specification defined at
+     * https://www.rfc-editor.org/rfc/bcp/bcp47.txt.
+     * Examples are: "en-US", "fr-CH", "es-MX"
+     * 
+ * + * string locale = 1; + * @param value The locale to set. + * @return This builder for chaining. + */ + public Builder setLocale( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + locale_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * The locale used following the specification defined at
+     * https://www.rfc-editor.org/rfc/bcp/bcp47.txt.
+     * Examples are: "en-US", "fr-CH", "es-MX"
+     * 
+ * + * string locale = 1; + * @return This builder for chaining. + */ + public Builder clearLocale() { + locale_ = getDefaultInstance().getLocale(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * The locale used following the specification defined at
+     * https://www.rfc-editor.org/rfc/bcp/bcp47.txt.
+     * Examples are: "en-US", "fr-CH", "es-MX"
+     * 
+ * + * string locale = 1; + * @param value The bytes for locale to set. + * @return This builder for chaining. + */ + public Builder setLocaleBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + locale_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object message_ = ""; + /** + *
+     * The localized error message in the above locale.
+     * 
+ * + * string message = 2; + * @return The message. + */ + public java.lang.String getMessage() { + java.lang.Object ref = message_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The localized error message in the above locale.
+     * 
+ * + * string message = 2; + * @return The bytes for message. + */ + public com.google.protobuf.ByteString + getMessageBytes() { + java.lang.Object ref = message_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The localized error message in the above locale.
+     * 
+ * + * string message = 2; + * @param value The message to set. + * @return This builder for chaining. + */ + public Builder setMessage( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + message_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * The localized error message in the above locale.
+     * 
+ * + * string message = 2; + * @return This builder for chaining. + */ + public Builder clearMessage() { + message_ = getDefaultInstance().getMessage(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+     * The localized error message in the above locale.
+     * 
+ * + * string message = 2; + * @param value The bytes for message to set. + * @return This builder for chaining. + */ + public Builder setMessageBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + message_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:rpc.v1.LocalizedMessage) + } + + // @@protoc_insertion_point(class_scope:rpc.v1.LocalizedMessage) + private static final org.vdaas.vald.api.v1.rpc.LocalizedMessage DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.vdaas.vald.api.v1.rpc.LocalizedMessage(); + } + + public static org.vdaas.vald.api.v1.rpc.LocalizedMessage getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LocalizedMessage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public org.vdaas.vald.api.v1.rpc.LocalizedMessage getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/src/main/java/org/vdaas/vald/api/v1/rpc/LocalizedMessageOrBuilder.java b/src/main/java/org/vdaas/vald/api/v1/rpc/LocalizedMessageOrBuilder.java new file mode 100644 index 00000000..e2f83ed1 --- /dev/null +++ b/src/main/java/org/vdaas/vald/api/v1/rpc/LocalizedMessageOrBuilder.java @@ -0,0 +1,53 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: apis/proto/v1/rpc/error_details.proto + +package org.vdaas.vald.api.v1.rpc; + +public interface LocalizedMessageOrBuilder extends + // @@protoc_insertion_point(interface_extends:rpc.v1.LocalizedMessage) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The locale used following the specification defined at
+   * https://www.rfc-editor.org/rfc/bcp/bcp47.txt.
+   * Examples are: "en-US", "fr-CH", "es-MX"
+   * 
+ * + * string locale = 1; + * @return The locale. + */ + java.lang.String getLocale(); + /** + *
+   * The locale used following the specification defined at
+   * https://www.rfc-editor.org/rfc/bcp/bcp47.txt.
+   * Examples are: "en-US", "fr-CH", "es-MX"
+   * 
+ * + * string locale = 1; + * @return The bytes for locale. + */ + com.google.protobuf.ByteString + getLocaleBytes(); + + /** + *
+   * The localized error message in the above locale.
+   * 
+ * + * string message = 2; + * @return The message. + */ + java.lang.String getMessage(); + /** + *
+   * The localized error message in the above locale.
+   * 
+ * + * string message = 2; + * @return The bytes for message. + */ + com.google.protobuf.ByteString + getMessageBytes(); +} diff --git a/src/main/java/org/vdaas/vald/api/v1/rpc/PreconditionFailure.java b/src/main/java/org/vdaas/vald/api/v1/rpc/PreconditionFailure.java new file mode 100644 index 00000000..dfa30fed --- /dev/null +++ b/src/main/java/org/vdaas/vald/api/v1/rpc/PreconditionFailure.java @@ -0,0 +1,1894 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: apis/proto/v1/rpc/error_details.proto + +package org.vdaas.vald.api.v1.rpc; + +/** + *
+ * Describes what preconditions have failed.
+ *
+ * For example, if an RPC failed because it required the Terms of Service to be
+ * acknowledged, it could list the terms of service violation in the
+ * PreconditionFailure message.
+ * 
+ * + * Protobuf type {@code rpc.v1.PreconditionFailure} + */ +public final class PreconditionFailure extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:rpc.v1.PreconditionFailure) + PreconditionFailureOrBuilder { +private static final long serialVersionUID = 0L; + // Use PreconditionFailure.newBuilder() to construct. + private PreconditionFailure(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private PreconditionFailure() { + violations_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new PreconditionFailure(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.vdaas.vald.api.v1.rpc.ErrorDetailsProto.internal_static_rpc_v1_PreconditionFailure_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.vdaas.vald.api.v1.rpc.ErrorDetailsProto.internal_static_rpc_v1_PreconditionFailure_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.vdaas.vald.api.v1.rpc.PreconditionFailure.class, org.vdaas.vald.api.v1.rpc.PreconditionFailure.Builder.class); + } + + public interface ViolationOrBuilder extends + // @@protoc_insertion_point(interface_extends:rpc.v1.PreconditionFailure.Violation) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * The type of PreconditionFailure. We recommend using a service-specific
+     * enum type to define the supported precondition violation subjects. For
+     * example, "TOS" for "Terms of Service violation".
+     * 
+ * + * string type = 1; + * @return The type. + */ + java.lang.String getType(); + /** + *
+     * The type of PreconditionFailure. We recommend using a service-specific
+     * enum type to define the supported precondition violation subjects. For
+     * example, "TOS" for "Terms of Service violation".
+     * 
+ * + * string type = 1; + * @return The bytes for type. + */ + com.google.protobuf.ByteString + getTypeBytes(); + + /** + *
+     * The subject, relative to the type, that failed.
+     * For example, "google.com/cloud" relative to the "TOS" type would indicate
+     * which terms of service is being referenced.
+     * 
+ * + * string subject = 2; + * @return The subject. + */ + java.lang.String getSubject(); + /** + *
+     * The subject, relative to the type, that failed.
+     * For example, "google.com/cloud" relative to the "TOS" type would indicate
+     * which terms of service is being referenced.
+     * 
+ * + * string subject = 2; + * @return The bytes for subject. + */ + com.google.protobuf.ByteString + getSubjectBytes(); + + /** + *
+     * A description of how the precondition failed. Developers can use this
+     * description to understand how to fix the failure.
+     *
+     * For example: "Terms of service not accepted".
+     * 
+ * + * string description = 3; + * @return The description. + */ + java.lang.String getDescription(); + /** + *
+     * A description of how the precondition failed. Developers can use this
+     * description to understand how to fix the failure.
+     *
+     * For example: "Terms of service not accepted".
+     * 
+ * + * string description = 3; + * @return The bytes for description. + */ + com.google.protobuf.ByteString + getDescriptionBytes(); + } + /** + *
+   * A message type used to describe a single precondition failure.
+   * 
+ * + * Protobuf type {@code rpc.v1.PreconditionFailure.Violation} + */ + public static final class Violation extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:rpc.v1.PreconditionFailure.Violation) + ViolationOrBuilder { + private static final long serialVersionUID = 0L; + // Use Violation.newBuilder() to construct. + private Violation(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Violation() { + type_ = ""; + subject_ = ""; + description_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Violation(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.vdaas.vald.api.v1.rpc.ErrorDetailsProto.internal_static_rpc_v1_PreconditionFailure_Violation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.vdaas.vald.api.v1.rpc.ErrorDetailsProto.internal_static_rpc_v1_PreconditionFailure_Violation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.vdaas.vald.api.v1.rpc.PreconditionFailure.Violation.class, org.vdaas.vald.api.v1.rpc.PreconditionFailure.Violation.Builder.class); + } + + public static final int TYPE_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object type_ = ""; + /** + *
+     * The type of PreconditionFailure. We recommend using a service-specific
+     * enum type to define the supported precondition violation subjects. For
+     * example, "TOS" for "Terms of Service violation".
+     * 
+ * + * string type = 1; + * @return The type. + */ + @java.lang.Override + 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; + } + } + /** + *
+     * The type of PreconditionFailure. We recommend using a service-specific
+     * enum type to define the supported precondition violation subjects. For
+     * example, "TOS" for "Terms of Service violation".
+     * 
+ * + * string type = 1; + * @return The bytes for type. + */ + @java.lang.Override + 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; + } + } + + public static final int SUBJECT_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object subject_ = ""; + /** + *
+     * The subject, relative to the type, that failed.
+     * For example, "google.com/cloud" relative to the "TOS" type would indicate
+     * which terms of service is being referenced.
+     * 
+ * + * string subject = 2; + * @return The subject. + */ + @java.lang.Override + public java.lang.String getSubject() { + java.lang.Object ref = subject_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + subject_ = s; + return s; + } + } + /** + *
+     * The subject, relative to the type, that failed.
+     * For example, "google.com/cloud" relative to the "TOS" type would indicate
+     * which terms of service is being referenced.
+     * 
+ * + * string subject = 2; + * @return The bytes for subject. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getSubjectBytes() { + java.lang.Object ref = subject_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + subject_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTION_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + /** + *
+     * A description of how the precondition failed. Developers can use this
+     * description to understand how to fix the failure.
+     *
+     * For example: "Terms of service not accepted".
+     * 
+ * + * string description = 3; + * @return The description. + */ + @java.lang.Override + 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; + } + } + /** + *
+     * A description of how the precondition failed. Developers can use this
+     * description to understand how to fix the failure.
+     *
+     * For example: "Terms of service not accepted".
+     * 
+ * + * string description = 3; + * @return The bytes for description. + */ + @java.lang.Override + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, type_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subject_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, subject_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, type_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subject_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, subject_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.vdaas.vald.api.v1.rpc.PreconditionFailure.Violation)) { + return super.equals(obj); + } + org.vdaas.vald.api.v1.rpc.PreconditionFailure.Violation other = (org.vdaas.vald.api.v1.rpc.PreconditionFailure.Violation) obj; + + if (!getType() + .equals(other.getType())) return false; + if (!getSubject() + .equals(other.getSubject())) return false; + if (!getDescription() + .equals(other.getDescription())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @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) + getType().hashCode(); + hash = (37 * hash) + SUBJECT_FIELD_NUMBER; + hash = (53 * hash) + getSubject().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.vdaas.vald.api.v1.rpc.PreconditionFailure.Violation parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.vdaas.vald.api.v1.rpc.PreconditionFailure.Violation parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.vdaas.vald.api.v1.rpc.PreconditionFailure.Violation parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.vdaas.vald.api.v1.rpc.PreconditionFailure.Violation parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.vdaas.vald.api.v1.rpc.PreconditionFailure.Violation parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.vdaas.vald.api.v1.rpc.PreconditionFailure.Violation parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.vdaas.vald.api.v1.rpc.PreconditionFailure.Violation parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.vdaas.vald.api.v1.rpc.PreconditionFailure.Violation parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static org.vdaas.vald.api.v1.rpc.PreconditionFailure.Violation parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static org.vdaas.vald.api.v1.rpc.PreconditionFailure.Violation parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.vdaas.vald.api.v1.rpc.PreconditionFailure.Violation parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.vdaas.vald.api.v1.rpc.PreconditionFailure.Violation parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.vdaas.vald.api.v1.rpc.PreconditionFailure.Violation prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new 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 message type used to describe a single precondition failure.
+     * 
+ * + * Protobuf type {@code rpc.v1.PreconditionFailure.Violation} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:rpc.v1.PreconditionFailure.Violation) + org.vdaas.vald.api.v1.rpc.PreconditionFailure.ViolationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.vdaas.vald.api.v1.rpc.ErrorDetailsProto.internal_static_rpc_v1_PreconditionFailure_Violation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.vdaas.vald.api.v1.rpc.ErrorDetailsProto.internal_static_rpc_v1_PreconditionFailure_Violation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.vdaas.vald.api.v1.rpc.PreconditionFailure.Violation.class, org.vdaas.vald.api.v1.rpc.PreconditionFailure.Violation.Builder.class); + } + + // Construct using org.vdaas.vald.api.v1.rpc.PreconditionFailure.Violation.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + type_ = ""; + subject_ = ""; + description_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.vdaas.vald.api.v1.rpc.ErrorDetailsProto.internal_static_rpc_v1_PreconditionFailure_Violation_descriptor; + } + + @java.lang.Override + public org.vdaas.vald.api.v1.rpc.PreconditionFailure.Violation getDefaultInstanceForType() { + return org.vdaas.vald.api.v1.rpc.PreconditionFailure.Violation.getDefaultInstance(); + } + + @java.lang.Override + public org.vdaas.vald.api.v1.rpc.PreconditionFailure.Violation build() { + org.vdaas.vald.api.v1.rpc.PreconditionFailure.Violation result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.vdaas.vald.api.v1.rpc.PreconditionFailure.Violation buildPartial() { + org.vdaas.vald.api.v1.rpc.PreconditionFailure.Violation result = new org.vdaas.vald.api.v1.rpc.PreconditionFailure.Violation(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(org.vdaas.vald.api.v1.rpc.PreconditionFailure.Violation result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.type_ = type_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.subject_ = subject_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.description_ = description_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.vdaas.vald.api.v1.rpc.PreconditionFailure.Violation) { + return mergeFrom((org.vdaas.vald.api.v1.rpc.PreconditionFailure.Violation)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.vdaas.vald.api.v1.rpc.PreconditionFailure.Violation other) { + if (other == org.vdaas.vald.api.v1.rpc.PreconditionFailure.Violation.getDefaultInstance()) return this; + if (!other.getType().isEmpty()) { + type_ = other.type_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getSubject().isEmpty()) { + subject_ = other.subject_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + type_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + subject_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object type_ = ""; + /** + *
+       * The type of PreconditionFailure. We recommend using a service-specific
+       * enum type to define the supported precondition violation subjects. For
+       * example, "TOS" for "Terms of Service violation".
+       * 
+ * + * string type = 1; + * @return The type. + */ + 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; + } + } + /** + *
+       * The type of PreconditionFailure. We recommend using a service-specific
+       * enum type to define the supported precondition violation subjects. For
+       * example, "TOS" for "Terms of Service violation".
+       * 
+ * + * string type = 1; + * @return The bytes for type. + */ + 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; + } + } + /** + *
+       * The type of PreconditionFailure. We recommend using a service-specific
+       * enum type to define the supported precondition violation subjects. For
+       * example, "TOS" for "Terms of Service violation".
+       * 
+ * + * string type = 1; + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + type_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * The type of PreconditionFailure. We recommend using a service-specific
+       * enum type to define the supported precondition violation subjects. For
+       * example, "TOS" for "Terms of Service violation".
+       * 
+ * + * string type = 1; + * @return This builder for chaining. + */ + public Builder clearType() { + type_ = getDefaultInstance().getType(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * The type of PreconditionFailure. We recommend using a service-specific
+       * enum type to define the supported precondition violation subjects. For
+       * example, "TOS" for "Terms of Service violation".
+       * 
+ * + * string type = 1; + * @param value The bytes for type to set. + * @return This builder for chaining. + */ + public Builder setTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + type_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object subject_ = ""; + /** + *
+       * The subject, relative to the type, that failed.
+       * For example, "google.com/cloud" relative to the "TOS" type would indicate
+       * which terms of service is being referenced.
+       * 
+ * + * string subject = 2; + * @return The subject. + */ + public java.lang.String getSubject() { + java.lang.Object ref = subject_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + subject_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * The subject, relative to the type, that failed.
+       * For example, "google.com/cloud" relative to the "TOS" type would indicate
+       * which terms of service is being referenced.
+       * 
+ * + * string subject = 2; + * @return The bytes for subject. + */ + public com.google.protobuf.ByteString + getSubjectBytes() { + java.lang.Object ref = subject_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + subject_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * The subject, relative to the type, that failed.
+       * For example, "google.com/cloud" relative to the "TOS" type would indicate
+       * which terms of service is being referenced.
+       * 
+ * + * string subject = 2; + * @param value The subject to set. + * @return This builder for chaining. + */ + public Builder setSubject( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + subject_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * The subject, relative to the type, that failed.
+       * For example, "google.com/cloud" relative to the "TOS" type would indicate
+       * which terms of service is being referenced.
+       * 
+ * + * string subject = 2; + * @return This builder for chaining. + */ + public Builder clearSubject() { + subject_ = getDefaultInstance().getSubject(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+       * The subject, relative to the type, that failed.
+       * For example, "google.com/cloud" relative to the "TOS" type would indicate
+       * which terms of service is being referenced.
+       * 
+ * + * string subject = 2; + * @param value The bytes for subject to set. + * @return This builder for chaining. + */ + public Builder setSubjectBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + subject_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + /** + *
+       * A description of how the precondition failed. Developers can use this
+       * description to understand how to fix the failure.
+       *
+       * For example: "Terms of service not accepted".
+       * 
+ * + * string description = 3; + * @return The description. + */ + 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; + } + } + /** + *
+       * A description of how the precondition failed. Developers can use this
+       * description to understand how to fix the failure.
+       *
+       * For example: "Terms of service not accepted".
+       * 
+ * + * string description = 3; + * @return The bytes for description. + */ + 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; + } + } + /** + *
+       * A description of how the precondition failed. Developers can use this
+       * description to understand how to fix the failure.
+       *
+       * For example: "Terms of service not accepted".
+       * 
+ * + * string description = 3; + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + description_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+       * A description of how the precondition failed. Developers can use this
+       * description to understand how to fix the failure.
+       *
+       * For example: "Terms of service not accepted".
+       * 
+ * + * string description = 3; + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+       * A description of how the precondition failed. Developers can use this
+       * description to understand how to fix the failure.
+       *
+       * For example: "Terms of service not accepted".
+       * 
+ * + * string description = 3; + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + description_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:rpc.v1.PreconditionFailure.Violation) + } + + // @@protoc_insertion_point(class_scope:rpc.v1.PreconditionFailure.Violation) + private static final org.vdaas.vald.api.v1.rpc.PreconditionFailure.Violation DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.vdaas.vald.api.v1.rpc.PreconditionFailure.Violation(); + } + + public static org.vdaas.vald.api.v1.rpc.PreconditionFailure.Violation getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Violation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public org.vdaas.vald.api.v1.rpc.PreconditionFailure.Violation getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public static final int VIOLATIONS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private java.util.List violations_; + /** + *
+   * Describes all precondition violations.
+   * 
+ * + * repeated .rpc.v1.PreconditionFailure.Violation violations = 1; + */ + @java.lang.Override + public java.util.List getViolationsList() { + return violations_; + } + /** + *
+   * Describes all precondition violations.
+   * 
+ * + * repeated .rpc.v1.PreconditionFailure.Violation violations = 1; + */ + @java.lang.Override + public java.util.List + getViolationsOrBuilderList() { + return violations_; + } + /** + *
+   * Describes all precondition violations.
+   * 
+ * + * repeated .rpc.v1.PreconditionFailure.Violation violations = 1; + */ + @java.lang.Override + public int getViolationsCount() { + return violations_.size(); + } + /** + *
+   * Describes all precondition violations.
+   * 
+ * + * repeated .rpc.v1.PreconditionFailure.Violation violations = 1; + */ + @java.lang.Override + public org.vdaas.vald.api.v1.rpc.PreconditionFailure.Violation getViolations(int index) { + return violations_.get(index); + } + /** + *
+   * Describes all precondition violations.
+   * 
+ * + * repeated .rpc.v1.PreconditionFailure.Violation violations = 1; + */ + @java.lang.Override + public org.vdaas.vald.api.v1.rpc.PreconditionFailure.ViolationOrBuilder getViolationsOrBuilder( + int index) { + return violations_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < violations_.size(); i++) { + output.writeMessage(1, violations_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < violations_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, violations_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.vdaas.vald.api.v1.rpc.PreconditionFailure)) { + return super.equals(obj); + } + org.vdaas.vald.api.v1.rpc.PreconditionFailure other = (org.vdaas.vald.api.v1.rpc.PreconditionFailure) obj; + + if (!getViolationsList() + .equals(other.getViolationsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getViolationsCount() > 0) { + hash = (37 * hash) + VIOLATIONS_FIELD_NUMBER; + hash = (53 * hash) + getViolationsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.vdaas.vald.api.v1.rpc.PreconditionFailure parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.vdaas.vald.api.v1.rpc.PreconditionFailure parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.vdaas.vald.api.v1.rpc.PreconditionFailure parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.vdaas.vald.api.v1.rpc.PreconditionFailure parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.vdaas.vald.api.v1.rpc.PreconditionFailure parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.vdaas.vald.api.v1.rpc.PreconditionFailure parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.vdaas.vald.api.v1.rpc.PreconditionFailure parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.vdaas.vald.api.v1.rpc.PreconditionFailure parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static org.vdaas.vald.api.v1.rpc.PreconditionFailure parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static org.vdaas.vald.api.v1.rpc.PreconditionFailure parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.vdaas.vald.api.v1.rpc.PreconditionFailure parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.vdaas.vald.api.v1.rpc.PreconditionFailure parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.vdaas.vald.api.v1.rpc.PreconditionFailure prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new 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 what preconditions have failed.
+   *
+   * For example, if an RPC failed because it required the Terms of Service to be
+   * acknowledged, it could list the terms of service violation in the
+   * PreconditionFailure message.
+   * 
+ * + * Protobuf type {@code rpc.v1.PreconditionFailure} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:rpc.v1.PreconditionFailure) + org.vdaas.vald.api.v1.rpc.PreconditionFailureOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.vdaas.vald.api.v1.rpc.ErrorDetailsProto.internal_static_rpc_v1_PreconditionFailure_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.vdaas.vald.api.v1.rpc.ErrorDetailsProto.internal_static_rpc_v1_PreconditionFailure_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.vdaas.vald.api.v1.rpc.PreconditionFailure.class, org.vdaas.vald.api.v1.rpc.PreconditionFailure.Builder.class); + } + + // Construct using org.vdaas.vald.api.v1.rpc.PreconditionFailure.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (violationsBuilder_ == null) { + violations_ = java.util.Collections.emptyList(); + } else { + violations_ = null; + violationsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.vdaas.vald.api.v1.rpc.ErrorDetailsProto.internal_static_rpc_v1_PreconditionFailure_descriptor; + } + + @java.lang.Override + public org.vdaas.vald.api.v1.rpc.PreconditionFailure getDefaultInstanceForType() { + return org.vdaas.vald.api.v1.rpc.PreconditionFailure.getDefaultInstance(); + } + + @java.lang.Override + public org.vdaas.vald.api.v1.rpc.PreconditionFailure build() { + org.vdaas.vald.api.v1.rpc.PreconditionFailure result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.vdaas.vald.api.v1.rpc.PreconditionFailure buildPartial() { + org.vdaas.vald.api.v1.rpc.PreconditionFailure result = new org.vdaas.vald.api.v1.rpc.PreconditionFailure(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(org.vdaas.vald.api.v1.rpc.PreconditionFailure result) { + if (violationsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + violations_ = java.util.Collections.unmodifiableList(violations_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.violations_ = violations_; + } else { + result.violations_ = violationsBuilder_.build(); + } + } + + private void buildPartial0(org.vdaas.vald.api.v1.rpc.PreconditionFailure result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.vdaas.vald.api.v1.rpc.PreconditionFailure) { + return mergeFrom((org.vdaas.vald.api.v1.rpc.PreconditionFailure)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.vdaas.vald.api.v1.rpc.PreconditionFailure other) { + if (other == org.vdaas.vald.api.v1.rpc.PreconditionFailure.getDefaultInstance()) return this; + if (violationsBuilder_ == null) { + if (!other.violations_.isEmpty()) { + if (violations_.isEmpty()) { + violations_ = other.violations_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureViolationsIsMutable(); + violations_.addAll(other.violations_); + } + onChanged(); + } + } else { + if (!other.violations_.isEmpty()) { + if (violationsBuilder_.isEmpty()) { + violationsBuilder_.dispose(); + violationsBuilder_ = null; + violations_ = other.violations_; + bitField0_ = (bitField0_ & ~0x00000001); + violationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getViolationsFieldBuilder() : null; + } else { + violationsBuilder_.addAllMessages(other.violations_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + org.vdaas.vald.api.v1.rpc.PreconditionFailure.Violation m = + input.readMessage( + org.vdaas.vald.api.v1.rpc.PreconditionFailure.Violation.parser(), + extensionRegistry); + if (violationsBuilder_ == null) { + ensureViolationsIsMutable(); + violations_.add(m); + } else { + violationsBuilder_.addMessage(m); + } + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.util.List violations_ = + java.util.Collections.emptyList(); + private void ensureViolationsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + violations_ = new java.util.ArrayList(violations_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + org.vdaas.vald.api.v1.rpc.PreconditionFailure.Violation, org.vdaas.vald.api.v1.rpc.PreconditionFailure.Violation.Builder, org.vdaas.vald.api.v1.rpc.PreconditionFailure.ViolationOrBuilder> violationsBuilder_; + + /** + *
+     * Describes all precondition violations.
+     * 
+ * + * repeated .rpc.v1.PreconditionFailure.Violation violations = 1; + */ + public java.util.List getViolationsList() { + if (violationsBuilder_ == null) { + return java.util.Collections.unmodifiableList(violations_); + } else { + return violationsBuilder_.getMessageList(); + } + } + /** + *
+     * Describes all precondition violations.
+     * 
+ * + * repeated .rpc.v1.PreconditionFailure.Violation violations = 1; + */ + public int getViolationsCount() { + if (violationsBuilder_ == null) { + return violations_.size(); + } else { + return violationsBuilder_.getCount(); + } + } + /** + *
+     * Describes all precondition violations.
+     * 
+ * + * repeated .rpc.v1.PreconditionFailure.Violation violations = 1; + */ + public org.vdaas.vald.api.v1.rpc.PreconditionFailure.Violation getViolations(int index) { + if (violationsBuilder_ == null) { + return violations_.get(index); + } else { + return violationsBuilder_.getMessage(index); + } + } + /** + *
+     * Describes all precondition violations.
+     * 
+ * + * repeated .rpc.v1.PreconditionFailure.Violation violations = 1; + */ + public Builder setViolations( + int index, org.vdaas.vald.api.v1.rpc.PreconditionFailure.Violation value) { + if (violationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureViolationsIsMutable(); + violations_.set(index, value); + onChanged(); + } else { + violationsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * Describes all precondition violations.
+     * 
+ * + * repeated .rpc.v1.PreconditionFailure.Violation violations = 1; + */ + public Builder setViolations( + int index, org.vdaas.vald.api.v1.rpc.PreconditionFailure.Violation.Builder builderForValue) { + if (violationsBuilder_ == null) { + ensureViolationsIsMutable(); + violations_.set(index, builderForValue.build()); + onChanged(); + } else { + violationsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Describes all precondition violations.
+     * 
+ * + * repeated .rpc.v1.PreconditionFailure.Violation violations = 1; + */ + public Builder addViolations(org.vdaas.vald.api.v1.rpc.PreconditionFailure.Violation value) { + if (violationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureViolationsIsMutable(); + violations_.add(value); + onChanged(); + } else { + violationsBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * Describes all precondition violations.
+     * 
+ * + * repeated .rpc.v1.PreconditionFailure.Violation violations = 1; + */ + public Builder addViolations( + int index, org.vdaas.vald.api.v1.rpc.PreconditionFailure.Violation value) { + if (violationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureViolationsIsMutable(); + violations_.add(index, value); + onChanged(); + } else { + violationsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * Describes all precondition violations.
+     * 
+ * + * repeated .rpc.v1.PreconditionFailure.Violation violations = 1; + */ + public Builder addViolations( + org.vdaas.vald.api.v1.rpc.PreconditionFailure.Violation.Builder builderForValue) { + if (violationsBuilder_ == null) { + ensureViolationsIsMutable(); + violations_.add(builderForValue.build()); + onChanged(); + } else { + violationsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * Describes all precondition violations.
+     * 
+ * + * repeated .rpc.v1.PreconditionFailure.Violation violations = 1; + */ + public Builder addViolations( + int index, org.vdaas.vald.api.v1.rpc.PreconditionFailure.Violation.Builder builderForValue) { + if (violationsBuilder_ == null) { + ensureViolationsIsMutable(); + violations_.add(index, builderForValue.build()); + onChanged(); + } else { + violationsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Describes all precondition violations.
+     * 
+ * + * repeated .rpc.v1.PreconditionFailure.Violation violations = 1; + */ + public Builder addAllViolations( + java.lang.Iterable values) { + if (violationsBuilder_ == null) { + ensureViolationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, violations_); + onChanged(); + } else { + violationsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * Describes all precondition violations.
+     * 
+ * + * repeated .rpc.v1.PreconditionFailure.Violation violations = 1; + */ + public Builder clearViolations() { + if (violationsBuilder_ == null) { + violations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + violationsBuilder_.clear(); + } + return this; + } + /** + *
+     * Describes all precondition violations.
+     * 
+ * + * repeated .rpc.v1.PreconditionFailure.Violation violations = 1; + */ + public Builder removeViolations(int index) { + if (violationsBuilder_ == null) { + ensureViolationsIsMutable(); + violations_.remove(index); + onChanged(); + } else { + violationsBuilder_.remove(index); + } + return this; + } + /** + *
+     * Describes all precondition violations.
+     * 
+ * + * repeated .rpc.v1.PreconditionFailure.Violation violations = 1; + */ + public org.vdaas.vald.api.v1.rpc.PreconditionFailure.Violation.Builder getViolationsBuilder( + int index) { + return getViolationsFieldBuilder().getBuilder(index); + } + /** + *
+     * Describes all precondition violations.
+     * 
+ * + * repeated .rpc.v1.PreconditionFailure.Violation violations = 1; + */ + public org.vdaas.vald.api.v1.rpc.PreconditionFailure.ViolationOrBuilder getViolationsOrBuilder( + int index) { + if (violationsBuilder_ == null) { + return violations_.get(index); } else { + return violationsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * Describes all precondition violations.
+     * 
+ * + * repeated .rpc.v1.PreconditionFailure.Violation violations = 1; + */ + public java.util.List + getViolationsOrBuilderList() { + if (violationsBuilder_ != null) { + return violationsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(violations_); + } + } + /** + *
+     * Describes all precondition violations.
+     * 
+ * + * repeated .rpc.v1.PreconditionFailure.Violation violations = 1; + */ + public org.vdaas.vald.api.v1.rpc.PreconditionFailure.Violation.Builder addViolationsBuilder() { + return getViolationsFieldBuilder().addBuilder( + org.vdaas.vald.api.v1.rpc.PreconditionFailure.Violation.getDefaultInstance()); + } + /** + *
+     * Describes all precondition violations.
+     * 
+ * + * repeated .rpc.v1.PreconditionFailure.Violation violations = 1; + */ + public org.vdaas.vald.api.v1.rpc.PreconditionFailure.Violation.Builder addViolationsBuilder( + int index) { + return getViolationsFieldBuilder().addBuilder( + index, org.vdaas.vald.api.v1.rpc.PreconditionFailure.Violation.getDefaultInstance()); + } + /** + *
+     * Describes all precondition violations.
+     * 
+ * + * repeated .rpc.v1.PreconditionFailure.Violation violations = 1; + */ + public java.util.List + getViolationsBuilderList() { + return getViolationsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + org.vdaas.vald.api.v1.rpc.PreconditionFailure.Violation, org.vdaas.vald.api.v1.rpc.PreconditionFailure.Violation.Builder, org.vdaas.vald.api.v1.rpc.PreconditionFailure.ViolationOrBuilder> + getViolationsFieldBuilder() { + if (violationsBuilder_ == null) { + violationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + org.vdaas.vald.api.v1.rpc.PreconditionFailure.Violation, org.vdaas.vald.api.v1.rpc.PreconditionFailure.Violation.Builder, org.vdaas.vald.api.v1.rpc.PreconditionFailure.ViolationOrBuilder>( + violations_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + violations_ = null; + } + return violationsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:rpc.v1.PreconditionFailure) + } + + // @@protoc_insertion_point(class_scope:rpc.v1.PreconditionFailure) + private static final org.vdaas.vald.api.v1.rpc.PreconditionFailure DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.vdaas.vald.api.v1.rpc.PreconditionFailure(); + } + + public static org.vdaas.vald.api.v1.rpc.PreconditionFailure getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PreconditionFailure parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public org.vdaas.vald.api.v1.rpc.PreconditionFailure getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/src/main/java/org/vdaas/vald/api/v1/rpc/PreconditionFailureOrBuilder.java b/src/main/java/org/vdaas/vald/api/v1/rpc/PreconditionFailureOrBuilder.java new file mode 100644 index 00000000..f9d484cb --- /dev/null +++ b/src/main/java/org/vdaas/vald/api/v1/rpc/PreconditionFailureOrBuilder.java @@ -0,0 +1,53 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: apis/proto/v1/rpc/error_details.proto + +package org.vdaas.vald.api.v1.rpc; + +public interface PreconditionFailureOrBuilder extends + // @@protoc_insertion_point(interface_extends:rpc.v1.PreconditionFailure) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Describes all precondition violations.
+   * 
+ * + * repeated .rpc.v1.PreconditionFailure.Violation violations = 1; + */ + java.util.List + getViolationsList(); + /** + *
+   * Describes all precondition violations.
+   * 
+ * + * repeated .rpc.v1.PreconditionFailure.Violation violations = 1; + */ + org.vdaas.vald.api.v1.rpc.PreconditionFailure.Violation getViolations(int index); + /** + *
+   * Describes all precondition violations.
+   * 
+ * + * repeated .rpc.v1.PreconditionFailure.Violation violations = 1; + */ + int getViolationsCount(); + /** + *
+   * Describes all precondition violations.
+   * 
+ * + * repeated .rpc.v1.PreconditionFailure.Violation violations = 1; + */ + java.util.List + getViolationsOrBuilderList(); + /** + *
+   * Describes all precondition violations.
+   * 
+ * + * repeated .rpc.v1.PreconditionFailure.Violation violations = 1; + */ + org.vdaas.vald.api.v1.rpc.PreconditionFailure.ViolationOrBuilder getViolationsOrBuilder( + int index); +} diff --git a/src/main/java/org/vdaas/vald/api/v1/rpc/QuotaFailure.java b/src/main/java/org/vdaas/vald/api/v1/rpc/QuotaFailure.java new file mode 100644 index 00000000..8cbacf6f --- /dev/null +++ b/src/main/java/org/vdaas/vald/api/v1/rpc/QuotaFailure.java @@ -0,0 +1,1733 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: apis/proto/v1/rpc/error_details.proto + +package org.vdaas.vald.api.v1.rpc; + +/** + *
+ * Describes how a quota check failed.
+ *
+ * For example if a daily limit was exceeded for the calling project,
+ * a service could respond with a QuotaFailure detail containing the project
+ * id and the description of the quota limit that was exceeded.  If the
+ * calling project hasn't enabled the service in the developer console, then
+ * a service could respond with the project id and set `service_disabled`
+ * to true.
+ *
+ * Also see RetryInfo and Help types for other details about handling a
+ * quota failure.
+ * 
+ * + * Protobuf type {@code rpc.v1.QuotaFailure} + */ +public final class QuotaFailure extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:rpc.v1.QuotaFailure) + QuotaFailureOrBuilder { +private static final long serialVersionUID = 0L; + // Use QuotaFailure.newBuilder() to construct. + private QuotaFailure(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private QuotaFailure() { + violations_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new QuotaFailure(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.vdaas.vald.api.v1.rpc.ErrorDetailsProto.internal_static_rpc_v1_QuotaFailure_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.vdaas.vald.api.v1.rpc.ErrorDetailsProto.internal_static_rpc_v1_QuotaFailure_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.vdaas.vald.api.v1.rpc.QuotaFailure.class, org.vdaas.vald.api.v1.rpc.QuotaFailure.Builder.class); + } + + public interface ViolationOrBuilder extends + // @@protoc_insertion_point(interface_extends:rpc.v1.QuotaFailure.Violation) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * The subject on which the quota check failed.
+     * For example, "clientip:<ip address of client>" or "project:<Google
+     * developer project id>".
+     * 
+ * + * string subject = 1; + * @return The subject. + */ + java.lang.String getSubject(); + /** + *
+     * The subject on which the quota check failed.
+     * For example, "clientip:<ip address of client>" or "project:<Google
+     * developer project id>".
+     * 
+ * + * string subject = 1; + * @return The bytes for subject. + */ + com.google.protobuf.ByteString + getSubjectBytes(); + + /** + *
+     * A description of how the quota check failed. Clients can use this
+     * description to find more about the quota configuration in the service's
+     * public documentation, or find the relevant quota limit to adjust through
+     * developer console.
+     *
+     * For example: "Service disabled" or "Daily Limit for read operations
+     * exceeded".
+     * 
+ * + * string description = 2; + * @return The description. + */ + java.lang.String getDescription(); + /** + *
+     * A description of how the quota check failed. Clients can use this
+     * description to find more about the quota configuration in the service's
+     * public documentation, or find the relevant quota limit to adjust through
+     * developer console.
+     *
+     * For example: "Service disabled" or "Daily Limit for read operations
+     * exceeded".
+     * 
+ * + * string description = 2; + * @return The bytes for description. + */ + com.google.protobuf.ByteString + getDescriptionBytes(); + } + /** + *
+   * A message type used to describe a single quota violation.  For example, a
+   * daily quota or a custom quota that was exceeded.
+   * 
+ * + * Protobuf type {@code rpc.v1.QuotaFailure.Violation} + */ + public static final class Violation extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:rpc.v1.QuotaFailure.Violation) + ViolationOrBuilder { + private static final long serialVersionUID = 0L; + // Use Violation.newBuilder() to construct. + private Violation(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Violation() { + subject_ = ""; + description_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Violation(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.vdaas.vald.api.v1.rpc.ErrorDetailsProto.internal_static_rpc_v1_QuotaFailure_Violation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.vdaas.vald.api.v1.rpc.ErrorDetailsProto.internal_static_rpc_v1_QuotaFailure_Violation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.vdaas.vald.api.v1.rpc.QuotaFailure.Violation.class, org.vdaas.vald.api.v1.rpc.QuotaFailure.Violation.Builder.class); + } + + public static final int SUBJECT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object subject_ = ""; + /** + *
+     * The subject on which the quota check failed.
+     * For example, "clientip:<ip address of client>" or "project:<Google
+     * developer project id>".
+     * 
+ * + * string subject = 1; + * @return The subject. + */ + @java.lang.Override + public java.lang.String getSubject() { + java.lang.Object ref = subject_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + subject_ = s; + return s; + } + } + /** + *
+     * The subject on which the quota check failed.
+     * For example, "clientip:<ip address of client>" or "project:<Google
+     * developer project id>".
+     * 
+ * + * string subject = 1; + * @return The bytes for subject. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getSubjectBytes() { + java.lang.Object ref = subject_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + subject_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTION_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + /** + *
+     * A description of how the quota check failed. Clients can use this
+     * description to find more about the quota configuration in the service's
+     * public documentation, or find the relevant quota limit to adjust through
+     * developer console.
+     *
+     * For example: "Service disabled" or "Daily Limit for read operations
+     * exceeded".
+     * 
+ * + * string description = 2; + * @return The description. + */ + @java.lang.Override + 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; + } + } + /** + *
+     * A description of how the quota check failed. Clients can use this
+     * description to find more about the quota configuration in the service's
+     * public documentation, or find the relevant quota limit to adjust through
+     * developer console.
+     *
+     * For example: "Service disabled" or "Daily Limit for read operations
+     * exceeded".
+     * 
+ * + * string description = 2; + * @return The bytes for description. + */ + @java.lang.Override + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subject_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, subject_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subject_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, subject_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.vdaas.vald.api.v1.rpc.QuotaFailure.Violation)) { + return super.equals(obj); + } + org.vdaas.vald.api.v1.rpc.QuotaFailure.Violation other = (org.vdaas.vald.api.v1.rpc.QuotaFailure.Violation) obj; + + if (!getSubject() + .equals(other.getSubject())) return false; + if (!getDescription() + .equals(other.getDescription())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SUBJECT_FIELD_NUMBER; + hash = (53 * hash) + getSubject().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.vdaas.vald.api.v1.rpc.QuotaFailure.Violation parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.vdaas.vald.api.v1.rpc.QuotaFailure.Violation parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.vdaas.vald.api.v1.rpc.QuotaFailure.Violation parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.vdaas.vald.api.v1.rpc.QuotaFailure.Violation parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.vdaas.vald.api.v1.rpc.QuotaFailure.Violation parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.vdaas.vald.api.v1.rpc.QuotaFailure.Violation parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.vdaas.vald.api.v1.rpc.QuotaFailure.Violation parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.vdaas.vald.api.v1.rpc.QuotaFailure.Violation parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static org.vdaas.vald.api.v1.rpc.QuotaFailure.Violation parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static org.vdaas.vald.api.v1.rpc.QuotaFailure.Violation parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.vdaas.vald.api.v1.rpc.QuotaFailure.Violation parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.vdaas.vald.api.v1.rpc.QuotaFailure.Violation parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.vdaas.vald.api.v1.rpc.QuotaFailure.Violation prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new 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 message type used to describe a single quota violation.  For example, a
+     * daily quota or a custom quota that was exceeded.
+     * 
+ * + * Protobuf type {@code rpc.v1.QuotaFailure.Violation} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:rpc.v1.QuotaFailure.Violation) + org.vdaas.vald.api.v1.rpc.QuotaFailure.ViolationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.vdaas.vald.api.v1.rpc.ErrorDetailsProto.internal_static_rpc_v1_QuotaFailure_Violation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.vdaas.vald.api.v1.rpc.ErrorDetailsProto.internal_static_rpc_v1_QuotaFailure_Violation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.vdaas.vald.api.v1.rpc.QuotaFailure.Violation.class, org.vdaas.vald.api.v1.rpc.QuotaFailure.Violation.Builder.class); + } + + // Construct using org.vdaas.vald.api.v1.rpc.QuotaFailure.Violation.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + subject_ = ""; + description_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.vdaas.vald.api.v1.rpc.ErrorDetailsProto.internal_static_rpc_v1_QuotaFailure_Violation_descriptor; + } + + @java.lang.Override + public org.vdaas.vald.api.v1.rpc.QuotaFailure.Violation getDefaultInstanceForType() { + return org.vdaas.vald.api.v1.rpc.QuotaFailure.Violation.getDefaultInstance(); + } + + @java.lang.Override + public org.vdaas.vald.api.v1.rpc.QuotaFailure.Violation build() { + org.vdaas.vald.api.v1.rpc.QuotaFailure.Violation result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.vdaas.vald.api.v1.rpc.QuotaFailure.Violation buildPartial() { + org.vdaas.vald.api.v1.rpc.QuotaFailure.Violation result = new org.vdaas.vald.api.v1.rpc.QuotaFailure.Violation(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(org.vdaas.vald.api.v1.rpc.QuotaFailure.Violation result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.subject_ = subject_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.description_ = description_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.vdaas.vald.api.v1.rpc.QuotaFailure.Violation) { + return mergeFrom((org.vdaas.vald.api.v1.rpc.QuotaFailure.Violation)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.vdaas.vald.api.v1.rpc.QuotaFailure.Violation other) { + if (other == org.vdaas.vald.api.v1.rpc.QuotaFailure.Violation.getDefaultInstance()) return this; + if (!other.getSubject().isEmpty()) { + subject_ = other.subject_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + subject_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object subject_ = ""; + /** + *
+       * The subject on which the quota check failed.
+       * For example, "clientip:<ip address of client>" or "project:<Google
+       * developer project id>".
+       * 
+ * + * string subject = 1; + * @return The subject. + */ + public java.lang.String getSubject() { + java.lang.Object ref = subject_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + subject_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * The subject on which the quota check failed.
+       * For example, "clientip:<ip address of client>" or "project:<Google
+       * developer project id>".
+       * 
+ * + * string subject = 1; + * @return The bytes for subject. + */ + public com.google.protobuf.ByteString + getSubjectBytes() { + java.lang.Object ref = subject_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + subject_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * The subject on which the quota check failed.
+       * For example, "clientip:<ip address of client>" or "project:<Google
+       * developer project id>".
+       * 
+ * + * string subject = 1; + * @param value The subject to set. + * @return This builder for chaining. + */ + public Builder setSubject( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + subject_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * The subject on which the quota check failed.
+       * For example, "clientip:<ip address of client>" or "project:<Google
+       * developer project id>".
+       * 
+ * + * string subject = 1; + * @return This builder for chaining. + */ + public Builder clearSubject() { + subject_ = getDefaultInstance().getSubject(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * The subject on which the quota check failed.
+       * For example, "clientip:<ip address of client>" or "project:<Google
+       * developer project id>".
+       * 
+ * + * string subject = 1; + * @param value The bytes for subject to set. + * @return This builder for chaining. + */ + public Builder setSubjectBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + subject_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + /** + *
+       * A description of how the quota check failed. Clients can use this
+       * description to find more about the quota configuration in the service's
+       * public documentation, or find the relevant quota limit to adjust through
+       * developer console.
+       *
+       * For example: "Service disabled" or "Daily Limit for read operations
+       * exceeded".
+       * 
+ * + * string description = 2; + * @return The description. + */ + 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; + } + } + /** + *
+       * A description of how the quota check failed. Clients can use this
+       * description to find more about the quota configuration in the service's
+       * public documentation, or find the relevant quota limit to adjust through
+       * developer console.
+       *
+       * For example: "Service disabled" or "Daily Limit for read operations
+       * exceeded".
+       * 
+ * + * string description = 2; + * @return The bytes for description. + */ + 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; + } + } + /** + *
+       * A description of how the quota check failed. Clients can use this
+       * description to find more about the quota configuration in the service's
+       * public documentation, or find the relevant quota limit to adjust through
+       * developer console.
+       *
+       * For example: "Service disabled" or "Daily Limit for read operations
+       * exceeded".
+       * 
+ * + * string description = 2; + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + description_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * A description of how the quota check failed. Clients can use this
+       * description to find more about the quota configuration in the service's
+       * public documentation, or find the relevant quota limit to adjust through
+       * developer console.
+       *
+       * For example: "Service disabled" or "Daily Limit for read operations
+       * exceeded".
+       * 
+ * + * string description = 2; + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+       * A description of how the quota check failed. Clients can use this
+       * description to find more about the quota configuration in the service's
+       * public documentation, or find the relevant quota limit to adjust through
+       * developer console.
+       *
+       * For example: "Service disabled" or "Daily Limit for read operations
+       * exceeded".
+       * 
+ * + * string description = 2; + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + description_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:rpc.v1.QuotaFailure.Violation) + } + + // @@protoc_insertion_point(class_scope:rpc.v1.QuotaFailure.Violation) + private static final org.vdaas.vald.api.v1.rpc.QuotaFailure.Violation DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.vdaas.vald.api.v1.rpc.QuotaFailure.Violation(); + } + + public static org.vdaas.vald.api.v1.rpc.QuotaFailure.Violation getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Violation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public org.vdaas.vald.api.v1.rpc.QuotaFailure.Violation getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public static final int VIOLATIONS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private java.util.List violations_; + /** + *
+   * Describes all quota violations.
+   * 
+ * + * repeated .rpc.v1.QuotaFailure.Violation violations = 1; + */ + @java.lang.Override + public java.util.List getViolationsList() { + return violations_; + } + /** + *
+   * Describes all quota violations.
+   * 
+ * + * repeated .rpc.v1.QuotaFailure.Violation violations = 1; + */ + @java.lang.Override + public java.util.List + getViolationsOrBuilderList() { + return violations_; + } + /** + *
+   * Describes all quota violations.
+   * 
+ * + * repeated .rpc.v1.QuotaFailure.Violation violations = 1; + */ + @java.lang.Override + public int getViolationsCount() { + return violations_.size(); + } + /** + *
+   * Describes all quota violations.
+   * 
+ * + * repeated .rpc.v1.QuotaFailure.Violation violations = 1; + */ + @java.lang.Override + public org.vdaas.vald.api.v1.rpc.QuotaFailure.Violation getViolations(int index) { + return violations_.get(index); + } + /** + *
+   * Describes all quota violations.
+   * 
+ * + * repeated .rpc.v1.QuotaFailure.Violation violations = 1; + */ + @java.lang.Override + public org.vdaas.vald.api.v1.rpc.QuotaFailure.ViolationOrBuilder getViolationsOrBuilder( + int index) { + return violations_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < violations_.size(); i++) { + output.writeMessage(1, violations_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < violations_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, violations_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.vdaas.vald.api.v1.rpc.QuotaFailure)) { + return super.equals(obj); + } + org.vdaas.vald.api.v1.rpc.QuotaFailure other = (org.vdaas.vald.api.v1.rpc.QuotaFailure) obj; + + if (!getViolationsList() + .equals(other.getViolationsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getViolationsCount() > 0) { + hash = (37 * hash) + VIOLATIONS_FIELD_NUMBER; + hash = (53 * hash) + getViolationsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.vdaas.vald.api.v1.rpc.QuotaFailure parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.vdaas.vald.api.v1.rpc.QuotaFailure parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.vdaas.vald.api.v1.rpc.QuotaFailure parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.vdaas.vald.api.v1.rpc.QuotaFailure parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.vdaas.vald.api.v1.rpc.QuotaFailure parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.vdaas.vald.api.v1.rpc.QuotaFailure parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.vdaas.vald.api.v1.rpc.QuotaFailure parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.vdaas.vald.api.v1.rpc.QuotaFailure parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static org.vdaas.vald.api.v1.rpc.QuotaFailure parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static org.vdaas.vald.api.v1.rpc.QuotaFailure parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.vdaas.vald.api.v1.rpc.QuotaFailure parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.vdaas.vald.api.v1.rpc.QuotaFailure parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.vdaas.vald.api.v1.rpc.QuotaFailure prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new 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 how a quota check failed.
+   *
+   * For example if a daily limit was exceeded for the calling project,
+   * a service could respond with a QuotaFailure detail containing the project
+   * id and the description of the quota limit that was exceeded.  If the
+   * calling project hasn't enabled the service in the developer console, then
+   * a service could respond with the project id and set `service_disabled`
+   * to true.
+   *
+   * Also see RetryInfo and Help types for other details about handling a
+   * quota failure.
+   * 
+ * + * Protobuf type {@code rpc.v1.QuotaFailure} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:rpc.v1.QuotaFailure) + org.vdaas.vald.api.v1.rpc.QuotaFailureOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.vdaas.vald.api.v1.rpc.ErrorDetailsProto.internal_static_rpc_v1_QuotaFailure_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.vdaas.vald.api.v1.rpc.ErrorDetailsProto.internal_static_rpc_v1_QuotaFailure_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.vdaas.vald.api.v1.rpc.QuotaFailure.class, org.vdaas.vald.api.v1.rpc.QuotaFailure.Builder.class); + } + + // Construct using org.vdaas.vald.api.v1.rpc.QuotaFailure.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (violationsBuilder_ == null) { + violations_ = java.util.Collections.emptyList(); + } else { + violations_ = null; + violationsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.vdaas.vald.api.v1.rpc.ErrorDetailsProto.internal_static_rpc_v1_QuotaFailure_descriptor; + } + + @java.lang.Override + public org.vdaas.vald.api.v1.rpc.QuotaFailure getDefaultInstanceForType() { + return org.vdaas.vald.api.v1.rpc.QuotaFailure.getDefaultInstance(); + } + + @java.lang.Override + public org.vdaas.vald.api.v1.rpc.QuotaFailure build() { + org.vdaas.vald.api.v1.rpc.QuotaFailure result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.vdaas.vald.api.v1.rpc.QuotaFailure buildPartial() { + org.vdaas.vald.api.v1.rpc.QuotaFailure result = new org.vdaas.vald.api.v1.rpc.QuotaFailure(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(org.vdaas.vald.api.v1.rpc.QuotaFailure result) { + if (violationsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + violations_ = java.util.Collections.unmodifiableList(violations_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.violations_ = violations_; + } else { + result.violations_ = violationsBuilder_.build(); + } + } + + private void buildPartial0(org.vdaas.vald.api.v1.rpc.QuotaFailure result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.vdaas.vald.api.v1.rpc.QuotaFailure) { + return mergeFrom((org.vdaas.vald.api.v1.rpc.QuotaFailure)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.vdaas.vald.api.v1.rpc.QuotaFailure other) { + if (other == org.vdaas.vald.api.v1.rpc.QuotaFailure.getDefaultInstance()) return this; + if (violationsBuilder_ == null) { + if (!other.violations_.isEmpty()) { + if (violations_.isEmpty()) { + violations_ = other.violations_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureViolationsIsMutable(); + violations_.addAll(other.violations_); + } + onChanged(); + } + } else { + if (!other.violations_.isEmpty()) { + if (violationsBuilder_.isEmpty()) { + violationsBuilder_.dispose(); + violationsBuilder_ = null; + violations_ = other.violations_; + bitField0_ = (bitField0_ & ~0x00000001); + violationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getViolationsFieldBuilder() : null; + } else { + violationsBuilder_.addAllMessages(other.violations_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + org.vdaas.vald.api.v1.rpc.QuotaFailure.Violation m = + input.readMessage( + org.vdaas.vald.api.v1.rpc.QuotaFailure.Violation.parser(), + extensionRegistry); + if (violationsBuilder_ == null) { + ensureViolationsIsMutable(); + violations_.add(m); + } else { + violationsBuilder_.addMessage(m); + } + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.util.List violations_ = + java.util.Collections.emptyList(); + private void ensureViolationsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + violations_ = new java.util.ArrayList(violations_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + org.vdaas.vald.api.v1.rpc.QuotaFailure.Violation, org.vdaas.vald.api.v1.rpc.QuotaFailure.Violation.Builder, org.vdaas.vald.api.v1.rpc.QuotaFailure.ViolationOrBuilder> violationsBuilder_; + + /** + *
+     * Describes all quota violations.
+     * 
+ * + * repeated .rpc.v1.QuotaFailure.Violation violations = 1; + */ + public java.util.List getViolationsList() { + if (violationsBuilder_ == null) { + return java.util.Collections.unmodifiableList(violations_); + } else { + return violationsBuilder_.getMessageList(); + } + } + /** + *
+     * Describes all quota violations.
+     * 
+ * + * repeated .rpc.v1.QuotaFailure.Violation violations = 1; + */ + public int getViolationsCount() { + if (violationsBuilder_ == null) { + return violations_.size(); + } else { + return violationsBuilder_.getCount(); + } + } + /** + *
+     * Describes all quota violations.
+     * 
+ * + * repeated .rpc.v1.QuotaFailure.Violation violations = 1; + */ + public org.vdaas.vald.api.v1.rpc.QuotaFailure.Violation getViolations(int index) { + if (violationsBuilder_ == null) { + return violations_.get(index); + } else { + return violationsBuilder_.getMessage(index); + } + } + /** + *
+     * Describes all quota violations.
+     * 
+ * + * repeated .rpc.v1.QuotaFailure.Violation violations = 1; + */ + public Builder setViolations( + int index, org.vdaas.vald.api.v1.rpc.QuotaFailure.Violation value) { + if (violationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureViolationsIsMutable(); + violations_.set(index, value); + onChanged(); + } else { + violationsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * Describes all quota violations.
+     * 
+ * + * repeated .rpc.v1.QuotaFailure.Violation violations = 1; + */ + public Builder setViolations( + int index, org.vdaas.vald.api.v1.rpc.QuotaFailure.Violation.Builder builderForValue) { + if (violationsBuilder_ == null) { + ensureViolationsIsMutable(); + violations_.set(index, builderForValue.build()); + onChanged(); + } else { + violationsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Describes all quota violations.
+     * 
+ * + * repeated .rpc.v1.QuotaFailure.Violation violations = 1; + */ + public Builder addViolations(org.vdaas.vald.api.v1.rpc.QuotaFailure.Violation value) { + if (violationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureViolationsIsMutable(); + violations_.add(value); + onChanged(); + } else { + violationsBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * Describes all quota violations.
+     * 
+ * + * repeated .rpc.v1.QuotaFailure.Violation violations = 1; + */ + public Builder addViolations( + int index, org.vdaas.vald.api.v1.rpc.QuotaFailure.Violation value) { + if (violationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureViolationsIsMutable(); + violations_.add(index, value); + onChanged(); + } else { + violationsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * Describes all quota violations.
+     * 
+ * + * repeated .rpc.v1.QuotaFailure.Violation violations = 1; + */ + public Builder addViolations( + org.vdaas.vald.api.v1.rpc.QuotaFailure.Violation.Builder builderForValue) { + if (violationsBuilder_ == null) { + ensureViolationsIsMutable(); + violations_.add(builderForValue.build()); + onChanged(); + } else { + violationsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * Describes all quota violations.
+     * 
+ * + * repeated .rpc.v1.QuotaFailure.Violation violations = 1; + */ + public Builder addViolations( + int index, org.vdaas.vald.api.v1.rpc.QuotaFailure.Violation.Builder builderForValue) { + if (violationsBuilder_ == null) { + ensureViolationsIsMutable(); + violations_.add(index, builderForValue.build()); + onChanged(); + } else { + violationsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Describes all quota violations.
+     * 
+ * + * repeated .rpc.v1.QuotaFailure.Violation violations = 1; + */ + public Builder addAllViolations( + java.lang.Iterable values) { + if (violationsBuilder_ == null) { + ensureViolationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, violations_); + onChanged(); + } else { + violationsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * Describes all quota violations.
+     * 
+ * + * repeated .rpc.v1.QuotaFailure.Violation violations = 1; + */ + public Builder clearViolations() { + if (violationsBuilder_ == null) { + violations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + violationsBuilder_.clear(); + } + return this; + } + /** + *
+     * Describes all quota violations.
+     * 
+ * + * repeated .rpc.v1.QuotaFailure.Violation violations = 1; + */ + public Builder removeViolations(int index) { + if (violationsBuilder_ == null) { + ensureViolationsIsMutable(); + violations_.remove(index); + onChanged(); + } else { + violationsBuilder_.remove(index); + } + return this; + } + /** + *
+     * Describes all quota violations.
+     * 
+ * + * repeated .rpc.v1.QuotaFailure.Violation violations = 1; + */ + public org.vdaas.vald.api.v1.rpc.QuotaFailure.Violation.Builder getViolationsBuilder( + int index) { + return getViolationsFieldBuilder().getBuilder(index); + } + /** + *
+     * Describes all quota violations.
+     * 
+ * + * repeated .rpc.v1.QuotaFailure.Violation violations = 1; + */ + public org.vdaas.vald.api.v1.rpc.QuotaFailure.ViolationOrBuilder getViolationsOrBuilder( + int index) { + if (violationsBuilder_ == null) { + return violations_.get(index); } else { + return violationsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * Describes all quota violations.
+     * 
+ * + * repeated .rpc.v1.QuotaFailure.Violation violations = 1; + */ + public java.util.List + getViolationsOrBuilderList() { + if (violationsBuilder_ != null) { + return violationsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(violations_); + } + } + /** + *
+     * Describes all quota violations.
+     * 
+ * + * repeated .rpc.v1.QuotaFailure.Violation violations = 1; + */ + public org.vdaas.vald.api.v1.rpc.QuotaFailure.Violation.Builder addViolationsBuilder() { + return getViolationsFieldBuilder().addBuilder( + org.vdaas.vald.api.v1.rpc.QuotaFailure.Violation.getDefaultInstance()); + } + /** + *
+     * Describes all quota violations.
+     * 
+ * + * repeated .rpc.v1.QuotaFailure.Violation violations = 1; + */ + public org.vdaas.vald.api.v1.rpc.QuotaFailure.Violation.Builder addViolationsBuilder( + int index) { + return getViolationsFieldBuilder().addBuilder( + index, org.vdaas.vald.api.v1.rpc.QuotaFailure.Violation.getDefaultInstance()); + } + /** + *
+     * Describes all quota violations.
+     * 
+ * + * repeated .rpc.v1.QuotaFailure.Violation violations = 1; + */ + public java.util.List + getViolationsBuilderList() { + return getViolationsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + org.vdaas.vald.api.v1.rpc.QuotaFailure.Violation, org.vdaas.vald.api.v1.rpc.QuotaFailure.Violation.Builder, org.vdaas.vald.api.v1.rpc.QuotaFailure.ViolationOrBuilder> + getViolationsFieldBuilder() { + if (violationsBuilder_ == null) { + violationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + org.vdaas.vald.api.v1.rpc.QuotaFailure.Violation, org.vdaas.vald.api.v1.rpc.QuotaFailure.Violation.Builder, org.vdaas.vald.api.v1.rpc.QuotaFailure.ViolationOrBuilder>( + violations_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + violations_ = null; + } + return violationsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:rpc.v1.QuotaFailure) + } + + // @@protoc_insertion_point(class_scope:rpc.v1.QuotaFailure) + private static final org.vdaas.vald.api.v1.rpc.QuotaFailure DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.vdaas.vald.api.v1.rpc.QuotaFailure(); + } + + public static org.vdaas.vald.api.v1.rpc.QuotaFailure getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public QuotaFailure parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public org.vdaas.vald.api.v1.rpc.QuotaFailure getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/src/main/java/org/vdaas/vald/api/v1/rpc/QuotaFailureOrBuilder.java b/src/main/java/org/vdaas/vald/api/v1/rpc/QuotaFailureOrBuilder.java new file mode 100644 index 00000000..50adf17d --- /dev/null +++ b/src/main/java/org/vdaas/vald/api/v1/rpc/QuotaFailureOrBuilder.java @@ -0,0 +1,53 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: apis/proto/v1/rpc/error_details.proto + +package org.vdaas.vald.api.v1.rpc; + +public interface QuotaFailureOrBuilder extends + // @@protoc_insertion_point(interface_extends:rpc.v1.QuotaFailure) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Describes all quota violations.
+   * 
+ * + * repeated .rpc.v1.QuotaFailure.Violation violations = 1; + */ + java.util.List + getViolationsList(); + /** + *
+   * Describes all quota violations.
+   * 
+ * + * repeated .rpc.v1.QuotaFailure.Violation violations = 1; + */ + org.vdaas.vald.api.v1.rpc.QuotaFailure.Violation getViolations(int index); + /** + *
+   * Describes all quota violations.
+   * 
+ * + * repeated .rpc.v1.QuotaFailure.Violation violations = 1; + */ + int getViolationsCount(); + /** + *
+   * Describes all quota violations.
+   * 
+ * + * repeated .rpc.v1.QuotaFailure.Violation violations = 1; + */ + java.util.List + getViolationsOrBuilderList(); + /** + *
+   * Describes all quota violations.
+   * 
+ * + * repeated .rpc.v1.QuotaFailure.Violation violations = 1; + */ + org.vdaas.vald.api.v1.rpc.QuotaFailure.ViolationOrBuilder getViolationsOrBuilder( + int index); +} diff --git a/src/main/java/org/vdaas/vald/api/v1/rpc/RequestInfo.java b/src/main/java/org/vdaas/vald/api/v1/rpc/RequestInfo.java new file mode 100644 index 00000000..fce68028 --- /dev/null +++ b/src/main/java/org/vdaas/vald/api/v1/rpc/RequestInfo.java @@ -0,0 +1,757 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: apis/proto/v1/rpc/error_details.proto + +package org.vdaas.vald.api.v1.rpc; + +/** + *
+ * Contains metadata about the request that clients can attach when filing a bug
+ * or providing other forms of feedback.
+ * 
+ * + * Protobuf type {@code rpc.v1.RequestInfo} + */ +public final class RequestInfo extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:rpc.v1.RequestInfo) + RequestInfoOrBuilder { +private static final long serialVersionUID = 0L; + // Use RequestInfo.newBuilder() to construct. + private RequestInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private RequestInfo() { + requestId_ = ""; + servingData_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new RequestInfo(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.vdaas.vald.api.v1.rpc.ErrorDetailsProto.internal_static_rpc_v1_RequestInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.vdaas.vald.api.v1.rpc.ErrorDetailsProto.internal_static_rpc_v1_RequestInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.vdaas.vald.api.v1.rpc.RequestInfo.class, org.vdaas.vald.api.v1.rpc.RequestInfo.Builder.class); + } + + public static final int REQUEST_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + /** + *
+   * An opaque string that should only be interpreted by the service generating
+   * it. For example, it can be used to identify requests in the service's logs.
+   * 
+ * + * string request_id = 1; + * @return The requestId. + */ + @java.lang.Override + 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; + } + } + /** + *
+   * An opaque string that should only be interpreted by the service generating
+   * it. For example, it can be used to identify requests in the service's logs.
+   * 
+ * + * string request_id = 1; + * @return The bytes for requestId. + */ + @java.lang.Override + 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 SERVING_DATA_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object servingData_ = ""; + /** + *
+   * Any data that was used to serve this request. For example, an encrypted
+   * stack trace that can be sent back to the service provider for debugging.
+   * 
+ * + * string serving_data = 2; + * @return The servingData. + */ + @java.lang.Override + public java.lang.String getServingData() { + java.lang.Object ref = servingData_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + servingData_ = s; + return s; + } + } + /** + *
+   * Any data that was used to serve this request. For example, an encrypted
+   * stack trace that can be sent back to the service provider for debugging.
+   * 
+ * + * string serving_data = 2; + * @return The bytes for servingData. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getServingDataBytes() { + java.lang.Object ref = servingData_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + servingData_ = 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, requestId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(servingData_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, servingData_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, requestId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(servingData_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, servingData_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.vdaas.vald.api.v1.rpc.RequestInfo)) { + return super.equals(obj); + } + org.vdaas.vald.api.v1.rpc.RequestInfo other = (org.vdaas.vald.api.v1.rpc.RequestInfo) obj; + + if (!getRequestId() + .equals(other.getRequestId())) return false; + if (!getServingData() + .equals(other.getServingData())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @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) + SERVING_DATA_FIELD_NUMBER; + hash = (53 * hash) + getServingData().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.vdaas.vald.api.v1.rpc.RequestInfo parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.vdaas.vald.api.v1.rpc.RequestInfo parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.vdaas.vald.api.v1.rpc.RequestInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.vdaas.vald.api.v1.rpc.RequestInfo parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.vdaas.vald.api.v1.rpc.RequestInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.vdaas.vald.api.v1.rpc.RequestInfo parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.vdaas.vald.api.v1.rpc.RequestInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.vdaas.vald.api.v1.rpc.RequestInfo parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static org.vdaas.vald.api.v1.rpc.RequestInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static org.vdaas.vald.api.v1.rpc.RequestInfo parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.vdaas.vald.api.v1.rpc.RequestInfo parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.vdaas.vald.api.v1.rpc.RequestInfo parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.vdaas.vald.api.v1.rpc.RequestInfo prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Contains metadata about the request that clients can attach when filing a bug
+   * or providing other forms of feedback.
+   * 
+ * + * Protobuf type {@code rpc.v1.RequestInfo} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:rpc.v1.RequestInfo) + org.vdaas.vald.api.v1.rpc.RequestInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.vdaas.vald.api.v1.rpc.ErrorDetailsProto.internal_static_rpc_v1_RequestInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.vdaas.vald.api.v1.rpc.ErrorDetailsProto.internal_static_rpc_v1_RequestInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.vdaas.vald.api.v1.rpc.RequestInfo.class, org.vdaas.vald.api.v1.rpc.RequestInfo.Builder.class); + } + + // Construct using org.vdaas.vald.api.v1.rpc.RequestInfo.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + requestId_ = ""; + servingData_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.vdaas.vald.api.v1.rpc.ErrorDetailsProto.internal_static_rpc_v1_RequestInfo_descriptor; + } + + @java.lang.Override + public org.vdaas.vald.api.v1.rpc.RequestInfo getDefaultInstanceForType() { + return org.vdaas.vald.api.v1.rpc.RequestInfo.getDefaultInstance(); + } + + @java.lang.Override + public org.vdaas.vald.api.v1.rpc.RequestInfo build() { + org.vdaas.vald.api.v1.rpc.RequestInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.vdaas.vald.api.v1.rpc.RequestInfo buildPartial() { + org.vdaas.vald.api.v1.rpc.RequestInfo result = new org.vdaas.vald.api.v1.rpc.RequestInfo(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(org.vdaas.vald.api.v1.rpc.RequestInfo result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.requestId_ = requestId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.servingData_ = servingData_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.vdaas.vald.api.v1.rpc.RequestInfo) { + return mergeFrom((org.vdaas.vald.api.v1.rpc.RequestInfo)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.vdaas.vald.api.v1.rpc.RequestInfo other) { + if (other == org.vdaas.vald.api.v1.rpc.RequestInfo.getDefaultInstance()) return this; + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getServingData().isEmpty()) { + servingData_ = other.servingData_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + servingData_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object requestId_ = ""; + /** + *
+     * An opaque string that should only be interpreted by the service generating
+     * it. For example, it can be used to identify requests in the service's logs.
+     * 
+ * + * string request_id = 1; + * @return The requestId. + */ + 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; + } + } + /** + *
+     * An opaque string that should only be interpreted by the service generating
+     * it. For example, it can be used to identify requests in the service's logs.
+     * 
+ * + * string request_id = 1; + * @return The bytes for requestId. + */ + 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; + } + } + /** + *
+     * An opaque string that should only be interpreted by the service generating
+     * it. For example, it can be used to identify requests in the service's logs.
+     * 
+ * + * string request_id = 1; + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + requestId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * An opaque string that should only be interpreted by the service generating
+     * it. For example, it can be used to identify requests in the service's logs.
+     * 
+ * + * string request_id = 1; + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * An opaque string that should only be interpreted by the service generating
+     * it. For example, it can be used to identify requests in the service's logs.
+     * 
+ * + * string request_id = 1; + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object servingData_ = ""; + /** + *
+     * Any data that was used to serve this request. For example, an encrypted
+     * stack trace that can be sent back to the service provider for debugging.
+     * 
+ * + * string serving_data = 2; + * @return The servingData. + */ + public java.lang.String getServingData() { + java.lang.Object ref = servingData_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + servingData_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Any data that was used to serve this request. For example, an encrypted
+     * stack trace that can be sent back to the service provider for debugging.
+     * 
+ * + * string serving_data = 2; + * @return The bytes for servingData. + */ + public com.google.protobuf.ByteString + getServingDataBytes() { + java.lang.Object ref = servingData_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + servingData_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Any data that was used to serve this request. For example, an encrypted
+     * stack trace that can be sent back to the service provider for debugging.
+     * 
+ * + * string serving_data = 2; + * @param value The servingData to set. + * @return This builder for chaining. + */ + public Builder setServingData( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + servingData_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Any data that was used to serve this request. For example, an encrypted
+     * stack trace that can be sent back to the service provider for debugging.
+     * 
+ * + * string serving_data = 2; + * @return This builder for chaining. + */ + public Builder clearServingData() { + servingData_ = getDefaultInstance().getServingData(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+     * Any data that was used to serve this request. For example, an encrypted
+     * stack trace that can be sent back to the service provider for debugging.
+     * 
+ * + * string serving_data = 2; + * @param value The bytes for servingData to set. + * @return This builder for chaining. + */ + public Builder setServingDataBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + servingData_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:rpc.v1.RequestInfo) + } + + // @@protoc_insertion_point(class_scope:rpc.v1.RequestInfo) + private static final org.vdaas.vald.api.v1.rpc.RequestInfo DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.vdaas.vald.api.v1.rpc.RequestInfo(); + } + + public static org.vdaas.vald.api.v1.rpc.RequestInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RequestInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public org.vdaas.vald.api.v1.rpc.RequestInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/src/main/java/org/vdaas/vald/api/v1/rpc/RequestInfoOrBuilder.java b/src/main/java/org/vdaas/vald/api/v1/rpc/RequestInfoOrBuilder.java new file mode 100644 index 00000000..5f261410 --- /dev/null +++ b/src/main/java/org/vdaas/vald/api/v1/rpc/RequestInfoOrBuilder.java @@ -0,0 +1,53 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: apis/proto/v1/rpc/error_details.proto + +package org.vdaas.vald.api.v1.rpc; + +public interface RequestInfoOrBuilder extends + // @@protoc_insertion_point(interface_extends:rpc.v1.RequestInfo) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * An opaque string that should only be interpreted by the service generating
+   * it. For example, it can be used to identify requests in the service's logs.
+   * 
+ * + * string request_id = 1; + * @return The requestId. + */ + java.lang.String getRequestId(); + /** + *
+   * An opaque string that should only be interpreted by the service generating
+   * it. For example, it can be used to identify requests in the service's logs.
+   * 
+ * + * string request_id = 1; + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString + getRequestIdBytes(); + + /** + *
+   * Any data that was used to serve this request. For example, an encrypted
+   * stack trace that can be sent back to the service provider for debugging.
+   * 
+ * + * string serving_data = 2; + * @return The servingData. + */ + java.lang.String getServingData(); + /** + *
+   * Any data that was used to serve this request. For example, an encrypted
+   * stack trace that can be sent back to the service provider for debugging.
+   * 
+ * + * string serving_data = 2; + * @return The bytes for servingData. + */ + com.google.protobuf.ByteString + getServingDataBytes(); +} diff --git a/src/main/java/org/vdaas/vald/api/v1/rpc/ResourceInfo.java b/src/main/java/org/vdaas/vald/api/v1/rpc/ResourceInfo.java new file mode 100644 index 00000000..1338f7b1 --- /dev/null +++ b/src/main/java/org/vdaas/vald/api/v1/rpc/ResourceInfo.java @@ -0,0 +1,1132 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: apis/proto/v1/rpc/error_details.proto + +package org.vdaas.vald.api.v1.rpc; + +/** + *
+ * Describes the resource that is being accessed.
+ * 
+ * + * Protobuf type {@code rpc.v1.ResourceInfo} + */ +public final class ResourceInfo extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:rpc.v1.ResourceInfo) + ResourceInfoOrBuilder { +private static final long serialVersionUID = 0L; + // Use ResourceInfo.newBuilder() to construct. + private ResourceInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ResourceInfo() { + resourceType_ = ""; + resourceName_ = ""; + owner_ = ""; + description_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ResourceInfo(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.vdaas.vald.api.v1.rpc.ErrorDetailsProto.internal_static_rpc_v1_ResourceInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.vdaas.vald.api.v1.rpc.ErrorDetailsProto.internal_static_rpc_v1_ResourceInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.vdaas.vald.api.v1.rpc.ResourceInfo.class, org.vdaas.vald.api.v1.rpc.ResourceInfo.Builder.class); + } + + public static final int RESOURCE_TYPE_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object resourceType_ = ""; + /** + *
+   * A name for the type of resource being accessed, e.g. "sql table",
+   * "cloud storage bucket", "file", "Google calendar"; or the type URL
+   * of the resource: e.g. "type.googleapis.com/google.pubsub.v1.Topic".
+   * 
+ * + * string resource_type = 1; + * @return The resourceType. + */ + @java.lang.Override + public java.lang.String getResourceType() { + java.lang.Object ref = resourceType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resourceType_ = s; + return s; + } + } + /** + *
+   * A name for the type of resource being accessed, e.g. "sql table",
+   * "cloud storage bucket", "file", "Google calendar"; or the type URL
+   * of the resource: e.g. "type.googleapis.com/google.pubsub.v1.Topic".
+   * 
+ * + * string resource_type = 1; + * @return The bytes for resourceType. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getResourceTypeBytes() { + java.lang.Object ref = resourceType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + resourceType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RESOURCE_NAME_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object resourceName_ = ""; + /** + *
+   * The name of the resource being accessed.  For example, a shared calendar
+   * name: "example.com_4fghdhgsrgh@group.calendar.google.com", if the current
+   * error is
+   * [google.rpc.Code.PERMISSION_DENIED][google.rpc.Code.PERMISSION_DENIED].
+   * 
+ * + * string resource_name = 2; + * @return The resourceName. + */ + @java.lang.Override + public java.lang.String getResourceName() { + java.lang.Object ref = resourceName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resourceName_ = s; + return s; + } + } + /** + *
+   * The name of the resource being accessed.  For example, a shared calendar
+   * name: "example.com_4fghdhgsrgh@group.calendar.google.com", if the current
+   * error is
+   * [google.rpc.Code.PERMISSION_DENIED][google.rpc.Code.PERMISSION_DENIED].
+   * 
+ * + * string resource_name = 2; + * @return The bytes for resourceName. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getResourceNameBytes() { + java.lang.Object ref = resourceName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + resourceName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OWNER_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object owner_ = ""; + /** + *
+   * The owner of the resource (optional).
+   * For example, "user:<owner email>" or "project:<Google developer project
+   * id>".
+   * 
+ * + * string owner = 3; + * @return The owner. + */ + @java.lang.Override + public java.lang.String getOwner() { + java.lang.Object ref = owner_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + owner_ = s; + return s; + } + } + /** + *
+   * The owner of the resource (optional).
+   * For example, "user:<owner email>" or "project:<Google developer project
+   * id>".
+   * 
+ * + * string owner = 3; + * @return The bytes for owner. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getOwnerBytes() { + java.lang.Object ref = owner_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + owner_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTION_FIELD_NUMBER = 4; + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + /** + *
+   * Describes what error is encountered when accessing this resource.
+   * For example, updating a cloud project may require the `writer` permission
+   * on the developer console project.
+   * 
+ * + * string description = 4; + * @return The description. + */ + @java.lang.Override + 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; + } + } + /** + *
+   * Describes what error is encountered when accessing this resource.
+   * For example, updating a cloud project may require the `writer` permission
+   * on the developer console project.
+   * 
+ * + * string description = 4; + * @return The bytes for description. + */ + @java.lang.Override + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceType_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resourceType_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, resourceName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(owner_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, owner_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, description_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceType_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, resourceType_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, resourceName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(owner_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, owner_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, description_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.vdaas.vald.api.v1.rpc.ResourceInfo)) { + return super.equals(obj); + } + org.vdaas.vald.api.v1.rpc.ResourceInfo other = (org.vdaas.vald.api.v1.rpc.ResourceInfo) obj; + + if (!getResourceType() + .equals(other.getResourceType())) return false; + if (!getResourceName() + .equals(other.getResourceName())) return false; + if (!getOwner() + .equals(other.getOwner())) return false; + if (!getDescription() + .equals(other.getDescription())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + RESOURCE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getResourceType().hashCode(); + hash = (37 * hash) + RESOURCE_NAME_FIELD_NUMBER; + hash = (53 * hash) + getResourceName().hashCode(); + hash = (37 * hash) + OWNER_FIELD_NUMBER; + hash = (53 * hash) + getOwner().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.vdaas.vald.api.v1.rpc.ResourceInfo parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.vdaas.vald.api.v1.rpc.ResourceInfo parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.vdaas.vald.api.v1.rpc.ResourceInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.vdaas.vald.api.v1.rpc.ResourceInfo parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.vdaas.vald.api.v1.rpc.ResourceInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.vdaas.vald.api.v1.rpc.ResourceInfo parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.vdaas.vald.api.v1.rpc.ResourceInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.vdaas.vald.api.v1.rpc.ResourceInfo parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static org.vdaas.vald.api.v1.rpc.ResourceInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static org.vdaas.vald.api.v1.rpc.ResourceInfo parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.vdaas.vald.api.v1.rpc.ResourceInfo parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.vdaas.vald.api.v1.rpc.ResourceInfo parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.vdaas.vald.api.v1.rpc.ResourceInfo prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new 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 resource that is being accessed.
+   * 
+ * + * Protobuf type {@code rpc.v1.ResourceInfo} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:rpc.v1.ResourceInfo) + org.vdaas.vald.api.v1.rpc.ResourceInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.vdaas.vald.api.v1.rpc.ErrorDetailsProto.internal_static_rpc_v1_ResourceInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.vdaas.vald.api.v1.rpc.ErrorDetailsProto.internal_static_rpc_v1_ResourceInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.vdaas.vald.api.v1.rpc.ResourceInfo.class, org.vdaas.vald.api.v1.rpc.ResourceInfo.Builder.class); + } + + // Construct using org.vdaas.vald.api.v1.rpc.ResourceInfo.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + resourceType_ = ""; + resourceName_ = ""; + owner_ = ""; + description_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.vdaas.vald.api.v1.rpc.ErrorDetailsProto.internal_static_rpc_v1_ResourceInfo_descriptor; + } + + @java.lang.Override + public org.vdaas.vald.api.v1.rpc.ResourceInfo getDefaultInstanceForType() { + return org.vdaas.vald.api.v1.rpc.ResourceInfo.getDefaultInstance(); + } + + @java.lang.Override + public org.vdaas.vald.api.v1.rpc.ResourceInfo build() { + org.vdaas.vald.api.v1.rpc.ResourceInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.vdaas.vald.api.v1.rpc.ResourceInfo buildPartial() { + org.vdaas.vald.api.v1.rpc.ResourceInfo result = new org.vdaas.vald.api.v1.rpc.ResourceInfo(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(org.vdaas.vald.api.v1.rpc.ResourceInfo result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.resourceType_ = resourceType_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.resourceName_ = resourceName_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.owner_ = owner_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.description_ = description_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.vdaas.vald.api.v1.rpc.ResourceInfo) { + return mergeFrom((org.vdaas.vald.api.v1.rpc.ResourceInfo)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.vdaas.vald.api.v1.rpc.ResourceInfo other) { + if (other == org.vdaas.vald.api.v1.rpc.ResourceInfo.getDefaultInstance()) return this; + if (!other.getResourceType().isEmpty()) { + resourceType_ = other.resourceType_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getResourceName().isEmpty()) { + resourceName_ = other.resourceName_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getOwner().isEmpty()) { + owner_ = other.owner_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000008; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + resourceType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + resourceName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + owner_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object resourceType_ = ""; + /** + *
+     * A name for the type of resource being accessed, e.g. "sql table",
+     * "cloud storage bucket", "file", "Google calendar"; or the type URL
+     * of the resource: e.g. "type.googleapis.com/google.pubsub.v1.Topic".
+     * 
+ * + * string resource_type = 1; + * @return The resourceType. + */ + public java.lang.String getResourceType() { + java.lang.Object ref = resourceType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resourceType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * A name for the type of resource being accessed, e.g. "sql table",
+     * "cloud storage bucket", "file", "Google calendar"; or the type URL
+     * of the resource: e.g. "type.googleapis.com/google.pubsub.v1.Topic".
+     * 
+ * + * string resource_type = 1; + * @return The bytes for resourceType. + */ + public com.google.protobuf.ByteString + getResourceTypeBytes() { + java.lang.Object ref = resourceType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + resourceType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * A name for the type of resource being accessed, e.g. "sql table",
+     * "cloud storage bucket", "file", "Google calendar"; or the type URL
+     * of the resource: e.g. "type.googleapis.com/google.pubsub.v1.Topic".
+     * 
+ * + * string resource_type = 1; + * @param value The resourceType to set. + * @return This builder for chaining. + */ + public Builder setResourceType( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + resourceType_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * A name for the type of resource being accessed, e.g. "sql table",
+     * "cloud storage bucket", "file", "Google calendar"; or the type URL
+     * of the resource: e.g. "type.googleapis.com/google.pubsub.v1.Topic".
+     * 
+ * + * string resource_type = 1; + * @return This builder for chaining. + */ + public Builder clearResourceType() { + resourceType_ = getDefaultInstance().getResourceType(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * A name for the type of resource being accessed, e.g. "sql table",
+     * "cloud storage bucket", "file", "Google calendar"; or the type URL
+     * of the resource: e.g. "type.googleapis.com/google.pubsub.v1.Topic".
+     * 
+ * + * string resource_type = 1; + * @param value The bytes for resourceType to set. + * @return This builder for chaining. + */ + public Builder setResourceTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + resourceType_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object resourceName_ = ""; + /** + *
+     * The name of the resource being accessed.  For example, a shared calendar
+     * name: "example.com_4fghdhgsrgh@group.calendar.google.com", if the current
+     * error is
+     * [google.rpc.Code.PERMISSION_DENIED][google.rpc.Code.PERMISSION_DENIED].
+     * 
+ * + * string resource_name = 2; + * @return The resourceName. + */ + public java.lang.String getResourceName() { + java.lang.Object ref = resourceName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resourceName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The name of the resource being accessed.  For example, a shared calendar
+     * name: "example.com_4fghdhgsrgh@group.calendar.google.com", if the current
+     * error is
+     * [google.rpc.Code.PERMISSION_DENIED][google.rpc.Code.PERMISSION_DENIED].
+     * 
+ * + * string resource_name = 2; + * @return The bytes for resourceName. + */ + public com.google.protobuf.ByteString + getResourceNameBytes() { + java.lang.Object ref = resourceName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + resourceName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The name of the resource being accessed.  For example, a shared calendar
+     * name: "example.com_4fghdhgsrgh@group.calendar.google.com", if the current
+     * error is
+     * [google.rpc.Code.PERMISSION_DENIED][google.rpc.Code.PERMISSION_DENIED].
+     * 
+ * + * string resource_name = 2; + * @param value The resourceName to set. + * @return This builder for chaining. + */ + public Builder setResourceName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + resourceName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * The name of the resource being accessed.  For example, a shared calendar
+     * name: "example.com_4fghdhgsrgh@group.calendar.google.com", if the current
+     * error is
+     * [google.rpc.Code.PERMISSION_DENIED][google.rpc.Code.PERMISSION_DENIED].
+     * 
+ * + * string resource_name = 2; + * @return This builder for chaining. + */ + public Builder clearResourceName() { + resourceName_ = getDefaultInstance().getResourceName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+     * The name of the resource being accessed.  For example, a shared calendar
+     * name: "example.com_4fghdhgsrgh@group.calendar.google.com", if the current
+     * error is
+     * [google.rpc.Code.PERMISSION_DENIED][google.rpc.Code.PERMISSION_DENIED].
+     * 
+ * + * string resource_name = 2; + * @param value The bytes for resourceName to set. + * @return This builder for chaining. + */ + public Builder setResourceNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + resourceName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object owner_ = ""; + /** + *
+     * The owner of the resource (optional).
+     * For example, "user:<owner email>" or "project:<Google developer project
+     * id>".
+     * 
+ * + * string owner = 3; + * @return The owner. + */ + public java.lang.String getOwner() { + java.lang.Object ref = owner_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + owner_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The owner of the resource (optional).
+     * For example, "user:<owner email>" or "project:<Google developer project
+     * id>".
+     * 
+ * + * string owner = 3; + * @return The bytes for owner. + */ + public com.google.protobuf.ByteString + getOwnerBytes() { + java.lang.Object ref = owner_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + owner_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The owner of the resource (optional).
+     * For example, "user:<owner email>" or "project:<Google developer project
+     * id>".
+     * 
+ * + * string owner = 3; + * @param value The owner to set. + * @return This builder for chaining. + */ + public Builder setOwner( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + owner_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * The owner of the resource (optional).
+     * For example, "user:<owner email>" or "project:<Google developer project
+     * id>".
+     * 
+ * + * string owner = 3; + * @return This builder for chaining. + */ + public Builder clearOwner() { + owner_ = getDefaultInstance().getOwner(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+     * The owner of the resource (optional).
+     * For example, "user:<owner email>" or "project:<Google developer project
+     * id>".
+     * 
+ * + * string owner = 3; + * @param value The bytes for owner to set. + * @return This builder for chaining. + */ + public Builder setOwnerBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + owner_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + /** + *
+     * Describes what error is encountered when accessing this resource.
+     * For example, updating a cloud project may require the `writer` permission
+     * on the developer console project.
+     * 
+ * + * string description = 4; + * @return The description. + */ + 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; + } + } + /** + *
+     * Describes what error is encountered when accessing this resource.
+     * For example, updating a cloud project may require the `writer` permission
+     * on the developer console project.
+     * 
+ * + * string description = 4; + * @return The bytes for description. + */ + 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; + } + } + /** + *
+     * Describes what error is encountered when accessing this resource.
+     * For example, updating a cloud project may require the `writer` permission
+     * on the developer console project.
+     * 
+ * + * string description = 4; + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + description_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * Describes what error is encountered when accessing this resource.
+     * For example, updating a cloud project may require the `writer` permission
+     * on the developer console project.
+     * 
+ * + * string description = 4; + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + *
+     * Describes what error is encountered when accessing this resource.
+     * For example, updating a cloud project may require the `writer` permission
+     * on the developer console project.
+     * 
+ * + * string description = 4; + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + description_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:rpc.v1.ResourceInfo) + } + + // @@protoc_insertion_point(class_scope:rpc.v1.ResourceInfo) + private static final org.vdaas.vald.api.v1.rpc.ResourceInfo DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.vdaas.vald.api.v1.rpc.ResourceInfo(); + } + + public static org.vdaas.vald.api.v1.rpc.ResourceInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ResourceInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public org.vdaas.vald.api.v1.rpc.ResourceInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/src/main/java/org/vdaas/vald/api/v1/rpc/ResourceInfoOrBuilder.java b/src/main/java/org/vdaas/vald/api/v1/rpc/ResourceInfoOrBuilder.java new file mode 100644 index 00000000..90e9033b --- /dev/null +++ b/src/main/java/org/vdaas/vald/api/v1/rpc/ResourceInfoOrBuilder.java @@ -0,0 +1,107 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: apis/proto/v1/rpc/error_details.proto + +package org.vdaas.vald.api.v1.rpc; + +public interface ResourceInfoOrBuilder extends + // @@protoc_insertion_point(interface_extends:rpc.v1.ResourceInfo) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * A name for the type of resource being accessed, e.g. "sql table",
+   * "cloud storage bucket", "file", "Google calendar"; or the type URL
+   * of the resource: e.g. "type.googleapis.com/google.pubsub.v1.Topic".
+   * 
+ * + * string resource_type = 1; + * @return The resourceType. + */ + java.lang.String getResourceType(); + /** + *
+   * A name for the type of resource being accessed, e.g. "sql table",
+   * "cloud storage bucket", "file", "Google calendar"; or the type URL
+   * of the resource: e.g. "type.googleapis.com/google.pubsub.v1.Topic".
+   * 
+ * + * string resource_type = 1; + * @return The bytes for resourceType. + */ + com.google.protobuf.ByteString + getResourceTypeBytes(); + + /** + *
+   * The name of the resource being accessed.  For example, a shared calendar
+   * name: "example.com_4fghdhgsrgh@group.calendar.google.com", if the current
+   * error is
+   * [google.rpc.Code.PERMISSION_DENIED][google.rpc.Code.PERMISSION_DENIED].
+   * 
+ * + * string resource_name = 2; + * @return The resourceName. + */ + java.lang.String getResourceName(); + /** + *
+   * The name of the resource being accessed.  For example, a shared calendar
+   * name: "example.com_4fghdhgsrgh@group.calendar.google.com", if the current
+   * error is
+   * [google.rpc.Code.PERMISSION_DENIED][google.rpc.Code.PERMISSION_DENIED].
+   * 
+ * + * string resource_name = 2; + * @return The bytes for resourceName. + */ + com.google.protobuf.ByteString + getResourceNameBytes(); + + /** + *
+   * The owner of the resource (optional).
+   * For example, "user:<owner email>" or "project:<Google developer project
+   * id>".
+   * 
+ * + * string owner = 3; + * @return The owner. + */ + java.lang.String getOwner(); + /** + *
+   * The owner of the resource (optional).
+   * For example, "user:<owner email>" or "project:<Google developer project
+   * id>".
+   * 
+ * + * string owner = 3; + * @return The bytes for owner. + */ + com.google.protobuf.ByteString + getOwnerBytes(); + + /** + *
+   * Describes what error is encountered when accessing this resource.
+   * For example, updating a cloud project may require the `writer` permission
+   * on the developer console project.
+   * 
+ * + * string description = 4; + * @return The description. + */ + java.lang.String getDescription(); + /** + *
+   * Describes what error is encountered when accessing this resource.
+   * For example, updating a cloud project may require the `writer` permission
+   * on the developer console project.
+   * 
+ * + * string description = 4; + * @return The bytes for description. + */ + com.google.protobuf.ByteString + getDescriptionBytes(); +} diff --git a/src/main/java/org/vdaas/vald/api/v1/rpc/RetryInfo.java b/src/main/java/org/vdaas/vald/api/v1/rpc/RetryInfo.java new file mode 100644 index 00000000..3bfd547d --- /dev/null +++ b/src/main/java/org/vdaas/vald/api/v1/rpc/RetryInfo.java @@ -0,0 +1,678 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: apis/proto/v1/rpc/error_details.proto + +package org.vdaas.vald.api.v1.rpc; + +/** + *
+ * Describes when the clients can retry a failed request. Clients could ignore
+ * the recommendation here or retry when this information is missing from error
+ * responses.
+ *
+ * It's always recommended that clients should use exponential backoff when
+ * retrying.
+ *
+ * Clients should wait until `retry_delay` amount of time has passed since
+ * receiving the error response before retrying.  If retrying requests also
+ * fail, clients should use an exponential backoff scheme to gradually increase
+ * the delay between retries based on `retry_delay`, until either a maximum
+ * number of retries have been reached or a maximum retry delay cap has been
+ * reached.
+ * 
+ * + * Protobuf type {@code rpc.v1.RetryInfo} + */ +public final class RetryInfo extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:rpc.v1.RetryInfo) + RetryInfoOrBuilder { +private static final long serialVersionUID = 0L; + // Use RetryInfo.newBuilder() to construct. + private RetryInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private RetryInfo() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new RetryInfo(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.vdaas.vald.api.v1.rpc.ErrorDetailsProto.internal_static_rpc_v1_RetryInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.vdaas.vald.api.v1.rpc.ErrorDetailsProto.internal_static_rpc_v1_RetryInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.vdaas.vald.api.v1.rpc.RetryInfo.class, org.vdaas.vald.api.v1.rpc.RetryInfo.Builder.class); + } + + private int bitField0_; + public static final int RETRY_DELAY_FIELD_NUMBER = 1; + private com.google.protobuf.Duration retryDelay_; + /** + *
+   * Clients should wait at least this long between retrying the same request.
+   * 
+ * + * .google.protobuf.Duration retry_delay = 1; + * @return Whether the retryDelay field is set. + */ + @java.lang.Override + public boolean hasRetryDelay() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+   * Clients should wait at least this long between retrying the same request.
+   * 
+ * + * .google.protobuf.Duration retry_delay = 1; + * @return The retryDelay. + */ + @java.lang.Override + public com.google.protobuf.Duration getRetryDelay() { + return retryDelay_ == null ? com.google.protobuf.Duration.getDefaultInstance() : retryDelay_; + } + /** + *
+   * Clients should wait at least this long between retrying the same request.
+   * 
+ * + * .google.protobuf.Duration retry_delay = 1; + */ + @java.lang.Override + public com.google.protobuf.DurationOrBuilder getRetryDelayOrBuilder() { + return retryDelay_ == null ? com.google.protobuf.Duration.getDefaultInstance() : retryDelay_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + 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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getRetryDelay()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getRetryDelay()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.vdaas.vald.api.v1.rpc.RetryInfo)) { + return super.equals(obj); + } + org.vdaas.vald.api.v1.rpc.RetryInfo other = (org.vdaas.vald.api.v1.rpc.RetryInfo) obj; + + if (hasRetryDelay() != other.hasRetryDelay()) return false; + if (hasRetryDelay()) { + if (!getRetryDelay() + .equals(other.getRetryDelay())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRetryDelay()) { + hash = (37 * hash) + RETRY_DELAY_FIELD_NUMBER; + hash = (53 * hash) + getRetryDelay().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.vdaas.vald.api.v1.rpc.RetryInfo parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.vdaas.vald.api.v1.rpc.RetryInfo parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.vdaas.vald.api.v1.rpc.RetryInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.vdaas.vald.api.v1.rpc.RetryInfo parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.vdaas.vald.api.v1.rpc.RetryInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.vdaas.vald.api.v1.rpc.RetryInfo parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.vdaas.vald.api.v1.rpc.RetryInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.vdaas.vald.api.v1.rpc.RetryInfo parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static org.vdaas.vald.api.v1.rpc.RetryInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static org.vdaas.vald.api.v1.rpc.RetryInfo parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static org.vdaas.vald.api.v1.rpc.RetryInfo parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.vdaas.vald.api.v1.rpc.RetryInfo parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(org.vdaas.vald.api.v1.rpc.RetryInfo prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new 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 when the clients can retry a failed request. Clients could ignore
+   * the recommendation here or retry when this information is missing from error
+   * responses.
+   *
+   * It's always recommended that clients should use exponential backoff when
+   * retrying.
+   *
+   * Clients should wait until `retry_delay` amount of time has passed since
+   * receiving the error response before retrying.  If retrying requests also
+   * fail, clients should use an exponential backoff scheme to gradually increase
+   * the delay between retries based on `retry_delay`, until either a maximum
+   * number of retries have been reached or a maximum retry delay cap has been
+   * reached.
+   * 
+ * + * Protobuf type {@code rpc.v1.RetryInfo} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:rpc.v1.RetryInfo) + org.vdaas.vald.api.v1.rpc.RetryInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.vdaas.vald.api.v1.rpc.ErrorDetailsProto.internal_static_rpc_v1_RetryInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.vdaas.vald.api.v1.rpc.ErrorDetailsProto.internal_static_rpc_v1_RetryInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.vdaas.vald.api.v1.rpc.RetryInfo.class, org.vdaas.vald.api.v1.rpc.RetryInfo.Builder.class); + } + + // Construct using org.vdaas.vald.api.v1.rpc.RetryInfo.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getRetryDelayFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + retryDelay_ = null; + if (retryDelayBuilder_ != null) { + retryDelayBuilder_.dispose(); + retryDelayBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.vdaas.vald.api.v1.rpc.ErrorDetailsProto.internal_static_rpc_v1_RetryInfo_descriptor; + } + + @java.lang.Override + public org.vdaas.vald.api.v1.rpc.RetryInfo getDefaultInstanceForType() { + return org.vdaas.vald.api.v1.rpc.RetryInfo.getDefaultInstance(); + } + + @java.lang.Override + public org.vdaas.vald.api.v1.rpc.RetryInfo build() { + org.vdaas.vald.api.v1.rpc.RetryInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.vdaas.vald.api.v1.rpc.RetryInfo buildPartial() { + org.vdaas.vald.api.v1.rpc.RetryInfo result = new org.vdaas.vald.api.v1.rpc.RetryInfo(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(org.vdaas.vald.api.v1.rpc.RetryInfo result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.retryDelay_ = retryDelayBuilder_ == null + ? retryDelay_ + : retryDelayBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.vdaas.vald.api.v1.rpc.RetryInfo) { + return mergeFrom((org.vdaas.vald.api.v1.rpc.RetryInfo)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.vdaas.vald.api.v1.rpc.RetryInfo other) { + if (other == org.vdaas.vald.api.v1.rpc.RetryInfo.getDefaultInstance()) return this; + if (other.hasRetryDelay()) { + mergeRetryDelay(other.getRetryDelay()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getRetryDelayFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private com.google.protobuf.Duration retryDelay_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> retryDelayBuilder_; + /** + *
+     * Clients should wait at least this long between retrying the same request.
+     * 
+ * + * .google.protobuf.Duration retry_delay = 1; + * @return Whether the retryDelay field is set. + */ + public boolean hasRetryDelay() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+     * Clients should wait at least this long between retrying the same request.
+     * 
+ * + * .google.protobuf.Duration retry_delay = 1; + * @return The retryDelay. + */ + public com.google.protobuf.Duration getRetryDelay() { + if (retryDelayBuilder_ == null) { + return retryDelay_ == null ? com.google.protobuf.Duration.getDefaultInstance() : retryDelay_; + } else { + return retryDelayBuilder_.getMessage(); + } + } + /** + *
+     * Clients should wait at least this long between retrying the same request.
+     * 
+ * + * .google.protobuf.Duration retry_delay = 1; + */ + public Builder setRetryDelay(com.google.protobuf.Duration value) { + if (retryDelayBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + retryDelay_ = value; + } else { + retryDelayBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Clients should wait at least this long between retrying the same request.
+     * 
+ * + * .google.protobuf.Duration retry_delay = 1; + */ + public Builder setRetryDelay( + com.google.protobuf.Duration.Builder builderForValue) { + if (retryDelayBuilder_ == null) { + retryDelay_ = builderForValue.build(); + } else { + retryDelayBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Clients should wait at least this long between retrying the same request.
+     * 
+ * + * .google.protobuf.Duration retry_delay = 1; + */ + public Builder mergeRetryDelay(com.google.protobuf.Duration value) { + if (retryDelayBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + retryDelay_ != null && + retryDelay_ != com.google.protobuf.Duration.getDefaultInstance()) { + getRetryDelayBuilder().mergeFrom(value); + } else { + retryDelay_ = value; + } + } else { + retryDelayBuilder_.mergeFrom(value); + } + if (retryDelay_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + *
+     * Clients should wait at least this long between retrying the same request.
+     * 
+ * + * .google.protobuf.Duration retry_delay = 1; + */ + public Builder clearRetryDelay() { + bitField0_ = (bitField0_ & ~0x00000001); + retryDelay_ = null; + if (retryDelayBuilder_ != null) { + retryDelayBuilder_.dispose(); + retryDelayBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Clients should wait at least this long between retrying the same request.
+     * 
+ * + * .google.protobuf.Duration retry_delay = 1; + */ + public com.google.protobuf.Duration.Builder getRetryDelayBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getRetryDelayFieldBuilder().getBuilder(); + } + /** + *
+     * Clients should wait at least this long between retrying the same request.
+     * 
+ * + * .google.protobuf.Duration retry_delay = 1; + */ + public com.google.protobuf.DurationOrBuilder getRetryDelayOrBuilder() { + if (retryDelayBuilder_ != null) { + return retryDelayBuilder_.getMessageOrBuilder(); + } else { + return retryDelay_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : retryDelay_; + } + } + /** + *
+     * Clients should wait at least this long between retrying the same request.
+     * 
+ * + * .google.protobuf.Duration retry_delay = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + getRetryDelayFieldBuilder() { + if (retryDelayBuilder_ == null) { + retryDelayBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getRetryDelay(), + getParentForChildren(), + isClean()); + retryDelay_ = null; + } + return retryDelayBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:rpc.v1.RetryInfo) + } + + // @@protoc_insertion_point(class_scope:rpc.v1.RetryInfo) + private static final org.vdaas.vald.api.v1.rpc.RetryInfo DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.vdaas.vald.api.v1.rpc.RetryInfo(); + } + + public static org.vdaas.vald.api.v1.rpc.RetryInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RetryInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public org.vdaas.vald.api.v1.rpc.RetryInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/src/main/java/org/vdaas/vald/api/v1/rpc/RetryInfoOrBuilder.java b/src/main/java/org/vdaas/vald/api/v1/rpc/RetryInfoOrBuilder.java new file mode 100644 index 00000000..9ebebe8c --- /dev/null +++ b/src/main/java/org/vdaas/vald/api/v1/rpc/RetryInfoOrBuilder.java @@ -0,0 +1,36 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: apis/proto/v1/rpc/error_details.proto + +package org.vdaas.vald.api.v1.rpc; + +public interface RetryInfoOrBuilder extends + // @@protoc_insertion_point(interface_extends:rpc.v1.RetryInfo) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Clients should wait at least this long between retrying the same request.
+   * 
+ * + * .google.protobuf.Duration retry_delay = 1; + * @return Whether the retryDelay field is set. + */ + boolean hasRetryDelay(); + /** + *
+   * Clients should wait at least this long between retrying the same request.
+   * 
+ * + * .google.protobuf.Duration retry_delay = 1; + * @return The retryDelay. + */ + com.google.protobuf.Duration getRetryDelay(); + /** + *
+   * Clients should wait at least this long between retrying the same request.
+   * 
+ * + * .google.protobuf.Duration retry_delay = 1; + */ + com.google.protobuf.DurationOrBuilder getRetryDelayOrBuilder(); +} diff --git a/src/main/java/org/vdaas/vald/api/v1/vald/FilterGrpc.java b/src/main/java/org/vdaas/vald/api/v1/vald/FilterGrpc.java index f41b8837..5d64819b 100644 --- a/src/main/java/org/vdaas/vald/api/v1/vald/FilterGrpc.java +++ b/src/main/java/org/vdaas/vald/api/v1/vald/FilterGrpc.java @@ -8,14 +8,14 @@ *
*/ @javax.annotation.Generated( - value = "by gRPC proto compiler (version 1.55.1)", + value = "by gRPC proto compiler (version 1.58.0)", comments = "Source: apis/proto/v1/vald/filter.proto") @io.grpc.stub.annotations.GrpcGenerated public final class FilterGrpc { private FilterGrpc() {} - public static final String SERVICE_NAME = "vald.v1.Filter"; + public static final java.lang.String SERVICE_NAME = "vald.v1.Filter"; // Static method descriptors that strictly reflect the proto. private static volatile io.grpc.MethodDescriptor */ @javax.annotation.Generated( - value = "by gRPC proto compiler (version 1.55.1)", + value = "by gRPC proto compiler (version 1.58.0)", comments = "Source: apis/proto/v1/vald/insert.proto") @io.grpc.stub.annotations.GrpcGenerated public final class InsertGrpc { private InsertGrpc() {} - public static final String SERVICE_NAME = "vald.v1.Insert"; + public static final java.lang.String SERVICE_NAME = "vald.v1.Insert"; // Static method descriptors that strictly reflect the proto. private static volatile io.grpc.MethodDescriptor */ @javax.annotation.Generated( - value = "by gRPC proto compiler (version 1.55.1)", + value = "by gRPC proto compiler (version 1.58.0)", comments = "Source: apis/proto/v1/vald/object.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ObjectGrpc { private ObjectGrpc() {} - public static final String SERVICE_NAME = "vald.v1.Object"; + public static final java.lang.String SERVICE_NAME = "vald.v1.Object"; // Static method descriptors that strictly reflect the proto. private static volatile io.grpc.MethodDescriptor getStreamGetObjectMethod() { return getStreamGetObjectMethod; } + private static volatile io.grpc.MethodDescriptor getStreamListObjectMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "StreamListObject", + requestType = org.vdaas.vald.api.v1.payload.Object.List.Request.class, + responseType = org.vdaas.vald.api.v1.payload.Object.List.Response.class, + methodType = io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING) + public static io.grpc.MethodDescriptor getStreamListObjectMethod() { + io.grpc.MethodDescriptor getStreamListObjectMethod; + if ((getStreamListObjectMethod = ObjectGrpc.getStreamListObjectMethod) == null) { + synchronized (ObjectGrpc.class) { + if ((getStreamListObjectMethod = ObjectGrpc.getStreamListObjectMethod) == null) { + ObjectGrpc.getStreamListObjectMethod = getStreamListObjectMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StreamListObject")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + org.vdaas.vald.api.v1.payload.Object.List.Request.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + org.vdaas.vald.api.v1.payload.Object.List.Response.getDefaultInstance())) + .setSchemaDescriptor(new ObjectMethodDescriptorSupplier("StreamListObject")) + .build(); + } + } + } + return getStreamListObjectMethod; + } + /** * Creates a new async stub that supports all call types for the service */ @@ -191,6 +222,16 @@ default io.grpc.stub.StreamObserver responseObserver) { return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall(getStreamGetObjectMethod(), responseObserver); } + + /** + *
+     * A method to get all the vectors with server streaming
+     * 
+ */ + default void streamListObject(org.vdaas.vald.api.v1.payload.Object.List.Request request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getStreamListObjectMethod(), responseObserver); + } } /** @@ -258,6 +299,17 @@ public io.grpc.stub.StreamObserver + * A method to get all the vectors with server streaming + *
+ */ + public void streamListObject(org.vdaas.vald.api.v1.payload.Object.List.Request request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncServerStreamingCall( + getChannel().newCall(getStreamListObjectMethod(), getCallOptions()), request, responseObserver); + } } /** @@ -298,6 +350,17 @@ public org.vdaas.vald.api.v1.payload.Object.Vector getObject(org.vdaas.vald.api. return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetObjectMethod(), getCallOptions(), request); } + + /** + *
+     * A method to get all the vectors with server streaming
+     * 
+ */ + public java.util.Iterator streamListObject( + org.vdaas.vald.api.v1.payload.Object.List.Request request) { + return io.grpc.stub.ClientCalls.blockingServerStreamingCall( + getChannel(), getStreamListObjectMethod(), getCallOptions(), request); + } } /** @@ -344,7 +407,8 @@ public com.google.common.util.concurrent.ListenableFuture implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -371,6 +435,10 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv serviceImpl.getObject((org.vdaas.vald.api.v1.payload.Object.VectorRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_STREAM_LIST_OBJECT: + serviceImpl.streamListObject((org.vdaas.vald.api.v1.payload.Object.List.Request) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; default: throw new AssertionError(); } @@ -413,6 +481,13 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser org.vdaas.vald.api.v1.payload.Object.VectorRequest, org.vdaas.vald.api.v1.payload.Object.StreamVector>( service, METHODID_STREAM_GET_OBJECT))) + .addMethod( + getStreamListObjectMethod(), + io.grpc.stub.ServerCalls.asyncServerStreamingCall( + new MethodHandlers< + org.vdaas.vald.api.v1.payload.Object.List.Request, + org.vdaas.vald.api.v1.payload.Object.List.Response>( + service, METHODID_STREAM_LIST_OBJECT))) .build(); } @@ -439,9 +514,9 @@ private static final class ObjectFileDescriptorSupplier private static final class ObjectMethodDescriptorSupplier extends ObjectBaseDescriptorSupplier implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; + private final java.lang.String methodName; - ObjectMethodDescriptorSupplier(String methodName) { + ObjectMethodDescriptorSupplier(java.lang.String methodName) { this.methodName = methodName; } @@ -464,6 +539,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getExistsMethod()) .addMethod(getGetObjectMethod()) .addMethod(getStreamGetObjectMethod()) + .addMethod(getStreamListObjectMethod()) .build(); } } diff --git a/src/main/java/org/vdaas/vald/api/v1/vald/RemoveGrpc.java b/src/main/java/org/vdaas/vald/api/v1/vald/RemoveGrpc.java index ddb805ff..b14ed08a 100644 --- a/src/main/java/org/vdaas/vald/api/v1/vald/RemoveGrpc.java +++ b/src/main/java/org/vdaas/vald/api/v1/vald/RemoveGrpc.java @@ -8,14 +8,14 @@ *
*/ @javax.annotation.Generated( - value = "by gRPC proto compiler (version 1.55.1)", + value = "by gRPC proto compiler (version 1.58.0)", comments = "Source: apis/proto/v1/vald/remove.proto") @io.grpc.stub.annotations.GrpcGenerated public final class RemoveGrpc { private RemoveGrpc() {} - public static final String SERVICE_NAME = "vald.v1.Remove"; + public static final java.lang.String SERVICE_NAME = "vald.v1.Remove"; // Static method descriptors that strictly reflect the proto. private static volatile io.grpc.MethodDescriptor getRemoveMethod() { return getRemoveMethod; } + private static volatile io.grpc.MethodDescriptor getRemoveByTimestampMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "RemoveByTimestamp", + requestType = org.vdaas.vald.api.v1.payload.Remove.TimestampRequest.class, + responseType = org.vdaas.vald.api.v1.payload.Object.Locations.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getRemoveByTimestampMethod() { + io.grpc.MethodDescriptor getRemoveByTimestampMethod; + if ((getRemoveByTimestampMethod = RemoveGrpc.getRemoveByTimestampMethod) == null) { + synchronized (RemoveGrpc.class) { + if ((getRemoveByTimestampMethod = RemoveGrpc.getRemoveByTimestampMethod) == null) { + RemoveGrpc.getRemoveByTimestampMethod = getRemoveByTimestampMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RemoveByTimestamp")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + org.vdaas.vald.api.v1.payload.Remove.TimestampRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + org.vdaas.vald.api.v1.payload.Object.Locations.getDefaultInstance())) + .setSchemaDescriptor(new RemoveMethodDescriptorSupplier("RemoveByTimestamp")) + .build(); + } + } + } + return getRemoveByTimestampMethod; + } + private static volatile io.grpc.MethodDescriptor getStreamRemoveMethod; @@ -172,6 +203,16 @@ default void remove(org.vdaas.vald.api.v1.payload.Remove.Request request, io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRemoveMethod(), responseObserver); } + /** + *
+     * A method to remove an indexed vector based on timestamp.
+     * 
+ */ + default void removeByTimestamp(org.vdaas.vald.api.v1.payload.Remove.TimestampRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRemoveByTimestampMethod(), responseObserver); + } + /** *
      * A method to remove multiple indexed vectors by bidirectional streaming.
@@ -237,6 +278,17 @@ public void remove(org.vdaas.vald.api.v1.payload.Remove.Request request,
           getChannel().newCall(getRemoveMethod(), getCallOptions()), request, responseObserver);
     }
 
+    /**
+     * 
+     * A method to remove an indexed vector based on timestamp.
+     * 
+ */ + public void removeByTimestamp(org.vdaas.vald.api.v1.payload.Remove.TimestampRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getRemoveByTimestampMethod(), getCallOptions()), request, responseObserver); + } + /** *
      * A method to remove multiple indexed vectors by bidirectional streaming.
@@ -289,6 +341,16 @@ public org.vdaas.vald.api.v1.payload.Object.Location remove(org.vdaas.vald.api.v
           getChannel(), getRemoveMethod(), getCallOptions(), request);
     }
 
+    /**
+     * 
+     * A method to remove an indexed vector based on timestamp.
+     * 
+ */ + public org.vdaas.vald.api.v1.payload.Object.Locations removeByTimestamp(org.vdaas.vald.api.v1.payload.Remove.TimestampRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRemoveByTimestampMethod(), getCallOptions(), request); + } + /** *
      * A method to remove multiple indexed vectors in a single request.
@@ -330,6 +392,17 @@ public com.google.common.util.concurrent.ListenableFuture
+     * A method to remove an indexed vector based on timestamp.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture removeByTimestamp( + org.vdaas.vald.api.v1.payload.Remove.TimestampRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getRemoveByTimestampMethod(), getCallOptions()), request); + } + /** *
      * A method to remove multiple indexed vectors in a single request.
@@ -343,8 +416,9 @@ public com.google.common.util.concurrent.ListenableFuture implements
       io.grpc.stub.ServerCalls.UnaryMethod,
@@ -367,6 +441,10 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv
           serviceImpl.remove((org.vdaas.vald.api.v1.payload.Remove.Request) request,
               (io.grpc.stub.StreamObserver) responseObserver);
           break;
+        case METHODID_REMOVE_BY_TIMESTAMP:
+          serviceImpl.removeByTimestamp((org.vdaas.vald.api.v1.payload.Remove.TimestampRequest) request,
+              (io.grpc.stub.StreamObserver) responseObserver);
+          break;
         case METHODID_MULTI_REMOVE:
           serviceImpl.multiRemove((org.vdaas.vald.api.v1.payload.Remove.MultiRequest) request,
               (io.grpc.stub.StreamObserver) responseObserver);
@@ -399,6 +477,13 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser
               org.vdaas.vald.api.v1.payload.Remove.Request,
               org.vdaas.vald.api.v1.payload.Object.Location>(
                 service, METHODID_REMOVE)))
+        .addMethod(
+          getRemoveByTimestampMethod(),
+          io.grpc.stub.ServerCalls.asyncUnaryCall(
+            new MethodHandlers<
+              org.vdaas.vald.api.v1.payload.Remove.TimestampRequest,
+              org.vdaas.vald.api.v1.payload.Object.Locations>(
+                service, METHODID_REMOVE_BY_TIMESTAMP)))
         .addMethod(
           getStreamRemoveMethod(),
           io.grpc.stub.ServerCalls.asyncBidiStreamingCall(
@@ -439,9 +524,9 @@ private static final class RemoveFileDescriptorSupplier
   private static final class RemoveMethodDescriptorSupplier
       extends RemoveBaseDescriptorSupplier
       implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
-    private final String methodName;
+    private final java.lang.String methodName;
 
-    RemoveMethodDescriptorSupplier(String methodName) {
+    RemoveMethodDescriptorSupplier(java.lang.String methodName) {
       this.methodName = methodName;
     }
 
@@ -462,6 +547,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() {
           serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
               .setSchemaDescriptor(new RemoveFileDescriptorSupplier())
               .addMethod(getRemoveMethod())
+              .addMethod(getRemoveByTimestampMethod())
               .addMethod(getStreamRemoveMethod())
               .addMethod(getMultiRemoveMethod())
               .build();
diff --git a/src/main/java/org/vdaas/vald/api/v1/vald/SearchGrpc.java b/src/main/java/org/vdaas/vald/api/v1/vald/SearchGrpc.java
index 467074cf..96f3498a 100644
--- a/src/main/java/org/vdaas/vald/api/v1/vald/SearchGrpc.java
+++ b/src/main/java/org/vdaas/vald/api/v1/vald/SearchGrpc.java
@@ -8,14 +8,14 @@
  * 
*/ @javax.annotation.Generated( - value = "by gRPC proto compiler (version 1.55.1)", + value = "by gRPC proto compiler (version 1.58.0)", comments = "Source: apis/proto/v1/vald/search.proto") @io.grpc.stub.annotations.GrpcGenerated public final class SearchGrpc { private SearchGrpc() {} - public static final String SERVICE_NAME = "vald.v1.Search"; + public static final java.lang.String SERVICE_NAME = "vald.v1.Search"; // Static method descriptors that strictly reflect the proto. private static volatile io.grpc.MethodDescriptor */ @javax.annotation.Generated( - value = "by gRPC proto compiler (version 1.55.1)", + value = "by gRPC proto compiler (version 1.58.0)", comments = "Source: apis/proto/v1/vald/update.proto") @io.grpc.stub.annotations.GrpcGenerated public final class UpdateGrpc { private UpdateGrpc() {} - public static final String SERVICE_NAME = "vald.v1.Update"; + public static final java.lang.String SERVICE_NAME = "vald.v1.Update"; // Static method descriptors that strictly reflect the proto. private static volatile io.grpc.MethodDescriptor */ @javax.annotation.Generated( - value = "by gRPC proto compiler (version 1.55.1)", + value = "by gRPC proto compiler (version 1.58.0)", comments = "Source: apis/proto/v1/vald/upsert.proto") @io.grpc.stub.annotations.GrpcGenerated public final class UpsertGrpc { private UpsertGrpc() {} - public static final String SERVICE_NAME = "vald.v1.Upsert"; + public static final java.lang.String SERVICE_NAME = "vald.v1.Upsert"; // Static method descriptors that strictly reflect the proto. private static volatile io.grpc.MethodDescriptor