From 528a2ae726e9a63a49e4850078f28a14431c033f Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Thu, 18 Feb 2021 09:18:02 -0800 Subject: [PATCH] feat: Enhance the AttributeContext semantics, and other comments update (#113) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/dc937605-665f-4564-809e-8bcc78fcafa9/targets - [ ] To automatically regenerate this PR, check this box. PiperOrigin-RevId: 357075713 Source-Link: https://github.com/googleapis/googleapis/commit/c059c46957b0eb83078e61b4a5170c3d09ea96e6 PiperOrigin-RevId: 355883280 Source-Link: https://github.com/googleapis/googleapis/commit/7f6e0d54743dcb86c618b2f78aac2d51e02834b5 PiperOrigin-RevId: 355218181 Source-Link: https://github.com/googleapis/googleapis/commit/2f8d204b9bc1126439565e25a456eaf6435f38f4 feat: Add `ErrorReason` enum from `google.api.error_reason` for Google API and minor proto updates. chore: Operations proto comment cleanup --- .../google/longrunning/OperationsGrpc.java | 24 +- .../java/com/google/api/FieldBehavior.java | 4 +- .../src/main/java/com/google/api/Service.java | 822 +-- .../java/com/google/api/ServiceOrBuilder.java | 130 +- .../java/com/google/api/ServiceProto.java | 56 +- .../src/main/java/com/google/api/Usage.java | 65 + .../java/com/google/api/UsageOrBuilder.java | 20 + .../google/rpc/context/AttributeContext.java | 4652 +++++++++++++---- .../rpc/context/AttributeContextProto.java | 136 +- synth.metadata | 4 +- 10 files changed, 4354 insertions(+), 1559 deletions(-) diff --git a/grpc-google-common-protos/src/main/java/com/google/longrunning/OperationsGrpc.java b/grpc-google-common-protos/src/main/java/com/google/longrunning/OperationsGrpc.java index 715314a0..8041725c 100644 --- a/grpc-google-common-protos/src/main/java/com/google/longrunning/OperationsGrpc.java +++ b/grpc-google-common-protos/src/main/java/com/google/longrunning/OperationsGrpc.java @@ -389,9 +389,9 @@ public void cancelOperation( * * *
-     * Waits for the specified long-running operation until it is done or reaches
-     * at most a specified timeout, returning the latest state.  If the operation
-     * is already done, the latest state is immediately returned.  If the timeout
+     * Waits until the specified long-running operation is done or reaches at most
+     * a specified timeout, returning the latest state.  If the operation is
+     * already done, the latest state is immediately returned.  If the timeout
      * specified is greater than the default HTTP/RPC timeout, the HTTP/RPC
      * timeout is used.  If the server does not support this method, it returns
      * `google.rpc.Code.UNIMPLEMENTED`.
@@ -559,9 +559,9 @@ public void cancelOperation(
      *
      *
      * 
-     * Waits for the specified long-running operation until it is done or reaches
-     * at most a specified timeout, returning the latest state.  If the operation
-     * is already done, the latest state is immediately returned.  If the timeout
+     * Waits until the specified long-running operation is done or reaches at most
+     * a specified timeout, returning the latest state.  If the operation is
+     * already done, the latest state is immediately returned.  If the timeout
      * specified is greater than the default HTTP/RPC timeout, the HTTP/RPC
      * timeout is used.  If the server does not support this method, it returns
      * `google.rpc.Code.UNIMPLEMENTED`.
@@ -680,9 +680,9 @@ public com.google.protobuf.Empty cancelOperation(
      *
      *
      * 
-     * Waits for the specified long-running operation until it is done or reaches
-     * at most a specified timeout, returning the latest state.  If the operation
-     * is already done, the latest state is immediately returned.  If the timeout
+     * Waits until the specified long-running operation is done or reaches at most
+     * a specified timeout, returning the latest state.  If the operation is
+     * already done, the latest state is immediately returned.  If the timeout
      * specified is greater than the default HTTP/RPC timeout, the HTTP/RPC
      * timeout is used.  If the server does not support this method, it returns
      * `google.rpc.Code.UNIMPLEMENTED`.
@@ -801,9 +801,9 @@ protected OperationsFutureStub build(io.grpc.Channel channel, io.grpc.CallOption
      *
      *
      * 
-     * Waits for the specified long-running operation until it is done or reaches
-     * at most a specified timeout, returning the latest state.  If the operation
-     * is already done, the latest state is immediately returned.  If the timeout
+     * Waits until the specified long-running operation is done or reaches at most
+     * a specified timeout, returning the latest state.  If the operation is
+     * already done, the latest state is immediately returned.  If the timeout
      * specified is greater than the default HTTP/RPC timeout, the HTTP/RPC
      * timeout is used.  If the server does not support this method, it returns
      * `google.rpc.Code.UNIMPLEMENTED`.
diff --git a/proto-google-common-protos/src/main/java/com/google/api/FieldBehavior.java b/proto-google-common-protos/src/main/java/com/google/api/FieldBehavior.java
index aa517ed4..f92f01d5 100644
--- a/proto-google-common-protos/src/main/java/com/google/api/FieldBehavior.java
+++ b/proto-google-common-protos/src/main/java/com/google/api/FieldBehavior.java
@@ -109,7 +109,7 @@ public enum FieldBehavior implements com.google.protobuf.ProtocolMessageEnum {
    * 
    * Denotes that a (repeated) field is an unordered list.
    * This indicates that the service may provide the elements of the list
-   * in any arbitrary order, rather than the order the user originally
+   * in any arbitrary  order, rather than the order the user originally
    * provided. Additionally, the list's order may or may not be stable.
    * 
* @@ -196,7 +196,7 @@ public enum FieldBehavior implements com.google.protobuf.ProtocolMessageEnum { *
    * Denotes that a (repeated) field is an unordered list.
    * This indicates that the service may provide the elements of the list
-   * in any arbitrary order, rather than the order the user originally
+   * in any arbitrary  order, rather than the order the user originally
    * provided. Additionally, the list's order may or may not be stable.
    * 
* diff --git a/proto-google-common-protos/src/main/java/com/google/api/Service.java b/proto-google-common-protos/src/main/java/com/google/api/Service.java index d8a15709..9c3d2ad2 100644 --- a/proto-google-common-protos/src/main/java/com/google/api/Service.java +++ b/proto-google-common-protos/src/main/java/com/google/api/Service.java @@ -59,9 +59,9 @@ private Service(com.google.protobuf.GeneratedMessageV3.Builder builder) { private Service() { name_ = ""; - id_ = ""; title_ = ""; producerProjectId_ = ""; + id_ = ""; apis_ = java.util.Collections.emptyList(); types_ = java.util.Collections.emptyList(); enums_ = java.util.Collections.emptyList(); @@ -452,54 +452,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.api.Service.class, com.google.api.Service.Builder.class); } - public static final int CONFIG_VERSION_FIELD_NUMBER = 20; - private com.google.protobuf.UInt32Value configVersion_; - /** - * - * - *
-   * Deprecated. The service config compiler always sets this field to `3`.
-   * 
- * - * .google.protobuf.UInt32Value config_version = 20; - * - * @return Whether the configVersion field is set. - */ - @java.lang.Override - public boolean hasConfigVersion() { - return configVersion_ != null; - } - /** - * - * - *
-   * Deprecated. The service config compiler always sets this field to `3`.
-   * 
- * - * .google.protobuf.UInt32Value config_version = 20; - * - * @return The configVersion. - */ - @java.lang.Override - public com.google.protobuf.UInt32Value getConfigVersion() { - return configVersion_ == null - ? com.google.protobuf.UInt32Value.getDefaultInstance() - : configVersion_; - } - /** - * - * - *
-   * Deprecated. The service config compiler always sets this field to `3`.
-   * 
- * - * .google.protobuf.UInt32Value config_version = 20; - */ - @java.lang.Override - public com.google.protobuf.UInt32ValueOrBuilder getConfigVersionOrBuilder() { - return getConfigVersion(); - } - public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** @@ -555,31 +507,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } - public static final int ID_FIELD_NUMBER = 33; - private volatile java.lang.Object id_; + public static final int TITLE_FIELD_NUMBER = 2; + private volatile java.lang.Object title_; /** * * *
-   * A unique ID for a specific instance of this message, typically assigned
-   * by the client for tracking purpose. Must be no longer than 63 characters
-   * and only lower case letters, digits, '.', '_' and '-' are allowed. If
-   * empty, the server may choose to generate one instead.
+   * The product title for this service.
    * 
* - * string id = 33; + * string title = 2; * - * @return The id. + * @return The title. */ @java.lang.Override - public java.lang.String getId() { - java.lang.Object ref = id_; + public java.lang.String getTitle() { + java.lang.Object ref = title_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - id_ = s; + title_ = s; return s; } } @@ -587,51 +536,48 @@ public java.lang.String getId() { * * *
-   * A unique ID for a specific instance of this message, typically assigned
-   * by the client for tracking purpose. Must be no longer than 63 characters
-   * and only lower case letters, digits, '.', '_' and '-' are allowed. If
-   * empty, the server may choose to generate one instead.
+   * The product title for this service.
    * 
* - * string id = 33; + * string title = 2; * - * @return The bytes for id. + * @return The bytes for title. */ @java.lang.Override - public com.google.protobuf.ByteString getIdBytes() { - java.lang.Object ref = id_; + public com.google.protobuf.ByteString getTitleBytes() { + java.lang.Object ref = title_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - id_ = b; + title_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - public static final int TITLE_FIELD_NUMBER = 2; - private volatile java.lang.Object title_; + public static final int PRODUCER_PROJECT_ID_FIELD_NUMBER = 22; + private volatile java.lang.Object producerProjectId_; /** * * *
-   * The product title for this service.
+   * The Google project that owns this service.
    * 
* - * string title = 2; + * string producer_project_id = 22; * - * @return The title. + * @return The producerProjectId. */ @java.lang.Override - public java.lang.String getTitle() { - java.lang.Object ref = title_; + public java.lang.String getProducerProjectId() { + java.lang.Object ref = producerProjectId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - title_ = s; + producerProjectId_ = s; return s; } } @@ -639,48 +585,51 @@ public java.lang.String getTitle() { * * *
-   * The product title for this service.
+   * The Google project that owns this service.
    * 
* - * string title = 2; + * string producer_project_id = 22; * - * @return The bytes for title. + * @return The bytes for producerProjectId. */ @java.lang.Override - public com.google.protobuf.ByteString getTitleBytes() { - java.lang.Object ref = title_; + public com.google.protobuf.ByteString getProducerProjectIdBytes() { + java.lang.Object ref = producerProjectId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - title_ = b; + producerProjectId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - public static final int PRODUCER_PROJECT_ID_FIELD_NUMBER = 22; - private volatile java.lang.Object producerProjectId_; + public static final int ID_FIELD_NUMBER = 33; + private volatile java.lang.Object id_; /** * * *
-   * The Google project that owns this service.
+   * A unique ID for a specific instance of this message, typically assigned
+   * by the client for tracking purpose. Must be no longer than 63 characters
+   * and only lower case letters, digits, '.', '_' and '-' are allowed. If
+   * empty, the server may choose to generate one instead.
    * 
* - * string producer_project_id = 22; + * string id = 33; * - * @return The producerProjectId. + * @return The id. */ @java.lang.Override - public java.lang.String getProducerProjectId() { - java.lang.Object ref = producerProjectId_; + public java.lang.String getId() { + java.lang.Object ref = id_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - producerProjectId_ = s; + id_ = s; return s; } } @@ -688,20 +637,23 @@ public java.lang.String getProducerProjectId() { * * *
-   * The Google project that owns this service.
+   * A unique ID for a specific instance of this message, typically assigned
+   * by the client for tracking purpose. Must be no longer than 63 characters
+   * and only lower case letters, digits, '.', '_' and '-' are allowed. If
+   * empty, the server may choose to generate one instead.
    * 
* - * string producer_project_id = 22; + * string id = 33; * - * @return The bytes for producerProjectId. + * @return The bytes for id. */ @java.lang.Override - public com.google.protobuf.ByteString getProducerProjectIdBytes() { - java.lang.Object ref = producerProjectId_; + public com.google.protobuf.ByteString getIdBytes() { + java.lang.Object ref = id_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - producerProjectId_ = b; + id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -1881,6 +1833,54 @@ public com.google.api.SourceInfoOrBuilder getSourceInfoOrBuilder() { return getSourceInfo(); } + public static final int CONFIG_VERSION_FIELD_NUMBER = 20; + private com.google.protobuf.UInt32Value configVersion_; + /** + * + * + *
+   * Deprecated. The service config compiler always sets this field to `3`.
+   * 
+ * + * .google.protobuf.UInt32Value config_version = 20; + * + * @return Whether the configVersion field is set. + */ + @java.lang.Override + public boolean hasConfigVersion() { + return configVersion_ != null; + } + /** + * + * + *
+   * Deprecated. The service config compiler always sets this field to `3`.
+   * 
+ * + * .google.protobuf.UInt32Value config_version = 20; + * + * @return The configVersion. + */ + @java.lang.Override + public com.google.protobuf.UInt32Value getConfigVersion() { + return configVersion_ == null + ? com.google.protobuf.UInt32Value.getDefaultInstance() + : configVersion_; + } + /** + * + * + *
+   * Deprecated. The service config compiler always sets this field to `3`.
+   * 
+ * + * .google.protobuf.UInt32Value config_version = 20; + */ + @java.lang.Override + public com.google.protobuf.UInt32ValueOrBuilder getConfigVersionOrBuilder() { + return getConfigVersion(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -2070,14 +2070,10 @@ public boolean equals(final java.lang.Object obj) { } com.google.api.Service other = (com.google.api.Service) obj; - if (hasConfigVersion() != other.hasConfigVersion()) return false; - if (hasConfigVersion()) { - if (!getConfigVersion().equals(other.getConfigVersion())) return false; - } if (!getName().equals(other.getName())) return false; - if (!getId().equals(other.getId())) return false; if (!getTitle().equals(other.getTitle())) return false; if (!getProducerProjectId().equals(other.getProducerProjectId())) return false; + if (!getId().equals(other.getId())) return false; if (!getApisList().equals(other.getApisList())) return false; if (!getTypesList().equals(other.getTypesList())) return false; if (!getEnumsList().equals(other.getEnumsList())) return false; @@ -2137,6 +2133,10 @@ public boolean equals(final java.lang.Object obj) { if (hasSourceInfo()) { if (!getSourceInfo().equals(other.getSourceInfo())) return false; } + if (hasConfigVersion() != other.hasConfigVersion()) return false; + if (hasConfigVersion()) { + if (!getConfigVersion().equals(other.getConfigVersion())) return false; + } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -2148,18 +2148,14 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - if (hasConfigVersion()) { - hash = (37 * hash) + CONFIG_VERSION_FIELD_NUMBER; - hash = (53 * hash) + getConfigVersion().hashCode(); - } hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + ID_FIELD_NUMBER; - hash = (53 * hash) + getId().hashCode(); hash = (37 * hash) + TITLE_FIELD_NUMBER; hash = (53 * hash) + getTitle().hashCode(); hash = (37 * hash) + PRODUCER_PROJECT_ID_FIELD_NUMBER; hash = (53 * hash) + getProducerProjectId().hashCode(); + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); if (getApisCount() > 0) { hash = (37 * hash) + APIS_FIELD_NUMBER; hash = (53 * hash) + getApisList().hashCode(); @@ -2240,6 +2236,10 @@ public int hashCode() { hash = (37 * hash) + SOURCE_INFO_FIELD_NUMBER; hash = (53 * hash) + getSourceInfo().hashCode(); } + if (hasConfigVersion()) { + hash = (37 * hash) + CONFIG_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getConfigVersion().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -2409,20 +2409,14 @@ private void maybeForceBuilderInitialization() { @java.lang.Override public Builder clear() { super.clear(); - if (configVersionBuilder_ == null) { - configVersion_ = null; - } else { - configVersion_ = null; - configVersionBuilder_ = null; - } name_ = ""; - id_ = ""; - title_ = ""; producerProjectId_ = ""; + id_ = ""; + if (apisBuilder_ == null) { apis_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); @@ -2543,6 +2537,12 @@ public Builder clear() { sourceInfo_ = null; sourceInfoBuilder_ = null; } + if (configVersionBuilder_ == null) { + configVersion_ = null; + } else { + configVersion_ = null; + configVersionBuilder_ = null; + } return this; } @@ -2569,15 +2569,10 @@ public com.google.api.Service build() { public com.google.api.Service buildPartial() { com.google.api.Service result = new com.google.api.Service(this); int from_bitField0_ = bitField0_; - if (configVersionBuilder_ == null) { - result.configVersion_ = configVersion_; - } else { - result.configVersion_ = configVersionBuilder_.build(); - } result.name_ = name_; - result.id_ = id_; result.title_ = title_; result.producerProjectId_ = producerProjectId_; + result.id_ = id_; if (apisBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { apis_ = java.util.Collections.unmodifiableList(apis_); @@ -2706,6 +2701,11 @@ public com.google.api.Service buildPartial() { } else { result.sourceInfo_ = sourceInfoBuilder_.build(); } + if (configVersionBuilder_ == null) { + result.configVersion_ = configVersion_; + } else { + result.configVersion_ = configVersionBuilder_.build(); + } onBuilt(); return result; } @@ -2755,17 +2755,10 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.api.Service other) { if (other == com.google.api.Service.getDefaultInstance()) return this; - if (other.hasConfigVersion()) { - mergeConfigVersion(other.getConfigVersion()); - } if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } - if (!other.getId().isEmpty()) { - id_ = other.id_; - onChanged(); - } if (!other.getTitle().isEmpty()) { title_ = other.title_; onChanged(); @@ -2774,6 +2767,10 @@ public Builder mergeFrom(com.google.api.Service other) { producerProjectId_ = other.producerProjectId_; onChanged(); } + if (!other.getId().isEmpty()) { + id_ = other.id_; + onChanged(); + } if (apisBuilder_ == null) { if (!other.apis_.isEmpty()) { if (apis_.isEmpty()) { @@ -3002,7 +2999,10 @@ public Builder mergeFrom(com.google.api.Service other) { if (other.hasSourceInfo()) { mergeSourceInfo(other.getSourceInfo()); } - this.mergeUnknownFields(other.unknownFields); + if (other.hasConfigVersion()) { + mergeConfigVersion(other.getConfigVersion()); + } + this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @@ -3033,191 +3033,6 @@ public Builder mergeFrom( private int bitField0_; - private com.google.protobuf.UInt32Value configVersion_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.UInt32Value, - com.google.protobuf.UInt32Value.Builder, - com.google.protobuf.UInt32ValueOrBuilder> - configVersionBuilder_; - /** - * - * - *
-     * Deprecated. The service config compiler always sets this field to `3`.
-     * 
- * - * .google.protobuf.UInt32Value config_version = 20; - * - * @return Whether the configVersion field is set. - */ - public boolean hasConfigVersion() { - return configVersionBuilder_ != null || configVersion_ != null; - } - /** - * - * - *
-     * Deprecated. The service config compiler always sets this field to `3`.
-     * 
- * - * .google.protobuf.UInt32Value config_version = 20; - * - * @return The configVersion. - */ - public com.google.protobuf.UInt32Value getConfigVersion() { - if (configVersionBuilder_ == null) { - return configVersion_ == null - ? com.google.protobuf.UInt32Value.getDefaultInstance() - : configVersion_; - } else { - return configVersionBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Deprecated. The service config compiler always sets this field to `3`.
-     * 
- * - * .google.protobuf.UInt32Value config_version = 20; - */ - public Builder setConfigVersion(com.google.protobuf.UInt32Value value) { - if (configVersionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - configVersion_ = value; - onChanged(); - } else { - configVersionBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Deprecated. The service config compiler always sets this field to `3`.
-     * 
- * - * .google.protobuf.UInt32Value config_version = 20; - */ - public Builder setConfigVersion(com.google.protobuf.UInt32Value.Builder builderForValue) { - if (configVersionBuilder_ == null) { - configVersion_ = builderForValue.build(); - onChanged(); - } else { - configVersionBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Deprecated. The service config compiler always sets this field to `3`.
-     * 
- * - * .google.protobuf.UInt32Value config_version = 20; - */ - public Builder mergeConfigVersion(com.google.protobuf.UInt32Value value) { - if (configVersionBuilder_ == null) { - if (configVersion_ != null) { - configVersion_ = - com.google.protobuf.UInt32Value.newBuilder(configVersion_) - .mergeFrom(value) - .buildPartial(); - } else { - configVersion_ = value; - } - onChanged(); - } else { - configVersionBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Deprecated. The service config compiler always sets this field to `3`.
-     * 
- * - * .google.protobuf.UInt32Value config_version = 20; - */ - public Builder clearConfigVersion() { - if (configVersionBuilder_ == null) { - configVersion_ = null; - onChanged(); - } else { - configVersion_ = null; - configVersionBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Deprecated. The service config compiler always sets this field to `3`.
-     * 
- * - * .google.protobuf.UInt32Value config_version = 20; - */ - public com.google.protobuf.UInt32Value.Builder getConfigVersionBuilder() { - - onChanged(); - return getConfigVersionFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Deprecated. The service config compiler always sets this field to `3`.
-     * 
- * - * .google.protobuf.UInt32Value config_version = 20; - */ - public com.google.protobuf.UInt32ValueOrBuilder getConfigVersionOrBuilder() { - if (configVersionBuilder_ != null) { - return configVersionBuilder_.getMessageOrBuilder(); - } else { - return configVersion_ == null - ? com.google.protobuf.UInt32Value.getDefaultInstance() - : configVersion_; - } - } - /** - * - * - *
-     * Deprecated. The service config compiler always sets this field to `3`.
-     * 
- * - * .google.protobuf.UInt32Value config_version = 20; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.UInt32Value, - com.google.protobuf.UInt32Value.Builder, - com.google.protobuf.UInt32ValueOrBuilder> - getConfigVersionFieldBuilder() { - if (configVersionBuilder_ == null) { - configVersionBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.UInt32Value, - com.google.protobuf.UInt32Value.Builder, - com.google.protobuf.UInt32ValueOrBuilder>( - getConfigVersion(), getParentForChildren(), isClean()); - configVersion_ = null; - } - return configVersionBuilder_; - } - private java.lang.Object name_ = ""; /** * @@ -3339,27 +3154,24 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { return this; } - private java.lang.Object id_ = ""; + private java.lang.Object title_ = ""; /** * * *
-     * A unique ID for a specific instance of this message, typically assigned
-     * by the client for tracking purpose. Must be no longer than 63 characters
-     * and only lower case letters, digits, '.', '_' and '-' are allowed. If
-     * empty, the server may choose to generate one instead.
+     * The product title for this service.
      * 
* - * string id = 33; + * string title = 2; * - * @return The id. + * @return The title. */ - public java.lang.String getId() { - java.lang.Object ref = id_; + public java.lang.String getTitle() { + java.lang.Object ref = title_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - id_ = s; + title_ = s; return s; } else { return (java.lang.String) ref; @@ -3369,22 +3181,19 @@ public java.lang.String getId() { * * *
-     * A unique ID for a specific instance of this message, typically assigned
-     * by the client for tracking purpose. Must be no longer than 63 characters
-     * and only lower case letters, digits, '.', '_' and '-' are allowed. If
-     * empty, the server may choose to generate one instead.
+     * The product title for this service.
      * 
* - * string id = 33; + * string title = 2; * - * @return The bytes for id. + * @return The bytes for title. */ - public com.google.protobuf.ByteString getIdBytes() { - java.lang.Object ref = id_; + public com.google.protobuf.ByteString getTitleBytes() { + java.lang.Object ref = title_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - id_ = b; + title_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -3394,23 +3203,20 @@ public com.google.protobuf.ByteString getIdBytes() { * * *
-     * A unique ID for a specific instance of this message, typically assigned
-     * by the client for tracking purpose. Must be no longer than 63 characters
-     * and only lower case letters, digits, '.', '_' and '-' are allowed. If
-     * empty, the server may choose to generate one instead.
+     * The product title for this service.
      * 
* - * string id = 33; + * string title = 2; * - * @param value The id to set. + * @param value The title to set. * @return This builder for chaining. */ - public Builder setId(java.lang.String value) { + public Builder setTitle(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - id_ = value; + title_ = value; onChanged(); return this; } @@ -3418,19 +3224,16 @@ public Builder setId(java.lang.String value) { * * *
-     * A unique ID for a specific instance of this message, typically assigned
-     * by the client for tracking purpose. Must be no longer than 63 characters
-     * and only lower case letters, digits, '.', '_' and '-' are allowed. If
-     * empty, the server may choose to generate one instead.
+     * The product title for this service.
      * 
* - * string id = 33; + * string title = 2; * * @return This builder for chaining. */ - public Builder clearId() { + public Builder clearTitle() { - id_ = getDefaultInstance().getId(); + title_ = getDefaultInstance().getTitle(); onChanged(); return this; } @@ -3438,46 +3241,43 @@ public Builder clearId() { * * *
-     * A unique ID for a specific instance of this message, typically assigned
-     * by the client for tracking purpose. Must be no longer than 63 characters
-     * and only lower case letters, digits, '.', '_' and '-' are allowed. If
-     * empty, the server may choose to generate one instead.
+     * The product title for this service.
      * 
* - * string id = 33; + * string title = 2; * - * @param value The bytes for id to set. + * @param value The bytes for title to set. * @return This builder for chaining. */ - public Builder setIdBytes(com.google.protobuf.ByteString value) { + public Builder setTitleBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - id_ = value; + title_ = value; onChanged(); return this; } - private java.lang.Object title_ = ""; + private java.lang.Object producerProjectId_ = ""; /** * * *
-     * The product title for this service.
+     * The Google project that owns this service.
      * 
* - * string title = 2; + * string producer_project_id = 22; * - * @return The title. + * @return The producerProjectId. */ - public java.lang.String getTitle() { - java.lang.Object ref = title_; + public java.lang.String getProducerProjectId() { + java.lang.Object ref = producerProjectId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - title_ = s; + producerProjectId_ = s; return s; } else { return (java.lang.String) ref; @@ -3487,19 +3287,19 @@ public java.lang.String getTitle() { * * *
-     * The product title for this service.
+     * The Google project that owns this service.
      * 
* - * string title = 2; + * string producer_project_id = 22; * - * @return The bytes for title. + * @return The bytes for producerProjectId. */ - public com.google.protobuf.ByteString getTitleBytes() { - java.lang.Object ref = title_; + public com.google.protobuf.ByteString getProducerProjectIdBytes() { + java.lang.Object ref = producerProjectId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - title_ = b; + producerProjectId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -3509,20 +3309,20 @@ public com.google.protobuf.ByteString getTitleBytes() { * * *
-     * The product title for this service.
+     * The Google project that owns this service.
      * 
* - * string title = 2; + * string producer_project_id = 22; * - * @param value The title to set. + * @param value The producerProjectId to set. * @return This builder for chaining. */ - public Builder setTitle(java.lang.String value) { + public Builder setProducerProjectId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - title_ = value; + producerProjectId_ = value; onChanged(); return this; } @@ -3530,16 +3330,16 @@ public Builder setTitle(java.lang.String value) { * * *
-     * The product title for this service.
+     * The Google project that owns this service.
      * 
* - * string title = 2; + * string producer_project_id = 22; * * @return This builder for chaining. */ - public Builder clearTitle() { + public Builder clearProducerProjectId() { - title_ = getDefaultInstance().getTitle(); + producerProjectId_ = getDefaultInstance().getProducerProjectId(); onChanged(); return this; } @@ -3547,43 +3347,46 @@ public Builder clearTitle() { * * *
-     * The product title for this service.
+     * The Google project that owns this service.
      * 
* - * string title = 2; + * string producer_project_id = 22; * - * @param value The bytes for title to set. + * @param value The bytes for producerProjectId to set. * @return This builder for chaining. */ - public Builder setTitleBytes(com.google.protobuf.ByteString value) { + public Builder setProducerProjectIdBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - title_ = value; + producerProjectId_ = value; onChanged(); return this; } - private java.lang.Object producerProjectId_ = ""; + private java.lang.Object id_ = ""; /** * * *
-     * The Google project that owns this service.
+     * A unique ID for a specific instance of this message, typically assigned
+     * by the client for tracking purpose. Must be no longer than 63 characters
+     * and only lower case letters, digits, '.', '_' and '-' are allowed. If
+     * empty, the server may choose to generate one instead.
      * 
* - * string producer_project_id = 22; + * string id = 33; * - * @return The producerProjectId. + * @return The id. */ - public java.lang.String getProducerProjectId() { - java.lang.Object ref = producerProjectId_; + public java.lang.String getId() { + java.lang.Object ref = id_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - producerProjectId_ = s; + id_ = s; return s; } else { return (java.lang.String) ref; @@ -3593,19 +3396,22 @@ public java.lang.String getProducerProjectId() { * * *
-     * The Google project that owns this service.
+     * A unique ID for a specific instance of this message, typically assigned
+     * by the client for tracking purpose. Must be no longer than 63 characters
+     * and only lower case letters, digits, '.', '_' and '-' are allowed. If
+     * empty, the server may choose to generate one instead.
      * 
* - * string producer_project_id = 22; + * string id = 33; * - * @return The bytes for producerProjectId. + * @return The bytes for id. */ - public com.google.protobuf.ByteString getProducerProjectIdBytes() { - java.lang.Object ref = producerProjectId_; + public com.google.protobuf.ByteString getIdBytes() { + java.lang.Object ref = id_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - producerProjectId_ = b; + id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -3615,20 +3421,23 @@ public com.google.protobuf.ByteString getProducerProjectIdBytes() { * * *
-     * The Google project that owns this service.
+     * A unique ID for a specific instance of this message, typically assigned
+     * by the client for tracking purpose. Must be no longer than 63 characters
+     * and only lower case letters, digits, '.', '_' and '-' are allowed. If
+     * empty, the server may choose to generate one instead.
      * 
* - * string producer_project_id = 22; + * string id = 33; * - * @param value The producerProjectId to set. + * @param value The id to set. * @return This builder for chaining. */ - public Builder setProducerProjectId(java.lang.String value) { + public Builder setId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - producerProjectId_ = value; + id_ = value; onChanged(); return this; } @@ -3636,16 +3445,19 @@ public Builder setProducerProjectId(java.lang.String value) { * * *
-     * The Google project that owns this service.
+     * A unique ID for a specific instance of this message, typically assigned
+     * by the client for tracking purpose. Must be no longer than 63 characters
+     * and only lower case letters, digits, '.', '_' and '-' are allowed. If
+     * empty, the server may choose to generate one instead.
      * 
* - * string producer_project_id = 22; + * string id = 33; * * @return This builder for chaining. */ - public Builder clearProducerProjectId() { + public Builder clearId() { - producerProjectId_ = getDefaultInstance().getProducerProjectId(); + id_ = getDefaultInstance().getId(); onChanged(); return this; } @@ -3653,21 +3465,24 @@ public Builder clearProducerProjectId() { * * *
-     * The Google project that owns this service.
+     * A unique ID for a specific instance of this message, typically assigned
+     * by the client for tracking purpose. Must be no longer than 63 characters
+     * and only lower case letters, digits, '.', '_' and '-' are allowed. If
+     * empty, the server may choose to generate one instead.
      * 
* - * string producer_project_id = 22; + * string id = 33; * - * @param value The bytes for producerProjectId to set. + * @param value The bytes for id to set. * @return This builder for chaining. */ - public Builder setProducerProjectIdBytes(com.google.protobuf.ByteString value) { + public Builder setIdBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - producerProjectId_ = value; + id_ = value; onChanged(); return this; } @@ -8705,6 +8520,191 @@ public com.google.api.SourceInfoOrBuilder getSourceInfoOrBuilder() { return sourceInfoBuilder_; } + private com.google.protobuf.UInt32Value configVersion_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.UInt32Value, + com.google.protobuf.UInt32Value.Builder, + com.google.protobuf.UInt32ValueOrBuilder> + configVersionBuilder_; + /** + * + * + *
+     * Deprecated. The service config compiler always sets this field to `3`.
+     * 
+ * + * .google.protobuf.UInt32Value config_version = 20; + * + * @return Whether the configVersion field is set. + */ + public boolean hasConfigVersion() { + return configVersionBuilder_ != null || configVersion_ != null; + } + /** + * + * + *
+     * Deprecated. The service config compiler always sets this field to `3`.
+     * 
+ * + * .google.protobuf.UInt32Value config_version = 20; + * + * @return The configVersion. + */ + public com.google.protobuf.UInt32Value getConfigVersion() { + if (configVersionBuilder_ == null) { + return configVersion_ == null + ? com.google.protobuf.UInt32Value.getDefaultInstance() + : configVersion_; + } else { + return configVersionBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Deprecated. The service config compiler always sets this field to `3`.
+     * 
+ * + * .google.protobuf.UInt32Value config_version = 20; + */ + public Builder setConfigVersion(com.google.protobuf.UInt32Value value) { + if (configVersionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + configVersion_ = value; + onChanged(); + } else { + configVersionBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Deprecated. The service config compiler always sets this field to `3`.
+     * 
+ * + * .google.protobuf.UInt32Value config_version = 20; + */ + public Builder setConfigVersion(com.google.protobuf.UInt32Value.Builder builderForValue) { + if (configVersionBuilder_ == null) { + configVersion_ = builderForValue.build(); + onChanged(); + } else { + configVersionBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Deprecated. The service config compiler always sets this field to `3`.
+     * 
+ * + * .google.protobuf.UInt32Value config_version = 20; + */ + public Builder mergeConfigVersion(com.google.protobuf.UInt32Value value) { + if (configVersionBuilder_ == null) { + if (configVersion_ != null) { + configVersion_ = + com.google.protobuf.UInt32Value.newBuilder(configVersion_) + .mergeFrom(value) + .buildPartial(); + } else { + configVersion_ = value; + } + onChanged(); + } else { + configVersionBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Deprecated. The service config compiler always sets this field to `3`.
+     * 
+ * + * .google.protobuf.UInt32Value config_version = 20; + */ + public Builder clearConfigVersion() { + if (configVersionBuilder_ == null) { + configVersion_ = null; + onChanged(); + } else { + configVersion_ = null; + configVersionBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Deprecated. The service config compiler always sets this field to `3`.
+     * 
+ * + * .google.protobuf.UInt32Value config_version = 20; + */ + public com.google.protobuf.UInt32Value.Builder getConfigVersionBuilder() { + + onChanged(); + return getConfigVersionFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Deprecated. The service config compiler always sets this field to `3`.
+     * 
+ * + * .google.protobuf.UInt32Value config_version = 20; + */ + public com.google.protobuf.UInt32ValueOrBuilder getConfigVersionOrBuilder() { + if (configVersionBuilder_ != null) { + return configVersionBuilder_.getMessageOrBuilder(); + } else { + return configVersion_ == null + ? com.google.protobuf.UInt32Value.getDefaultInstance() + : configVersion_; + } + } + /** + * + * + *
+     * Deprecated. The service config compiler always sets this field to `3`.
+     * 
+ * + * .google.protobuf.UInt32Value config_version = 20; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.UInt32Value, + com.google.protobuf.UInt32Value.Builder, + com.google.protobuf.UInt32ValueOrBuilder> + getConfigVersionFieldBuilder() { + if (configVersionBuilder_ == null) { + configVersionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.UInt32Value, + com.google.protobuf.UInt32Value.Builder, + com.google.protobuf.UInt32ValueOrBuilder>( + getConfigVersion(), getParentForChildren(), isClean()); + configVersion_ = null; + } + return configVersionBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/proto-google-common-protos/src/main/java/com/google/api/ServiceOrBuilder.java b/proto-google-common-protos/src/main/java/com/google/api/ServiceOrBuilder.java index 78177c44..47a650a7 100644 --- a/proto-google-common-protos/src/main/java/com/google/api/ServiceOrBuilder.java +++ b/proto-google-common-protos/src/main/java/com/google/api/ServiceOrBuilder.java @@ -23,41 +23,6 @@ public interface ServiceOrBuilder // @@protoc_insertion_point(interface_extends:google.api.Service) com.google.protobuf.MessageOrBuilder { - /** - * - * - *
-   * Deprecated. The service config compiler always sets this field to `3`.
-   * 
- * - * .google.protobuf.UInt32Value config_version = 20; - * - * @return Whether the configVersion field is set. - */ - boolean hasConfigVersion(); - /** - * - * - *
-   * Deprecated. The service config compiler always sets this field to `3`.
-   * 
- * - * .google.protobuf.UInt32Value config_version = 20; - * - * @return The configVersion. - */ - com.google.protobuf.UInt32Value getConfigVersion(); - /** - * - * - *
-   * Deprecated. The service config compiler always sets this field to `3`.
-   * 
- * - * .google.protobuf.UInt32Value config_version = 20; - */ - com.google.protobuf.UInt32ValueOrBuilder getConfigVersionOrBuilder(); - /** * * @@ -93,82 +58,82 @@ public interface ServiceOrBuilder * * *
-   * A unique ID for a specific instance of this message, typically assigned
-   * by the client for tracking purpose. Must be no longer than 63 characters
-   * and only lower case letters, digits, '.', '_' and '-' are allowed. If
-   * empty, the server may choose to generate one instead.
+   * The product title for this service.
    * 
* - * string id = 33; + * string title = 2; * - * @return The id. + * @return The title. */ - java.lang.String getId(); + java.lang.String getTitle(); /** * * *
-   * A unique ID for a specific instance of this message, typically assigned
-   * by the client for tracking purpose. Must be no longer than 63 characters
-   * and only lower case letters, digits, '.', '_' and '-' are allowed. If
-   * empty, the server may choose to generate one instead.
+   * The product title for this service.
    * 
* - * string id = 33; + * string title = 2; * - * @return The bytes for id. + * @return The bytes for title. */ - com.google.protobuf.ByteString getIdBytes(); + com.google.protobuf.ByteString getTitleBytes(); /** * * *
-   * The product title for this service.
+   * The Google project that owns this service.
    * 
* - * string title = 2; + * string producer_project_id = 22; * - * @return The title. + * @return The producerProjectId. */ - java.lang.String getTitle(); + java.lang.String getProducerProjectId(); /** * * *
-   * The product title for this service.
+   * The Google project that owns this service.
    * 
* - * string title = 2; + * string producer_project_id = 22; * - * @return The bytes for title. + * @return The bytes for producerProjectId. */ - com.google.protobuf.ByteString getTitleBytes(); + com.google.protobuf.ByteString getProducerProjectIdBytes(); /** * * *
-   * The Google project that owns this service.
+   * A unique ID for a specific instance of this message, typically assigned
+   * by the client for tracking purpose. Must be no longer than 63 characters
+   * and only lower case letters, digits, '.', '_' and '-' are allowed. If
+   * empty, the server may choose to generate one instead.
    * 
* - * string producer_project_id = 22; + * string id = 33; * - * @return The producerProjectId. + * @return The id. */ - java.lang.String getProducerProjectId(); + java.lang.String getId(); /** * * *
-   * The Google project that owns this service.
+   * A unique ID for a specific instance of this message, typically assigned
+   * by the client for tracking purpose. Must be no longer than 63 characters
+   * and only lower case letters, digits, '.', '_' and '-' are allowed. If
+   * empty, the server may choose to generate one instead.
    * 
* - * string producer_project_id = 22; + * string id = 33; * - * @return The bytes for producerProjectId. + * @return The bytes for id. */ - com.google.protobuf.ByteString getProducerProjectIdBytes(); + com.google.protobuf.ByteString getIdBytes(); /** * @@ -1072,4 +1037,39 @@ public interface ServiceOrBuilder * .google.api.SourceInfo source_info = 37; */ com.google.api.SourceInfoOrBuilder getSourceInfoOrBuilder(); + + /** + * + * + *
+   * Deprecated. The service config compiler always sets this field to `3`.
+   * 
+ * + * .google.protobuf.UInt32Value config_version = 20; + * + * @return Whether the configVersion field is set. + */ + boolean hasConfigVersion(); + /** + * + * + *
+   * Deprecated. The service config compiler always sets this field to `3`.
+   * 
+ * + * .google.protobuf.UInt32Value config_version = 20; + * + * @return The configVersion. + */ + com.google.protobuf.UInt32Value getConfigVersion(); + /** + * + * + *
+   * Deprecated. The service config compiler always sets this field to `3`.
+   * 
+ * + * .google.protobuf.UInt32Value config_version = 20; + */ + com.google.protobuf.UInt32ValueOrBuilder getConfigVersionOrBuilder(); } diff --git a/proto-google-common-protos/src/main/java/com/google/api/ServiceProto.java b/proto-google-common-protos/src/main/java/com/google/api/ServiceProto.java index a10c590f..37a27213 100644 --- a/proto-google-common-protos/src/main/java/com/google/api/ServiceProto.java +++ b/proto-google-common-protos/src/main/java/com/google/api/ServiceProto.java @@ -56,32 +56,32 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + ".proto\032\026google/api/usage.proto\032\031google/p" + "rotobuf/any.proto\032\031google/protobuf/api.p" + "roto\032\032google/protobuf/type.proto\032\036google" - + "/protobuf/wrappers.proto\"\326\007\n\007Service\0224\n\016" - + "config_version\030\024 \001(\0132\034.google.protobuf.U" - + "Int32Value\022\014\n\004name\030\001 \001(\t\022\n\n\002id\030! \001(\t\022\r\n\005" - + "title\030\002 \001(\t\022\033\n\023producer_project_id\030\026 \001(\t" - + "\022\"\n\004apis\030\003 \003(\0132\024.google.protobuf.Api\022$\n\005" - + "types\030\004 \003(\0132\025.google.protobuf.Type\022$\n\005en" - + "ums\030\005 \003(\0132\025.google.protobuf.Enum\0220\n\rdocu" - + "mentation\030\006 \001(\0132\031.google.api.Documentati" - + "on\022$\n\007backend\030\010 \001(\0132\023.google.api.Backend" - + "\022\036\n\004http\030\t \001(\0132\020.google.api.Http\022 \n\005quot" - + "a\030\n \001(\0132\021.google.api.Quota\0222\n\016authentica" - + "tion\030\013 \001(\0132\032.google.api.Authentication\022$" - + "\n\007context\030\014 \001(\0132\023.google.api.Context\022 \n\005" - + "usage\030\017 \001(\0132\021.google.api.Usage\022\'\n\tendpoi" - + "nts\030\022 \003(\0132\024.google.api.Endpoint\022$\n\007contr" - + "ol\030\025 \001(\0132\023.google.api.Control\022\'\n\004logs\030\027 " - + "\003(\0132\031.google.api.LogDescriptor\022-\n\007metric" - + "s\030\030 \003(\0132\034.google.api.MetricDescriptor\022D\n" - + "\023monitored_resources\030\031 \003(\0132\'.google.api." - + "MonitoredResourceDescriptor\022$\n\007billing\030\032" - + " \001(\0132\023.google.api.Billing\022$\n\007logging\030\033 \001" - + "(\0132\023.google.api.Logging\022*\n\nmonitoring\030\034 " - + "\001(\0132\026.google.api.Monitoring\0227\n\021system_pa" - + "rameters\030\035 \001(\0132\034.google.api.SystemParame" - + "ters\022+\n\013source_info\030% \001(\0132\026.google.api.S" - + "ourceInfoBn\n\016com.google.apiB\014ServiceProt" + + "/protobuf/wrappers.proto\"\326\007\n\007Service\022\014\n\004" + + "name\030\001 \001(\t\022\r\n\005title\030\002 \001(\t\022\033\n\023producer_pr" + + "oject_id\030\026 \001(\t\022\n\n\002id\030! \001(\t\022\"\n\004apis\030\003 \003(\013" + + "2\024.google.protobuf.Api\022$\n\005types\030\004 \003(\0132\025." + + "google.protobuf.Type\022$\n\005enums\030\005 \003(\0132\025.go" + + "ogle.protobuf.Enum\0220\n\rdocumentation\030\006 \001(" + + "\0132\031.google.api.Documentation\022$\n\007backend\030" + + "\010 \001(\0132\023.google.api.Backend\022\036\n\004http\030\t \001(\013" + + "2\020.google.api.Http\022 \n\005quota\030\n \001(\0132\021.goog" + + "le.api.Quota\0222\n\016authentication\030\013 \001(\0132\032.g" + + "oogle.api.Authentication\022$\n\007context\030\014 \001(" + + "\0132\023.google.api.Context\022 \n\005usage\030\017 \001(\0132\021." + + "google.api.Usage\022\'\n\tendpoints\030\022 \003(\0132\024.go" + + "ogle.api.Endpoint\022$\n\007control\030\025 \001(\0132\023.goo" + + "gle.api.Control\022\'\n\004logs\030\027 \003(\0132\031.google.a" + + "pi.LogDescriptor\022-\n\007metrics\030\030 \003(\0132\034.goog" + + "le.api.MetricDescriptor\022D\n\023monitored_res" + + "ources\030\031 \003(\0132\'.google.api.MonitoredResou" + + "rceDescriptor\022$\n\007billing\030\032 \001(\0132\023.google." + + "api.Billing\022$\n\007logging\030\033 \001(\0132\023.google.ap" + + "i.Logging\022*\n\nmonitoring\030\034 \001(\0132\026.google.a" + + "pi.Monitoring\0227\n\021system_parameters\030\035 \001(\013" + + "2\034.google.api.SystemParameters\022+\n\013source" + + "_info\030% \001(\0132\026.google.api.SourceInfo\0224\n\016c" + + "onfig_version\030\024 \001(\0132\034.google.protobuf.UI" + + "nt32ValueBn\n\016com.google.apiB\014ServiceProt" + "oP\001ZEgoogle.golang.org/genproto/googleap" + "is/api/serviceconfig;serviceconfig\242\002\004GAP" + "Ib\006proto3" @@ -119,11 +119,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_api_Service_descriptor, new java.lang.String[] { - "ConfigVersion", "Name", - "Id", "Title", "ProducerProjectId", + "Id", "Apis", "Types", "Enums", @@ -144,6 +143,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Monitoring", "SystemParameters", "SourceInfo", + "ConfigVersion", }); com.google.api.AuthProto.getDescriptor(); com.google.api.BackendProto.getDescriptor(); diff --git a/proto-google-common-protos/src/main/java/com/google/api/Usage.java b/proto-google-common-protos/src/main/java/com/google/api/Usage.java index 8bf74e52..e030784d 100644 --- a/proto-google-common-protos/src/main/java/com/google/api/Usage.java +++ b/proto-google-common-protos/src/main/java/com/google/api/Usage.java @@ -145,6 +145,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * Requirements that must be satisfied before a consumer project can use the * service. Each requirement is of the form <service.name>/<requirement-id>; * for example 'serviceusage.googleapis.com/billing-enabled'. + * For Google APIs, a Terms of Service requirement must be included here. + * Google Cloud APIs must include "serviceusage.googleapis.com/tos/cloud". + * Other Google APIs should include + * "serviceusage.googleapis.com/tos/universal". Additional ToS can be + * included based on the business needs. *
* * repeated string requirements = 1; @@ -161,6 +166,11 @@ public com.google.protobuf.ProtocolStringList getRequirementsList() { * Requirements that must be satisfied before a consumer project can use the * service. Each requirement is of the form <service.name>/<requirement-id>; * for example 'serviceusage.googleapis.com/billing-enabled'. + * For Google APIs, a Terms of Service requirement must be included here. + * Google Cloud APIs must include "serviceusage.googleapis.com/tos/cloud". + * Other Google APIs should include + * "serviceusage.googleapis.com/tos/universal". Additional ToS can be + * included based on the business needs. *
* * repeated string requirements = 1; @@ -177,6 +187,11 @@ public int getRequirementsCount() { * Requirements that must be satisfied before a consumer project can use the * service. Each requirement is of the form <service.name>/<requirement-id>; * for example 'serviceusage.googleapis.com/billing-enabled'. + * For Google APIs, a Terms of Service requirement must be included here. + * Google Cloud APIs must include "serviceusage.googleapis.com/tos/cloud". + * Other Google APIs should include + * "serviceusage.googleapis.com/tos/universal". Additional ToS can be + * included based on the business needs. *
* * repeated string requirements = 1; @@ -194,6 +209,11 @@ public java.lang.String getRequirements(int index) { * Requirements that must be satisfied before a consumer project can use the * service. Each requirement is of the form <service.name>/<requirement-id>; * for example 'serviceusage.googleapis.com/billing-enabled'. + * For Google APIs, a Terms of Service requirement must be included here. + * Google Cloud APIs must include "serviceusage.googleapis.com/tos/cloud". + * Other Google APIs should include + * "serviceusage.googleapis.com/tos/universal". Additional ToS can be + * included based on the business needs. *
* * repeated string requirements = 1; @@ -757,6 +777,11 @@ private void ensureRequirementsIsMutable() { * Requirements that must be satisfied before a consumer project can use the * service. Each requirement is of the form <service.name>/<requirement-id>; * for example 'serviceusage.googleapis.com/billing-enabled'. + * For Google APIs, a Terms of Service requirement must be included here. + * Google Cloud APIs must include "serviceusage.googleapis.com/tos/cloud". + * Other Google APIs should include + * "serviceusage.googleapis.com/tos/universal". Additional ToS can be + * included based on the business needs. * * * repeated string requirements = 1; @@ -773,6 +798,11 @@ public com.google.protobuf.ProtocolStringList getRequirementsList() { * Requirements that must be satisfied before a consumer project can use the * service. Each requirement is of the form <service.name>/<requirement-id>; * for example 'serviceusage.googleapis.com/billing-enabled'. + * For Google APIs, a Terms of Service requirement must be included here. + * Google Cloud APIs must include "serviceusage.googleapis.com/tos/cloud". + * Other Google APIs should include + * "serviceusage.googleapis.com/tos/universal". Additional ToS can be + * included based on the business needs. * * * repeated string requirements = 1; @@ -789,6 +819,11 @@ public int getRequirementsCount() { * Requirements that must be satisfied before a consumer project can use the * service. Each requirement is of the form <service.name>/<requirement-id>; * for example 'serviceusage.googleapis.com/billing-enabled'. + * For Google APIs, a Terms of Service requirement must be included here. + * Google Cloud APIs must include "serviceusage.googleapis.com/tos/cloud". + * Other Google APIs should include + * "serviceusage.googleapis.com/tos/universal". Additional ToS can be + * included based on the business needs. * * * repeated string requirements = 1; @@ -806,6 +841,11 @@ public java.lang.String getRequirements(int index) { * Requirements that must be satisfied before a consumer project can use the * service. Each requirement is of the form <service.name>/<requirement-id>; * for example 'serviceusage.googleapis.com/billing-enabled'. + * For Google APIs, a Terms of Service requirement must be included here. + * Google Cloud APIs must include "serviceusage.googleapis.com/tos/cloud". + * Other Google APIs should include + * "serviceusage.googleapis.com/tos/universal". Additional ToS can be + * included based on the business needs. * * * repeated string requirements = 1; @@ -823,6 +863,11 @@ public com.google.protobuf.ByteString getRequirementsBytes(int index) { * Requirements that must be satisfied before a consumer project can use the * service. Each requirement is of the form <service.name>/<requirement-id>; * for example 'serviceusage.googleapis.com/billing-enabled'. + * For Google APIs, a Terms of Service requirement must be included here. + * Google Cloud APIs must include "serviceusage.googleapis.com/tos/cloud". + * Other Google APIs should include + * "serviceusage.googleapis.com/tos/universal". Additional ToS can be + * included based on the business needs. * * * repeated string requirements = 1; @@ -847,6 +892,11 @@ public Builder setRequirements(int index, java.lang.String value) { * Requirements that must be satisfied before a consumer project can use the * service. Each requirement is of the form <service.name>/<requirement-id>; * for example 'serviceusage.googleapis.com/billing-enabled'. + * For Google APIs, a Terms of Service requirement must be included here. + * Google Cloud APIs must include "serviceusage.googleapis.com/tos/cloud". + * Other Google APIs should include + * "serviceusage.googleapis.com/tos/universal". Additional ToS can be + * included based on the business needs. * * * repeated string requirements = 1; @@ -870,6 +920,11 @@ public Builder addRequirements(java.lang.String value) { * Requirements that must be satisfied before a consumer project can use the * service. Each requirement is of the form <service.name>/<requirement-id>; * for example 'serviceusage.googleapis.com/billing-enabled'. + * For Google APIs, a Terms of Service requirement must be included here. + * Google Cloud APIs must include "serviceusage.googleapis.com/tos/cloud". + * Other Google APIs should include + * "serviceusage.googleapis.com/tos/universal". Additional ToS can be + * included based on the business needs. * * * repeated string requirements = 1; @@ -890,6 +945,11 @@ public Builder addAllRequirements(java.lang.Iterable values) { * Requirements that must be satisfied before a consumer project can use the * service. Each requirement is of the form <service.name>/<requirement-id>; * for example 'serviceusage.googleapis.com/billing-enabled'. + * For Google APIs, a Terms of Service requirement must be included here. + * Google Cloud APIs must include "serviceusage.googleapis.com/tos/cloud". + * Other Google APIs should include + * "serviceusage.googleapis.com/tos/universal". Additional ToS can be + * included based on the business needs. * * * repeated string requirements = 1; @@ -909,6 +969,11 @@ public Builder clearRequirements() { * Requirements that must be satisfied before a consumer project can use the * service. Each requirement is of the form <service.name>/<requirement-id>; * for example 'serviceusage.googleapis.com/billing-enabled'. + * For Google APIs, a Terms of Service requirement must be included here. + * Google Cloud APIs must include "serviceusage.googleapis.com/tos/cloud". + * Other Google APIs should include + * "serviceusage.googleapis.com/tos/universal". Additional ToS can be + * included based on the business needs. * * * repeated string requirements = 1; diff --git a/proto-google-common-protos/src/main/java/com/google/api/UsageOrBuilder.java b/proto-google-common-protos/src/main/java/com/google/api/UsageOrBuilder.java index 92081cd6..ff0c52dd 100644 --- a/proto-google-common-protos/src/main/java/com/google/api/UsageOrBuilder.java +++ b/proto-google-common-protos/src/main/java/com/google/api/UsageOrBuilder.java @@ -30,6 +30,11 @@ public interface UsageOrBuilder * Requirements that must be satisfied before a consumer project can use the * service. Each requirement is of the form <service.name>/<requirement-id>; * for example 'serviceusage.googleapis.com/billing-enabled'. + * For Google APIs, a Terms of Service requirement must be included here. + * Google Cloud APIs must include "serviceusage.googleapis.com/tos/cloud". + * Other Google APIs should include + * "serviceusage.googleapis.com/tos/universal". Additional ToS can be + * included based on the business needs. * * * repeated string requirements = 1; @@ -44,6 +49,11 @@ public interface UsageOrBuilder * Requirements that must be satisfied before a consumer project can use the * service. Each requirement is of the form <service.name>/<requirement-id>; * for example 'serviceusage.googleapis.com/billing-enabled'. + * For Google APIs, a Terms of Service requirement must be included here. + * Google Cloud APIs must include "serviceusage.googleapis.com/tos/cloud". + * Other Google APIs should include + * "serviceusage.googleapis.com/tos/universal". Additional ToS can be + * included based on the business needs. * * * repeated string requirements = 1; @@ -58,6 +68,11 @@ public interface UsageOrBuilder * Requirements that must be satisfied before a consumer project can use the * service. Each requirement is of the form <service.name>/<requirement-id>; * for example 'serviceusage.googleapis.com/billing-enabled'. + * For Google APIs, a Terms of Service requirement must be included here. + * Google Cloud APIs must include "serviceusage.googleapis.com/tos/cloud". + * Other Google APIs should include + * "serviceusage.googleapis.com/tos/universal". Additional ToS can be + * included based on the business needs. * * * repeated string requirements = 1; @@ -73,6 +88,11 @@ public interface UsageOrBuilder * Requirements that must be satisfied before a consumer project can use the * service. Each requirement is of the form <service.name>/<requirement-id>; * for example 'serviceusage.googleapis.com/billing-enabled'. + * For Google APIs, a Terms of Service requirement must be included here. + * Google Cloud APIs must include "serviceusage.googleapis.com/tos/cloud". + * Other Google APIs should include + * "serviceusage.googleapis.com/tos/universal". Additional ToS can be + * included based on the business needs. * * * repeated string requirements = 1; diff --git a/proto-google-common-protos/src/main/java/com/google/rpc/context/AttributeContext.java b/proto-google-common-protos/src/main/java/com/google/rpc/context/AttributeContext.java index 2077ed10..bdec13a7 100644 --- a/proto-google-common-protos/src/main/java/com/google/rpc/context/AttributeContext.java +++ b/proto-google-common-protos/src/main/java/com/google/rpc/context/AttributeContext.java @@ -5708,7 +5708,7 @@ public interface RequestOrBuilder * * *
-     * The timestamp when the `destination` service receives the first byte of
+     * The timestamp when the `destination` service receives the last byte of
      * the request.
      * 
* @@ -5721,7 +5721,7 @@ public interface RequestOrBuilder * * *
-     * The timestamp when the `destination` service receives the first byte of
+     * The timestamp when the `destination` service receives the last byte of
      * the request.
      * 
* @@ -5734,7 +5734,7 @@ public interface RequestOrBuilder * * *
-     * The timestamp when the `destination` service receives the first byte of
+     * The timestamp when the `destination` service receives the last byte of
      * the request.
      * 
* @@ -6478,7 +6478,7 @@ public com.google.protobuf.ByteString getQueryBytes() { * * *
-     * The timestamp when the `destination` service receives the first byte of
+     * The timestamp when the `destination` service receives the last byte of
      * the request.
      * 
* @@ -6494,7 +6494,7 @@ public boolean hasTime() { * * *
-     * The timestamp when the `destination` service receives the first byte of
+     * The timestamp when the `destination` service receives the last byte of
      * the request.
      * 
* @@ -6510,7 +6510,7 @@ public com.google.protobuf.Timestamp getTime() { * * *
-     * The timestamp when the `destination` service receives the first byte of
+     * The timestamp when the `destination` service receives the last byte of
      * the request.
      * 
* @@ -8081,7 +8081,7 @@ public Builder setQueryBytes(com.google.protobuf.ByteString value) { * * *
-       * The timestamp when the `destination` service receives the first byte of
+       * The timestamp when the `destination` service receives the last byte of
        * the request.
        * 
* @@ -8096,7 +8096,7 @@ public boolean hasTime() { * * *
-       * The timestamp when the `destination` service receives the first byte of
+       * The timestamp when the `destination` service receives the last byte of
        * the request.
        * 
* @@ -8115,7 +8115,7 @@ public com.google.protobuf.Timestamp getTime() { * * *
-       * The timestamp when the `destination` service receives the first byte of
+       * The timestamp when the `destination` service receives the last byte of
        * the request.
        * 
* @@ -8138,7 +8138,7 @@ public Builder setTime(com.google.protobuf.Timestamp value) { * * *
-       * The timestamp when the `destination` service receives the first byte of
+       * The timestamp when the `destination` service receives the last byte of
        * the request.
        * 
* @@ -8158,7 +8158,7 @@ public Builder setTime(com.google.protobuf.Timestamp.Builder builderForValue) { * * *
-       * The timestamp when the `destination` service receives the first byte of
+       * The timestamp when the `destination` service receives the last byte of
        * the request.
        * 
* @@ -8182,7 +8182,7 @@ public Builder mergeTime(com.google.protobuf.Timestamp value) { * * *
-       * The timestamp when the `destination` service receives the first byte of
+       * The timestamp when the `destination` service receives the last byte of
        * the request.
        * 
* @@ -8203,7 +8203,7 @@ public Builder clearTime() { * * *
-       * The timestamp when the `destination` service receives the first byte of
+       * The timestamp when the `destination` service receives the last byte of
        * the request.
        * 
* @@ -8218,7 +8218,7 @@ public com.google.protobuf.Timestamp.Builder getTimeBuilder() { * * *
-       * The timestamp when the `destination` service receives the first byte of
+       * The timestamp when the `destination` service receives the last byte of
        * the request.
        * 
* @@ -8235,7 +8235,7 @@ public com.google.protobuf.TimestampOrBuilder getTimeOrBuilder() { * * *
-       * The timestamp when the `destination` service receives the first byte of
+       * The timestamp when the `destination` service receives the last byte of
        * the request.
        * 
* @@ -8887,7 +8887,7 @@ public interface ResponseOrBuilder * * *
-     * The timestamp when the `destination` service generates the first byte of
+     * The timestamp when the `destination` service sends the last byte of
      * the response.
      * 
* @@ -8900,7 +8900,7 @@ public interface ResponseOrBuilder * * *
-     * The timestamp when the `destination` service generates the first byte of
+     * The timestamp when the `destination` service sends the last byte of
      * the response.
      * 
* @@ -8913,13 +8913,57 @@ public interface ResponseOrBuilder * * *
-     * The timestamp when the `destination` service generates the first byte of
+     * The timestamp when the `destination` service sends the last byte of
      * the response.
      * 
* * .google.protobuf.Timestamp time = 4; */ com.google.protobuf.TimestampOrBuilder getTimeOrBuilder(); + + /** + * + * + *
+     * The length of time it takes the backend service to fully respond to a
+     * request. Measured from when the destination service starts to send the
+     * request to the backend until when the destination service receives the
+     * complete response from the backend.
+     * 
+ * + * .google.protobuf.Duration backend_latency = 5; + * + * @return Whether the backendLatency field is set. + */ + boolean hasBackendLatency(); + /** + * + * + *
+     * The length of time it takes the backend service to fully respond to a
+     * request. Measured from when the destination service starts to send the
+     * request to the backend until when the destination service receives the
+     * complete response from the backend.
+     * 
+ * + * .google.protobuf.Duration backend_latency = 5; + * + * @return The backendLatency. + */ + com.google.protobuf.Duration getBackendLatency(); + /** + * + * + *
+     * The length of time it takes the backend service to fully respond to a
+     * request. Measured from when the destination service starts to send the
+     * request to the backend until when the destination service receives the
+     * complete response from the backend.
+     * 
+ * + * .google.protobuf.Duration backend_latency = 5; + */ + com.google.protobuf.DurationOrBuilder getBackendLatencyOrBuilder(); } /** * @@ -9011,6 +9055,21 @@ private Response( time_ = subBuilder.buildPartial(); } + break; + } + case 42: + { + com.google.protobuf.Duration.Builder subBuilder = null; + if (backendLatency_ != null) { + subBuilder = backendLatency_.toBuilder(); + } + backendLatency_ = + input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(backendLatency_); + backendLatency_ = subBuilder.buildPartial(); + } + break; } default: @@ -9207,7 +9266,7 @@ public java.lang.String getHeadersOrThrow(java.lang.String key) { * * *
-     * The timestamp when the `destination` service generates the first byte of
+     * The timestamp when the `destination` service sends the last byte of
      * the response.
      * 
* @@ -9223,7 +9282,7 @@ public boolean hasTime() { * * *
-     * The timestamp when the `destination` service generates the first byte of
+     * The timestamp when the `destination` service sends the last byte of
      * the response.
      * 
* @@ -9239,7 +9298,7 @@ public com.google.protobuf.Timestamp getTime() { * * *
-     * The timestamp when the `destination` service generates the first byte of
+     * The timestamp when the `destination` service sends the last byte of
      * the response.
      * 
* @@ -9250,6 +9309,63 @@ public com.google.protobuf.TimestampOrBuilder getTimeOrBuilder() { return getTime(); } + public static final int BACKEND_LATENCY_FIELD_NUMBER = 5; + private com.google.protobuf.Duration backendLatency_; + /** + * + * + *
+     * The length of time it takes the backend service to fully respond to a
+     * request. Measured from when the destination service starts to send the
+     * request to the backend until when the destination service receives the
+     * complete response from the backend.
+     * 
+ * + * .google.protobuf.Duration backend_latency = 5; + * + * @return Whether the backendLatency field is set. + */ + @java.lang.Override + public boolean hasBackendLatency() { + return backendLatency_ != null; + } + /** + * + * + *
+     * The length of time it takes the backend service to fully respond to a
+     * request. Measured from when the destination service starts to send the
+     * request to the backend until when the destination service receives the
+     * complete response from the backend.
+     * 
+ * + * .google.protobuf.Duration backend_latency = 5; + * + * @return The backendLatency. + */ + @java.lang.Override + public com.google.protobuf.Duration getBackendLatency() { + return backendLatency_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : backendLatency_; + } + /** + * + * + *
+     * The length of time it takes the backend service to fully respond to a
+     * request. Measured from when the destination service starts to send the
+     * request to the backend until when the destination service receives the
+     * complete response from the backend.
+     * 
+ * + * .google.protobuf.Duration backend_latency = 5; + */ + @java.lang.Override + public com.google.protobuf.DurationOrBuilder getBackendLatencyOrBuilder() { + return getBackendLatency(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -9275,6 +9391,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (time_ != null) { output.writeMessage(4, getTime()); } + if (backendLatency_ != null) { + output.writeMessage(5, getBackendLatency()); + } unknownFields.writeTo(output); } @@ -9303,6 +9422,9 @@ public int getSerializedSize() { if (time_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getTime()); } + if (backendLatency_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getBackendLatency()); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -9326,6 +9448,10 @@ public boolean equals(final java.lang.Object obj) { if (hasTime()) { if (!getTime().equals(other.getTime())) return false; } + if (hasBackendLatency() != other.hasBackendLatency()) return false; + if (hasBackendLatency()) { + if (!getBackendLatency().equals(other.getBackendLatency())) return false; + } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -9349,6 +9475,10 @@ public int hashCode() { hash = (37 * hash) + TIME_FIELD_NUMBER; hash = (53 * hash) + getTime().hashCode(); } + if (hasBackendLatency()) { + hash = (37 * hash) + BACKEND_LATENCY_FIELD_NUMBER; + hash = (53 * hash) + getBackendLatency().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -9528,6 +9658,12 @@ public Builder clear() { time_ = null; timeBuilder_ = null; } + if (backendLatencyBuilder_ == null) { + backendLatency_ = null; + } else { + backendLatency_ = null; + backendLatencyBuilder_ = null; + } return this; } @@ -9565,6 +9701,11 @@ public com.google.rpc.context.AttributeContext.Response buildPartial() { } else { result.time_ = timeBuilder_.build(); } + if (backendLatencyBuilder_ == null) { + result.backendLatency_ = backendLatency_; + } else { + result.backendLatency_ = backendLatencyBuilder_.build(); + } onBuilt(); return result; } @@ -9627,6 +9768,9 @@ public Builder mergeFrom(com.google.rpc.context.AttributeContext.Response other) if (other.hasTime()) { mergeTime(other.getTime()); } + if (other.hasBackendLatency()) { + mergeBackendLatency(other.getBackendLatency()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -9946,7 +10090,7 @@ public Builder putAllHeaders(java.util.Map v * * *
-       * The timestamp when the `destination` service generates the first byte of
+       * The timestamp when the `destination` service sends the last byte of
        * the response.
        * 
* @@ -9961,7 +10105,7 @@ public boolean hasTime() { * * *
-       * The timestamp when the `destination` service generates the first byte of
+       * The timestamp when the `destination` service sends the last byte of
        * the response.
        * 
* @@ -9980,7 +10124,7 @@ public com.google.protobuf.Timestamp getTime() { * * *
-       * The timestamp when the `destination` service generates the first byte of
+       * The timestamp when the `destination` service sends the last byte of
        * the response.
        * 
* @@ -10003,7 +10147,7 @@ public Builder setTime(com.google.protobuf.Timestamp value) { * * *
-       * The timestamp when the `destination` service generates the first byte of
+       * The timestamp when the `destination` service sends the last byte of
        * the response.
        * 
* @@ -10023,7 +10167,7 @@ public Builder setTime(com.google.protobuf.Timestamp.Builder builderForValue) { * * *
-       * The timestamp when the `destination` service generates the first byte of
+       * The timestamp when the `destination` service sends the last byte of
        * the response.
        * 
* @@ -10047,7 +10191,7 @@ public Builder mergeTime(com.google.protobuf.Timestamp value) { * * *
-       * The timestamp when the `destination` service generates the first byte of
+       * The timestamp when the `destination` service sends the last byte of
        * the response.
        * 
* @@ -10068,7 +10212,7 @@ public Builder clearTime() { * * *
-       * The timestamp when the `destination` service generates the first byte of
+       * The timestamp when the `destination` service sends the last byte of
        * the response.
        * 
* @@ -10083,7 +10227,7 @@ public com.google.protobuf.Timestamp.Builder getTimeBuilder() { * * *
-       * The timestamp when the `destination` service generates the first byte of
+       * The timestamp when the `destination` service sends the last byte of
        * the response.
        * 
* @@ -10100,7 +10244,7 @@ public com.google.protobuf.TimestampOrBuilder getTimeOrBuilder() { * * *
-       * The timestamp when the `destination` service generates the first byte of
+       * The timestamp when the `destination` service sends the last byte of
        * the response.
        * 
* @@ -10123,6 +10267,218 @@ public com.google.protobuf.TimestampOrBuilder getTimeOrBuilder() { return timeBuilder_; } + private com.google.protobuf.Duration backendLatency_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + backendLatencyBuilder_; + /** + * + * + *
+       * The length of time it takes the backend service to fully respond to a
+       * request. Measured from when the destination service starts to send the
+       * request to the backend until when the destination service receives the
+       * complete response from the backend.
+       * 
+ * + * .google.protobuf.Duration backend_latency = 5; + * + * @return Whether the backendLatency field is set. + */ + public boolean hasBackendLatency() { + return backendLatencyBuilder_ != null || backendLatency_ != null; + } + /** + * + * + *
+       * The length of time it takes the backend service to fully respond to a
+       * request. Measured from when the destination service starts to send the
+       * request to the backend until when the destination service receives the
+       * complete response from the backend.
+       * 
+ * + * .google.protobuf.Duration backend_latency = 5; + * + * @return The backendLatency. + */ + public com.google.protobuf.Duration getBackendLatency() { + if (backendLatencyBuilder_ == null) { + return backendLatency_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : backendLatency_; + } else { + return backendLatencyBuilder_.getMessage(); + } + } + /** + * + * + *
+       * The length of time it takes the backend service to fully respond to a
+       * request. Measured from when the destination service starts to send the
+       * request to the backend until when the destination service receives the
+       * complete response from the backend.
+       * 
+ * + * .google.protobuf.Duration backend_latency = 5; + */ + public Builder setBackendLatency(com.google.protobuf.Duration value) { + if (backendLatencyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + backendLatency_ = value; + onChanged(); + } else { + backendLatencyBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+       * The length of time it takes the backend service to fully respond to a
+       * request. Measured from when the destination service starts to send the
+       * request to the backend until when the destination service receives the
+       * complete response from the backend.
+       * 
+ * + * .google.protobuf.Duration backend_latency = 5; + */ + public Builder setBackendLatency(com.google.protobuf.Duration.Builder builderForValue) { + if (backendLatencyBuilder_ == null) { + backendLatency_ = builderForValue.build(); + onChanged(); + } else { + backendLatencyBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+       * The length of time it takes the backend service to fully respond to a
+       * request. Measured from when the destination service starts to send the
+       * request to the backend until when the destination service receives the
+       * complete response from the backend.
+       * 
+ * + * .google.protobuf.Duration backend_latency = 5; + */ + public Builder mergeBackendLatency(com.google.protobuf.Duration value) { + if (backendLatencyBuilder_ == null) { + if (backendLatency_ != null) { + backendLatency_ = + com.google.protobuf.Duration.newBuilder(backendLatency_) + .mergeFrom(value) + .buildPartial(); + } else { + backendLatency_ = value; + } + onChanged(); + } else { + backendLatencyBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+       * The length of time it takes the backend service to fully respond to a
+       * request. Measured from when the destination service starts to send the
+       * request to the backend until when the destination service receives the
+       * complete response from the backend.
+       * 
+ * + * .google.protobuf.Duration backend_latency = 5; + */ + public Builder clearBackendLatency() { + if (backendLatencyBuilder_ == null) { + backendLatency_ = null; + onChanged(); + } else { + backendLatency_ = null; + backendLatencyBuilder_ = null; + } + + return this; + } + /** + * + * + *
+       * The length of time it takes the backend service to fully respond to a
+       * request. Measured from when the destination service starts to send the
+       * request to the backend until when the destination service receives the
+       * complete response from the backend.
+       * 
+ * + * .google.protobuf.Duration backend_latency = 5; + */ + public com.google.protobuf.Duration.Builder getBackendLatencyBuilder() { + + onChanged(); + return getBackendLatencyFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * The length of time it takes the backend service to fully respond to a
+       * request. Measured from when the destination service starts to send the
+       * request to the backend until when the destination service receives the
+       * complete response from the backend.
+       * 
+ * + * .google.protobuf.Duration backend_latency = 5; + */ + public com.google.protobuf.DurationOrBuilder getBackendLatencyOrBuilder() { + if (backendLatencyBuilder_ != null) { + return backendLatencyBuilder_.getMessageOrBuilder(); + } else { + return backendLatency_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : backendLatency_; + } + } + /** + * + * + *
+       * The length of time it takes the backend service to fully respond to a
+       * request. Measured from when the destination service starts to send the
+       * request to the backend until when the destination service receives the
+       * complete response from the backend.
+       * 
+ * + * .google.protobuf.Duration backend_latency = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + getBackendLatencyFieldBuilder() { + if (backendLatencyBuilder_ == null) { + backendLatencyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getBackendLatency(), getParentForChildren(), isClean()); + backendLatency_ = null; + } + return backendLatencyBuilder_; + } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -10339,658 +10695,1644 @@ public interface ResourceOrBuilder * map<string, string> labels = 4; */ java.lang.String getLabelsOrThrow(java.lang.String key); - } - /** - * - * - *
-   * This message defines core attributes for a resource. A resource is an
-   * addressable (named) entity provided by the destination service. For
-   * example, a file stored on a network storage service.
-   * 
- * - * Protobuf type {@code google.rpc.context.AttributeContext.Resource} - */ - public static final class Resource extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.rpc.context.AttributeContext.Resource) - ResourceOrBuilder { - private static final long serialVersionUID = 0L; - // Use Resource.newBuilder() to construct. - private Resource(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private Resource() { - service_ = ""; - name_ = ""; - type_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new Resource(); - } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } + /** + * + * + *
+     * The unique identifier of the resource. UID is unique in the time
+     * and space for this resource within the scope of the service. It is
+     * typically generated by the server on successful creation of a resource
+     * and must not be changed. UID is used to uniquely identify resources
+     * with resource name reuses. This should be a UUID4.
+     * 
+ * + * string uid = 5; + * + * @return The uid. + */ + java.lang.String getUid(); + /** + * + * + *
+     * The unique identifier of the resource. UID is unique in the time
+     * and space for this resource within the scope of the service. It is
+     * typically generated by the server on successful creation of a resource
+     * and must not be changed. UID is used to uniquely identify resources
+     * with resource name reuses. This should be a UUID4.
+     * 
+ * + * string uid = 5; + * + * @return The bytes for uid. + */ + com.google.protobuf.ByteString getUidBytes(); - private Resource( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - service_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - type_ = s; - break; - } - case 34: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - labels_ = - com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - labels_.getMutableMap().put(labels__.getKey(), labels__.getValue()); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.rpc.context.AttributeContextProto - .internal_static_google_rpc_context_AttributeContext_Resource_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 4: - return internalGetLabels(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.rpc.context.AttributeContextProto - .internal_static_google_rpc_context_AttributeContext_Resource_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.rpc.context.AttributeContext.Resource.class, - com.google.rpc.context.AttributeContext.Resource.Builder.class); - } - - public static final int SERVICE_FIELD_NUMBER = 1; - private volatile java.lang.Object service_; /** * * *
-     * The name of the service that this resource belongs to, such as
-     * `pubsub.googleapis.com`. The service may be different from the DNS
-     * hostname that actually serves the request.
+     * Annotations is an unstructured key-value map stored with a resource that
+     * may be set by external tools to store and retrieve arbitrary metadata.
+     * They are not queryable and should be preserved when modifying objects.
+     * More info: https://kubernetes.io/docs/user-guide/annotations
      * 
* - * string service = 1; - * - * @return The service. + * map<string, string> annotations = 6; */ - @java.lang.Override - public java.lang.String getService() { - java.lang.Object ref = service_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - service_ = s; - return s; - } - } + int getAnnotationsCount(); /** * * *
-     * The name of the service that this resource belongs to, such as
-     * `pubsub.googleapis.com`. The service may be different from the DNS
-     * hostname that actually serves the request.
+     * Annotations is an unstructured key-value map stored with a resource that
+     * may be set by external tools to store and retrieve arbitrary metadata.
+     * They are not queryable and should be preserved when modifying objects.
+     * More info: https://kubernetes.io/docs/user-guide/annotations
      * 
* - * string service = 1; - * - * @return The bytes for service. + * map<string, string> annotations = 6; */ - @java.lang.Override - public com.google.protobuf.ByteString getServiceBytes() { - java.lang.Object ref = service_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - service_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object name_; + boolean containsAnnotations(java.lang.String key); + /** Use {@link #getAnnotationsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getAnnotations(); /** * * *
-     * The stable identifier (name) of a resource on the `service`. A resource
-     * can be logically identified as "//{resource.service}/{resource.name}".
-     * The differences between a resource name and a URI are:
-     * *   Resource name is a logical identifier, independent of network
-     *     protocol and API version. For example,
-     *     `//pubsub.googleapis.com/projects/123/topics/news-feed`.
-     * *   URI often includes protocol and version information, so it can
-     *     be used directly by applications. For example,
-     *     `https://pubsub.googleapis.com/v1/projects/123/topics/news-feed`.
-     * See https://cloud.google.com/apis/design/resource_names for details.
+     * Annotations is an unstructured key-value map stored with a resource that
+     * may be set by external tools to store and retrieve arbitrary metadata.
+     * They are not queryable and should be preserved when modifying objects.
+     * More info: https://kubernetes.io/docs/user-guide/annotations
      * 
* - * string name = 2; - * - * @return The name. + * map<string, string> annotations = 6; */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } + java.util.Map getAnnotationsMap(); /** * * *
-     * The stable identifier (name) of a resource on the `service`. A resource
-     * can be logically identified as "//{resource.service}/{resource.name}".
-     * The differences between a resource name and a URI are:
-     * *   Resource name is a logical identifier, independent of network
-     *     protocol and API version. For example,
-     *     `//pubsub.googleapis.com/projects/123/topics/news-feed`.
-     * *   URI often includes protocol and version information, so it can
-     *     be used directly by applications. For example,
-     *     `https://pubsub.googleapis.com/v1/projects/123/topics/news-feed`.
-     * See https://cloud.google.com/apis/design/resource_names for details.
+     * Annotations is an unstructured key-value map stored with a resource that
+     * may be set by external tools to store and retrieve arbitrary metadata.
+     * They are not queryable and should be preserved when modifying objects.
+     * More info: https://kubernetes.io/docs/user-guide/annotations
      * 
* - * string name = 2; + * map<string, string> annotations = 6; + */ + java.lang.String getAnnotationsOrDefault(java.lang.String key, java.lang.String defaultValue); + /** * - * @return The bytes for name. + * + *
+     * Annotations is an unstructured key-value map stored with a resource that
+     * may be set by external tools to store and retrieve arbitrary metadata.
+     * They are not queryable and should be preserved when modifying objects.
+     * More info: https://kubernetes.io/docs/user-guide/annotations
+     * 
+ * + * map<string, string> annotations = 6; */ - @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + java.lang.String getAnnotationsOrThrow(java.lang.String key); - public static final int TYPE_FIELD_NUMBER = 3; - private volatile java.lang.Object type_; /** * * *
-     * The type of the resource. The syntax is platform-specific because
-     * different platforms define their resources differently.
-     * For Google APIs, the type format must be "{service}/{kind}".
+     * Mutable. The display name set by clients. Must be <= 63 characters.
      * 
* - * string type = 3; + * string display_name = 7; * - * @return The type. + * @return The displayName. */ - @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; - } - } + java.lang.String getDisplayName(); /** * * *
-     * The type of the resource. The syntax is platform-specific because
-     * different platforms define their resources differently.
-     * For Google APIs, the type format must be "{service}/{kind}".
+     * Mutable. The display name set by clients. Must be <= 63 characters.
      * 
* - * string type = 3; + * string display_name = 7; * - * @return The bytes for type. + * @return The bytes for displayName. */ - @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 LABELS_FIELD_NUMBER = 4; - - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.rpc.context.AttributeContextProto - .internal_static_google_rpc_context_AttributeContext_Resource_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { - if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); - } - return labels_; - } + com.google.protobuf.ByteString getDisplayNameBytes(); - public int getLabelsCount() { - return internalGetLabels().getMap().size(); - } /** * * *
-     * The labels or tags on the resource, such as AWS resource tags and
-     * Kubernetes resource labels.
+     * Output only. The timestamp when the resource was created. This may
+     * be either the time creation was initiated or when it was completed.
      * 
* - * map<string, string> labels = 4; + * .google.protobuf.Timestamp create_time = 8; + * + * @return Whether the createTime field is set. */ - @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - return internalGetLabels().getMap().containsKey(key); - } - /** Use {@link #getLabelsMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getLabels() { - return getLabelsMap(); - } + boolean hasCreateTime(); /** * * *
-     * The labels or tags on the resource, such as AWS resource tags and
-     * Kubernetes resource labels.
+     * Output only. The timestamp when the resource was created. This may
+     * be either the time creation was initiated or when it was completed.
      * 
* - * map<string, string> labels = 4; + * .google.protobuf.Timestamp create_time = 8; + * + * @return The createTime. */ - @java.lang.Override - public java.util.Map getLabelsMap() { - return internalGetLabels().getMap(); - } + com.google.protobuf.Timestamp getCreateTime(); /** * * *
-     * The labels or tags on the resource, such as AWS resource tags and
-     * Kubernetes resource labels.
+     * Output only. The timestamp when the resource was created. This may
+     * be either the time creation was initiated or when it was completed.
      * 
* - * map<string, string> labels = 4; + * .google.protobuf.Timestamp create_time = 8; */ - @java.lang.Override - public java.lang.String getLabelsOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetLabels().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + /** * * *
-     * The labels or tags on the resource, such as AWS resource tags and
-     * Kubernetes resource labels.
+     * Output only. The timestamp when the resource was last updated. Any
+     * change to the resource made by users must refresh this value.
+     * Changes to a resource made by the service should refresh this value.
      * 
* - * map<string, string> labels = 4; + * .google.protobuf.Timestamp update_time = 9; + * + * @return Whether the updateTime field is set. */ - @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetLabels().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } + boolean hasUpdateTime(); + /** + * + * + *
+     * Output only. The timestamp when the resource was last updated. Any
+     * change to the resource made by users must refresh this value.
+     * Changes to a resource made by the service should refresh this value.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 9; + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + /** + * + * + *
+     * Output only. The timestamp when the resource was last updated. Any
+     * change to the resource made by users must refresh this value.
+     * Changes to a resource made by the service should refresh this value.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 9; + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); - private byte memoizedIsInitialized = -1; + /** + * + * + *
+     * Output only. The timestamp when the resource was deleted.
+     * If the resource is not deleted, this must be empty.
+     * 
+ * + * .google.protobuf.Timestamp delete_time = 10; + * + * @return Whether the deleteTime field is set. + */ + boolean hasDeleteTime(); + /** + * + * + *
+     * Output only. The timestamp when the resource was deleted.
+     * If the resource is not deleted, this must be empty.
+     * 
+ * + * .google.protobuf.Timestamp delete_time = 10; + * + * @return The deleteTime. + */ + com.google.protobuf.Timestamp getDeleteTime(); + /** + * + * + *
+     * Output only. The timestamp when the resource was deleted.
+     * If the resource is not deleted, this must be empty.
+     * 
+ * + * .google.protobuf.Timestamp delete_time = 10; + */ + com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder(); - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + /** + * + * + *
+     * Output only. An opaque value that uniquely identifies a version or
+     * generation of a resource. It can be used to confirm that the client
+     * and server agree on the ordering of a resource being written.
+     * 
+ * + * string etag = 11; + * + * @return The etag. + */ + java.lang.String getEtag(); + /** + * + * + *
+     * Output only. An opaque value that uniquely identifies a version or
+     * generation of a resource. It can be used to confirm that the client
+     * and server agree on the ordering of a resource being written.
+     * 
+ * + * string etag = 11; + * + * @return The bytes for etag. + */ + com.google.protobuf.ByteString getEtagBytes(); - memoizedIsInitialized = 1; - return true; + /** + * + * + *
+     * Immutable. The location of the resource. The location encoding is
+     * specific to the service provider, and new encoding may be introduced
+     * as the service evolves.
+     * For Google Cloud products, the encoding is what is used by Google Cloud
+     * APIs, such as `us-east1`, `aws-us-east-1`, and `azure-eastus2`. The
+     * semantics of `location` is identical to the
+     * `cloud.googleapis.com/location` label used by some Google Cloud APIs.
+     * 
+ * + * string location = 12; + * + * @return The location. + */ + java.lang.String getLocation(); + /** + * + * + *
+     * Immutable. The location of the resource. The location encoding is
+     * specific to the service provider, and new encoding may be introduced
+     * as the service evolves.
+     * For Google Cloud products, the encoding is what is used by Google Cloud
+     * APIs, such as `us-east1`, `aws-us-east-1`, and `azure-eastus2`. The
+     * semantics of `location` is identical to the
+     * `cloud.googleapis.com/location` label used by some Google Cloud APIs.
+     * 
+ * + * string location = 12; + * + * @return The bytes for location. + */ + com.google.protobuf.ByteString getLocationBytes(); + } + /** + * + * + *
+   * This message defines core attributes for a resource. A resource is an
+   * addressable (named) entity provided by the destination service. For
+   * example, a file stored on a network storage service.
+   * 
+ * + * Protobuf type {@code google.rpc.context.AttributeContext.Resource} + */ + public static final class Resource extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.rpc.context.AttributeContext.Resource) + ResourceOrBuilder { + private static final long serialVersionUID = 0L; + // Use Resource.newBuilder() to construct. + private Resource(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getServiceBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, service_); - } - if (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); - } - if (!getTypeBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, type_); - } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 4); - unknownFields.writeTo(output); + private Resource() { + service_ = ""; + name_ = ""; + type_ = ""; + uid_ = ""; + displayName_ = ""; + etag_ = ""; + location_ = ""; } @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getServiceBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, service_); - } - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); - } - if (!getTypeBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, type_); - } - for (java.util.Map.Entry entry : - internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry labels__ = - LabelsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, labels__); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Resource(); } @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.rpc.context.AttributeContext.Resource)) { - return super.equals(obj); - } - com.google.rpc.context.AttributeContext.Resource other = - (com.google.rpc.context.AttributeContext.Resource) obj; - - if (!getService().equals(other.getService())) return false; - if (!getName().equals(other.getName())) return false; - if (!getType().equals(other.getType())) return false; - if (!internalGetLabels().equals(other.internalGetLabels())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + SERVICE_FIELD_NUMBER; - hash = (53 * hash) + getService().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + TYPE_FIELD_NUMBER; - hash = (53 * hash) + getType().hashCode(); - if (!internalGetLabels().getMap().isEmpty()) { - hash = (37 * hash) + LABELS_FIELD_NUMBER; - hash = (53 * hash) + internalGetLabels().hashCode(); + private Resource( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.rpc.context.AttributeContext.Resource parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - public static com.google.rpc.context.AttributeContext.Resource parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + service_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - public static com.google.rpc.context.AttributeContext.Resource parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + name_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - public static com.google.rpc.context.AttributeContext.Resource parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + type_ = s; + break; + } + case 34: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + labels_ = + com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + labels_.getMutableMap().put(labels__.getKey(), labels__.getValue()); + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); - public static com.google.rpc.context.AttributeContext.Resource parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + uid_ = s; + break; + } + case 50: + { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + annotations_ = + com.google.protobuf.MapField.newMapField( + AnnotationsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000002; + } + com.google.protobuf.MapEntry annotations__ = + input.readMessage( + AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + annotations_.getMutableMap().put(annotations__.getKey(), annotations__.getValue()); + break; + } + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); - public static com.google.rpc.context.AttributeContext.Resource parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + displayName_ = s; + break; + } + case 66: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); + } + createTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); + } - public static com.google.rpc.context.AttributeContext.Resource parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } + break; + } + case 74: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (updateTime_ != null) { + subBuilder = updateTime_.toBuilder(); + } + updateTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateTime_); + updateTime_ = subBuilder.buildPartial(); + } - public static com.google.rpc.context.AttributeContext.Resource parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } + break; + } + case 82: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (deleteTime_ != null) { + subBuilder = deleteTime_.toBuilder(); + } + deleteTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(deleteTime_); + deleteTime_ = subBuilder.buildPartial(); + } - public static com.google.rpc.context.AttributeContext.Resource parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } + break; + } + case 90: + { + java.lang.String s = input.readStringRequireUtf8(); - public static com.google.rpc.context.AttributeContext.Resource parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } + etag_ = s; + break; + } + case 98: + { + java.lang.String s = input.readStringRequireUtf8(); - public static com.google.rpc.context.AttributeContext.Resource parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + location_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } } - public static com.google.rpc.context.AttributeContext.Resource parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.rpc.context.AttributeContextProto + .internal_static_google_rpc_context_AttributeContext_Resource_descriptor; } + @SuppressWarnings({"rawtypes"}) @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.rpc.context.AttributeContext.Resource prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 4: + return internalGetLabels(); + case 6: + return internalGetAnnotations(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } } @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.rpc.context.AttributeContextProto + .internal_static_google_rpc_context_AttributeContext_Resource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.rpc.context.AttributeContext.Resource.class, + com.google.rpc.context.AttributeContext.Resource.Builder.class); } + public static final int SERVICE_FIELD_NUMBER = 1; + private volatile java.lang.Object service_; + /** + * + * + *
+     * The name of the service that this resource belongs to, such as
+     * `pubsub.googleapis.com`. The service may be different from the DNS
+     * hostname that actually serves the request.
+     * 
+ * + * string service = 1; + * + * @return The service. + */ @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; + public java.lang.String getService() { + java.lang.Object ref = service_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + service_ = s; + return s; + } } /** * * *
-     * This message defines core attributes for a resource. A resource is an
-     * addressable (named) entity provided by the destination service. For
-     * example, a file stored on a network storage service.
+     * The name of the service that this resource belongs to, such as
+     * `pubsub.googleapis.com`. The service may be different from the DNS
+     * hostname that actually serves the request.
      * 
* - * Protobuf type {@code google.rpc.context.AttributeContext.Resource} + * string service = 1; + * + * @return The bytes for service. */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.rpc.context.AttributeContext.Resource) - com.google.rpc.context.AttributeContext.ResourceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.rpc.context.AttributeContextProto - .internal_static_google_rpc_context_AttributeContext_Resource_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 4: - return internalGetLabels(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { - switch (number) { - case 4: - return internalGetMutableLabels(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } + @java.lang.Override + public com.google.protobuf.ByteString getServiceBytes() { + java.lang.Object ref = service_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + service_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } + } - @java.lang.Override + public static final int NAME_FIELD_NUMBER = 2; + private volatile java.lang.Object name_; + /** + * + * + *
+     * The stable identifier (name) of a resource on the `service`. A resource
+     * can be logically identified as "//{resource.service}/{resource.name}".
+     * The differences between a resource name and a URI are:
+     * *   Resource name is a logical identifier, independent of network
+     *     protocol and API version. For example,
+     *     `//pubsub.googleapis.com/projects/123/topics/news-feed`.
+     * *   URI often includes protocol and version information, so it can
+     *     be used directly by applications. For example,
+     *     `https://pubsub.googleapis.com/v1/projects/123/topics/news-feed`.
+     * See https://cloud.google.com/apis/design/resource_names for details.
+     * 
+ * + * string name = 2; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+     * The stable identifier (name) of a resource on the `service`. A resource
+     * can be logically identified as "//{resource.service}/{resource.name}".
+     * The differences between a resource name and a URI are:
+     * *   Resource name is a logical identifier, independent of network
+     *     protocol and API version. For example,
+     *     `//pubsub.googleapis.com/projects/123/topics/news-feed`.
+     * *   URI often includes protocol and version information, so it can
+     *     be used directly by applications. For example,
+     *     `https://pubsub.googleapis.com/v1/projects/123/topics/news-feed`.
+     * See https://cloud.google.com/apis/design/resource_names for details.
+     * 
+ * + * string name = 2; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TYPE_FIELD_NUMBER = 3; + private volatile java.lang.Object type_; + /** + * + * + *
+     * The type of the resource. The syntax is platform-specific because
+     * different platforms define their resources differently.
+     * For Google APIs, the type format must be "{service}/{kind}".
+     * 
+ * + * string type = 3; + * + * @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 the resource. The syntax is platform-specific because
+     * different platforms define their resources differently.
+     * For Google APIs, the type format must be "{service}/{kind}".
+     * 
+ * + * string type = 3; + * + * @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 LABELS_FIELD_NUMBER = 4; + + private static final class LabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.rpc.context.AttributeContextProto + .internal_static_google_rpc_context_AttributeContext_Resource_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + /** + * + * + *
+     * The labels or tags on the resource, such as AWS resource tags and
+     * Kubernetes resource labels.
+     * 
+ * + * map<string, string> labels = 4; + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + return internalGetLabels().getMap().containsKey(key); + } + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + /** + * + * + *
+     * The labels or tags on the resource, such as AWS resource tags and
+     * Kubernetes resource labels.
+     * 
+ * + * map<string, string> labels = 4; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + * + * + *
+     * The labels or tags on the resource, such as AWS resource tags and
+     * Kubernetes resource labels.
+     * 
+ * + * map<string, string> labels = 4; + */ + @java.lang.Override + public java.lang.String getLabelsOrDefault( + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+     * The labels or tags on the resource, such as AWS resource tags and
+     * Kubernetes resource labels.
+     * 
+ * + * map<string, string> labels = 4; + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int UID_FIELD_NUMBER = 5; + private volatile java.lang.Object uid_; + /** + * + * + *
+     * The unique identifier of the resource. UID is unique in the time
+     * and space for this resource within the scope of the service. It is
+     * typically generated by the server on successful creation of a resource
+     * and must not be changed. UID is used to uniquely identify resources
+     * with resource name reuses. This should be a UUID4.
+     * 
+ * + * string uid = 5; + * + * @return The uid. + */ + @java.lang.Override + public java.lang.String getUid() { + java.lang.Object ref = uid_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uid_ = s; + return s; + } + } + /** + * + * + *
+     * The unique identifier of the resource. UID is unique in the time
+     * and space for this resource within the scope of the service. It is
+     * typically generated by the server on successful creation of a resource
+     * and must not be changed. UID is used to uniquely identify resources
+     * with resource name reuses. This should be a UUID4.
+     * 
+ * + * string uid = 5; + * + * @return The bytes for uid. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUidBytes() { + java.lang.Object ref = uid_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ANNOTATIONS_FIELD_NUMBER = 6; + + private static final class AnnotationsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.rpc.context.AttributeContextProto + .internal_static_google_rpc_context_AttributeContext_Resource_AnnotationsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + private com.google.protobuf.MapField annotations_; + + private com.google.protobuf.MapField + internalGetAnnotations() { + if (annotations_ == null) { + return com.google.protobuf.MapField.emptyMapField( + AnnotationsDefaultEntryHolder.defaultEntry); + } + return annotations_; + } + + public int getAnnotationsCount() { + return internalGetAnnotations().getMap().size(); + } + /** + * + * + *
+     * Annotations is an unstructured key-value map stored with a resource that
+     * may be set by external tools to store and retrieve arbitrary metadata.
+     * They are not queryable and should be preserved when modifying objects.
+     * More info: https://kubernetes.io/docs/user-guide/annotations
+     * 
+ * + * map<string, string> annotations = 6; + */ + @java.lang.Override + public boolean containsAnnotations(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + return internalGetAnnotations().getMap().containsKey(key); + } + /** Use {@link #getAnnotationsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getAnnotations() { + return getAnnotationsMap(); + } + /** + * + * + *
+     * Annotations is an unstructured key-value map stored with a resource that
+     * may be set by external tools to store and retrieve arbitrary metadata.
+     * They are not queryable and should be preserved when modifying objects.
+     * More info: https://kubernetes.io/docs/user-guide/annotations
+     * 
+ * + * map<string, string> annotations = 6; + */ + @java.lang.Override + public java.util.Map getAnnotationsMap() { + return internalGetAnnotations().getMap(); + } + /** + * + * + *
+     * Annotations is an unstructured key-value map stored with a resource that
+     * may be set by external tools to store and retrieve arbitrary metadata.
+     * They are not queryable and should be preserved when modifying objects.
+     * More info: https://kubernetes.io/docs/user-guide/annotations
+     * 
+ * + * map<string, string> annotations = 6; + */ + @java.lang.Override + public java.lang.String getAnnotationsOrDefault( + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetAnnotations().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+     * Annotations is an unstructured key-value map stored with a resource that
+     * may be set by external tools to store and retrieve arbitrary metadata.
+     * They are not queryable and should be preserved when modifying objects.
+     * More info: https://kubernetes.io/docs/user-guide/annotations
+     * 
+ * + * map<string, string> annotations = 6; + */ + @java.lang.Override + public java.lang.String getAnnotationsOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetAnnotations().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 7; + private volatile java.lang.Object displayName_; + /** + * + * + *
+     * Mutable. The display name set by clients. Must be <= 63 characters.
+     * 
+ * + * string display_name = 7; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } + } + /** + * + * + *
+     * Mutable. The display name set by clients. Must be <= 63 characters.
+     * 
+ * + * string display_name = 7; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATE_TIME_FIELD_NUMBER = 8; + private com.google.protobuf.Timestamp createTime_; + /** + * + * + *
+     * Output only. The timestamp when the resource was created. This may
+     * be either the time creation was initiated or when it was completed.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 8; + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return createTime_ != null; + } + /** + * + * + *
+     * Output only. The timestamp when the resource was created. This may
+     * be either the time creation was initiated or when it was completed.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 8; + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + /** + * + * + *
+     * Output only. The timestamp when the resource was created. This may
+     * be either the time creation was initiated or when it was completed.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 8; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return getCreateTime(); + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 9; + private com.google.protobuf.Timestamp updateTime_; + /** + * + * + *
+     * Output only. The timestamp when the resource was last updated. Any
+     * change to the resource made by users must refresh this value.
+     * Changes to a resource made by the service should refresh this value.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 9; + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return updateTime_ != null; + } + /** + * + * + *
+     * Output only. The timestamp when the resource was last updated. Any
+     * change to the resource made by users must refresh this value.
+     * Changes to a resource made by the service should refresh this value.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 9; + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + /** + * + * + *
+     * Output only. The timestamp when the resource was last updated. Any
+     * change to the resource made by users must refresh this value.
+     * Changes to a resource made by the service should refresh this value.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 9; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return getUpdateTime(); + } + + public static final int DELETE_TIME_FIELD_NUMBER = 10; + private com.google.protobuf.Timestamp deleteTime_; + /** + * + * + *
+     * Output only. The timestamp when the resource was deleted.
+     * If the resource is not deleted, this must be empty.
+     * 
+ * + * .google.protobuf.Timestamp delete_time = 10; + * + * @return Whether the deleteTime field is set. + */ + @java.lang.Override + public boolean hasDeleteTime() { + return deleteTime_ != null; + } + /** + * + * + *
+     * Output only. The timestamp when the resource was deleted.
+     * If the resource is not deleted, this must be empty.
+     * 
+ * + * .google.protobuf.Timestamp delete_time = 10; + * + * @return The deleteTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getDeleteTime() { + return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; + } + /** + * + * + *
+     * Output only. The timestamp when the resource was deleted.
+     * If the resource is not deleted, this must be empty.
+     * 
+ * + * .google.protobuf.Timestamp delete_time = 10; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { + return getDeleteTime(); + } + + public static final int ETAG_FIELD_NUMBER = 11; + private volatile java.lang.Object etag_; + /** + * + * + *
+     * Output only. An opaque value that uniquely identifies a version or
+     * generation of a resource. It can be used to confirm that the client
+     * and server agree on the ordering of a resource being written.
+     * 
+ * + * string etag = 11; + * + * @return The etag. + */ + @java.lang.Override + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } + } + /** + * + * + *
+     * Output only. An opaque value that uniquely identifies a version or
+     * generation of a resource. It can be used to confirm that the client
+     * and server agree on the ordering of a resource being written.
+     * 
+ * + * string etag = 11; + * + * @return The bytes for etag. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LOCATION_FIELD_NUMBER = 12; + private volatile java.lang.Object location_; + /** + * + * + *
+     * Immutable. The location of the resource. The location encoding is
+     * specific to the service provider, and new encoding may be introduced
+     * as the service evolves.
+     * For Google Cloud products, the encoding is what is used by Google Cloud
+     * APIs, such as `us-east1`, `aws-us-east-1`, and `azure-eastus2`. The
+     * semantics of `location` is identical to the
+     * `cloud.googleapis.com/location` label used by some Google Cloud APIs.
+     * 
+ * + * string location = 12; + * + * @return The location. + */ + @java.lang.Override + public java.lang.String getLocation() { + java.lang.Object ref = location_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + location_ = s; + return s; + } + } + /** + * + * + *
+     * Immutable. The location of the resource. The location encoding is
+     * specific to the service provider, and new encoding may be introduced
+     * as the service evolves.
+     * For Google Cloud products, the encoding is what is used by Google Cloud
+     * APIs, such as `us-east1`, `aws-us-east-1`, and `azure-eastus2`. The
+     * semantics of `location` is identical to the
+     * `cloud.googleapis.com/location` label used by some Google Cloud APIs.
+     * 
+ * + * string location = 12; + * + * @return The bytes for location. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLocationBytes() { + java.lang.Object ref = location_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + location_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getServiceBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, service_); + } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); + } + if (!getTypeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, type_); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 4); + if (!getUidBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, uid_); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetAnnotations(), AnnotationsDefaultEntryHolder.defaultEntry, 6); + if (!getDisplayNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, displayName_); + } + if (createTime_ != null) { + output.writeMessage(8, getCreateTime()); + } + if (updateTime_ != null) { + output.writeMessage(9, getUpdateTime()); + } + if (deleteTime_ != null) { + output.writeMessage(10, getDeleteTime()); + } + if (!getEtagBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 11, etag_); + } + if (!getLocationBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 12, location_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getServiceBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, service_); + } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); + } + if (!getTypeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, type_); + } + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, labels__); + } + if (!getUidBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, uid_); + } + for (java.util.Map.Entry entry : + internalGetAnnotations().getMap().entrySet()) { + com.google.protobuf.MapEntry annotations__ = + AnnotationsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, annotations__); + } + if (!getDisplayNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, displayName_); + } + if (createTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getCreateTime()); + } + if (updateTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getUpdateTime()); + } + if (deleteTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getDeleteTime()); + } + if (!getEtagBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, etag_); + } + if (!getLocationBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, location_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.rpc.context.AttributeContext.Resource)) { + return super.equals(obj); + } + com.google.rpc.context.AttributeContext.Resource other = + (com.google.rpc.context.AttributeContext.Resource) obj; + + if (!getService().equals(other.getService())) return false; + if (!getName().equals(other.getName())) return false; + if (!getType().equals(other.getType())) return false; + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!getUid().equals(other.getUid())) return false; + if (!internalGetAnnotations().equals(other.internalGetAnnotations())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (hasDeleteTime() != other.hasDeleteTime()) return false; + if (hasDeleteTime()) { + if (!getDeleteTime().equals(other.getDeleteTime())) return false; + } + if (!getEtag().equals(other.getEtag())) return false; + if (!getLocation().equals(other.getLocation())) return false; + if (!unknownFields.equals(other.unknownFields)) 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) + SERVICE_FIELD_NUMBER; + hash = (53 * hash) + getService().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + getType().hashCode(); + if (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().hashCode(); + } + hash = (37 * hash) + UID_FIELD_NUMBER; + hash = (53 * hash) + getUid().hashCode(); + if (!internalGetAnnotations().getMap().isEmpty()) { + hash = (37 * hash) + ANNOTATIONS_FIELD_NUMBER; + hash = (53 * hash) + internalGetAnnotations().hashCode(); + } + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + if (hasDeleteTime()) { + hash = (37 * hash) + DELETE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getDeleteTime().hashCode(); + } + hash = (37 * hash) + ETAG_FIELD_NUMBER; + hash = (53 * hash) + getEtag().hashCode(); + hash = (37 * hash) + LOCATION_FIELD_NUMBER; + hash = (53 * hash) + getLocation().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.rpc.context.AttributeContext.Resource parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.rpc.context.AttributeContext.Resource parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.rpc.context.AttributeContext.Resource parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.rpc.context.AttributeContext.Resource parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.rpc.context.AttributeContext.Resource parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.rpc.context.AttributeContext.Resource parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.rpc.context.AttributeContext.Resource parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.rpc.context.AttributeContext.Resource parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.rpc.context.AttributeContext.Resource parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.rpc.context.AttributeContext.Resource parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.rpc.context.AttributeContext.Resource parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.rpc.context.AttributeContext.Resource parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.rpc.context.AttributeContext.Resource prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * This message defines core attributes for a resource. A resource is an
+     * addressable (named) entity provided by the destination service. For
+     * example, a file stored on a network storage service.
+     * 
+ * + * Protobuf type {@code google.rpc.context.AttributeContext.Resource} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.rpc.context.AttributeContext.Resource) + com.google.rpc.context.AttributeContext.ResourceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.rpc.context.AttributeContextProto + .internal_static_google_rpc_context_AttributeContext_Resource_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 4: + return internalGetLabels(); + case 6: + return internalGetAnnotations(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + switch (number) { + case 4: + return internalGetMutableLabels(); + case 6: + return internalGetMutableAnnotations(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.rpc.context.AttributeContextProto @@ -10999,448 +12341,1806 @@ protected com.google.protobuf.MapField internalGetMutableMapField(int number) { com.google.rpc.context.AttributeContext.Resource.class, com.google.rpc.context.AttributeContext.Resource.Builder.class); } - - // Construct using com.google.rpc.context.AttributeContext.Resource.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); + + // Construct using com.google.rpc.context.AttributeContext.Resource.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + service_ = ""; + + name_ = ""; + + type_ = ""; + + internalGetMutableLabels().clear(); + uid_ = ""; + + internalGetMutableAnnotations().clear(); + displayName_ = ""; + + if (createTimeBuilder_ == null) { + createTime_ = null; + } else { + createTime_ = null; + createTimeBuilder_ = null; + } + if (updateTimeBuilder_ == null) { + updateTime_ = null; + } else { + updateTime_ = null; + updateTimeBuilder_ = null; + } + if (deleteTimeBuilder_ == null) { + deleteTime_ = null; + } else { + deleteTime_ = null; + deleteTimeBuilder_ = null; + } + etag_ = ""; + + location_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.rpc.context.AttributeContextProto + .internal_static_google_rpc_context_AttributeContext_Resource_descriptor; + } + + @java.lang.Override + public com.google.rpc.context.AttributeContext.Resource getDefaultInstanceForType() { + return com.google.rpc.context.AttributeContext.Resource.getDefaultInstance(); + } + + @java.lang.Override + public com.google.rpc.context.AttributeContext.Resource build() { + com.google.rpc.context.AttributeContext.Resource result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.rpc.context.AttributeContext.Resource buildPartial() { + com.google.rpc.context.AttributeContext.Resource result = + new com.google.rpc.context.AttributeContext.Resource(this); + int from_bitField0_ = bitField0_; + result.service_ = service_; + result.name_ = name_; + result.type_ = type_; + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + result.uid_ = uid_; + result.annotations_ = internalGetAnnotations(); + result.annotations_.makeImmutable(); + result.displayName_ = displayName_; + if (createTimeBuilder_ == null) { + result.createTime_ = createTime_; + } else { + result.createTime_ = createTimeBuilder_.build(); + } + if (updateTimeBuilder_ == null) { + result.updateTime_ = updateTime_; + } else { + result.updateTime_ = updateTimeBuilder_.build(); + } + if (deleteTimeBuilder_ == null) { + result.deleteTime_ = deleteTime_; + } else { + result.deleteTime_ = deleteTimeBuilder_.build(); + } + result.etag_ = etag_; + result.location_ = location_; + 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 com.google.rpc.context.AttributeContext.Resource) { + return mergeFrom((com.google.rpc.context.AttributeContext.Resource) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.rpc.context.AttributeContext.Resource other) { + if (other == com.google.rpc.context.AttributeContext.Resource.getDefaultInstance()) + return this; + if (!other.getService().isEmpty()) { + service_ = other.service_; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getType().isEmpty()) { + type_ = other.type_; + onChanged(); + } + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + if (!other.getUid().isEmpty()) { + uid_ = other.uid_; + onChanged(); + } + internalGetMutableAnnotations().mergeFrom(other.internalGetAnnotations()); + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (other.hasDeleteTime()) { + mergeDeleteTime(other.getDeleteTime()); + } + if (!other.getEtag().isEmpty()) { + etag_ = other.etag_; + onChanged(); + } + if (!other.getLocation().isEmpty()) { + location_ = other.location_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.rpc.context.AttributeContext.Resource parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.rpc.context.AttributeContext.Resource) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.lang.Object service_ = ""; + /** + * + * + *
+       * The name of the service that this resource belongs to, such as
+       * `pubsub.googleapis.com`. The service may be different from the DNS
+       * hostname that actually serves the request.
+       * 
+ * + * string service = 1; + * + * @return The service. + */ + public java.lang.String getService() { + java.lang.Object ref = service_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + service_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * The name of the service that this resource belongs to, such as
+       * `pubsub.googleapis.com`. The service may be different from the DNS
+       * hostname that actually serves the request.
+       * 
+ * + * string service = 1; + * + * @return The bytes for service. + */ + public com.google.protobuf.ByteString getServiceBytes() { + java.lang.Object ref = service_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + service_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * The name of the service that this resource belongs to, such as
+       * `pubsub.googleapis.com`. The service may be different from the DNS
+       * hostname that actually serves the request.
+       * 
+ * + * string service = 1; + * + * @param value The service to set. + * @return This builder for chaining. + */ + public Builder setService(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + service_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * The name of the service that this resource belongs to, such as
+       * `pubsub.googleapis.com`. The service may be different from the DNS
+       * hostname that actually serves the request.
+       * 
+ * + * string service = 1; + * + * @return This builder for chaining. + */ + public Builder clearService() { + + service_ = getDefaultInstance().getService(); + onChanged(); + return this; + } + /** + * + * + *
+       * The name of the service that this resource belongs to, such as
+       * `pubsub.googleapis.com`. The service may be different from the DNS
+       * hostname that actually serves the request.
+       * 
+ * + * string service = 1; + * + * @param value The bytes for service to set. + * @return This builder for chaining. + */ + public Builder setServiceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + service_ = value; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+       * The stable identifier (name) of a resource on the `service`. A resource
+       * can be logically identified as "//{resource.service}/{resource.name}".
+       * The differences between a resource name and a URI are:
+       * *   Resource name is a logical identifier, independent of network
+       *     protocol and API version. For example,
+       *     `//pubsub.googleapis.com/projects/123/topics/news-feed`.
+       * *   URI often includes protocol and version information, so it can
+       *     be used directly by applications. For example,
+       *     `https://pubsub.googleapis.com/v1/projects/123/topics/news-feed`.
+       * See https://cloud.google.com/apis/design/resource_names for details.
+       * 
+ * + * string name = 2; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * The stable identifier (name) of a resource on the `service`. A resource
+       * can be logically identified as "//{resource.service}/{resource.name}".
+       * The differences between a resource name and a URI are:
+       * *   Resource name is a logical identifier, independent of network
+       *     protocol and API version. For example,
+       *     `//pubsub.googleapis.com/projects/123/topics/news-feed`.
+       * *   URI often includes protocol and version information, so it can
+       *     be used directly by applications. For example,
+       *     `https://pubsub.googleapis.com/v1/projects/123/topics/news-feed`.
+       * See https://cloud.google.com/apis/design/resource_names for details.
+       * 
+ * + * string name = 2; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * The stable identifier (name) of a resource on the `service`. A resource
+       * can be logically identified as "//{resource.service}/{resource.name}".
+       * The differences between a resource name and a URI are:
+       * *   Resource name is a logical identifier, independent of network
+       *     protocol and API version. For example,
+       *     `//pubsub.googleapis.com/projects/123/topics/news-feed`.
+       * *   URI often includes protocol and version information, so it can
+       *     be used directly by applications. For example,
+       *     `https://pubsub.googleapis.com/v1/projects/123/topics/news-feed`.
+       * See https://cloud.google.com/apis/design/resource_names for details.
+       * 
+ * + * string name = 2; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * The stable identifier (name) of a resource on the `service`. A resource
+       * can be logically identified as "//{resource.service}/{resource.name}".
+       * The differences between a resource name and a URI are:
+       * *   Resource name is a logical identifier, independent of network
+       *     protocol and API version. For example,
+       *     `//pubsub.googleapis.com/projects/123/topics/news-feed`.
+       * *   URI often includes protocol and version information, so it can
+       *     be used directly by applications. For example,
+       *     `https://pubsub.googleapis.com/v1/projects/123/topics/news-feed`.
+       * See https://cloud.google.com/apis/design/resource_names for details.
+       * 
+ * + * string name = 2; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+       * The stable identifier (name) of a resource on the `service`. A resource
+       * can be logically identified as "//{resource.service}/{resource.name}".
+       * The differences between a resource name and a URI are:
+       * *   Resource name is a logical identifier, independent of network
+       *     protocol and API version. For example,
+       *     `//pubsub.googleapis.com/projects/123/topics/news-feed`.
+       * *   URI often includes protocol and version information, so it can
+       *     be used directly by applications. For example,
+       *     `https://pubsub.googleapis.com/v1/projects/123/topics/news-feed`.
+       * See https://cloud.google.com/apis/design/resource_names for details.
+       * 
+ * + * string name = 2; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private java.lang.Object type_ = ""; + /** + * + * + *
+       * The type of the resource. The syntax is platform-specific because
+       * different platforms define their resources differently.
+       * For Google APIs, the type format must be "{service}/{kind}".
+       * 
+ * + * string type = 3; + * + * @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 the resource. The syntax is platform-specific because
+       * different platforms define their resources differently.
+       * For Google APIs, the type format must be "{service}/{kind}".
+       * 
+ * + * string type = 3; + * + * @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 the resource. The syntax is platform-specific because
+       * different platforms define their resources differently.
+       * For Google APIs, the type format must be "{service}/{kind}".
+       * 
+ * + * string type = 3; + * + * @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; + onChanged(); + return this; + } + /** + * + * + *
+       * The type of the resource. The syntax is platform-specific because
+       * different platforms define their resources differently.
+       * For Google APIs, the type format must be "{service}/{kind}".
+       * 
+ * + * string type = 3; + * + * @return This builder for chaining. + */ + public Builder clearType() { + + type_ = getDefaultInstance().getType(); + onChanged(); + return this; + } + /** + * + * + *
+       * The type of the resource. The syntax is platform-specific because
+       * different platforms define their resources differently.
+       * For Google APIs, the type format must be "{service}/{kind}".
+       * 
+ * + * string type = 3; + * + * @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; + onChanged(); + return this; + } + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + private com.google.protobuf.MapField + internalGetMutableLabels() { + onChanged(); + ; + if (labels_ == null) { + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + } + if (!labels_.isMutable()) { + labels_ = labels_.copy(); + } + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + /** + * + * + *
+       * The labels or tags on the resource, such as AWS resource tags and
+       * Kubernetes resource labels.
+       * 
+ * + * map<string, string> labels = 4; + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + return internalGetLabels().getMap().containsKey(key); + } + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + /** + * + * + *
+       * The labels or tags on the resource, such as AWS resource tags and
+       * Kubernetes resource labels.
+       * 
+ * + * map<string, string> labels = 4; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + * + * + *
+       * The labels or tags on the resource, such as AWS resource tags and
+       * Kubernetes resource labels.
+       * 
+ * + * map<string, string> labels = 4; + */ + @java.lang.Override + public java.lang.String getLabelsOrDefault( + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+       * The labels or tags on the resource, such as AWS resource tags and
+       * Kubernetes resource labels.
+       * 
+ * + * map<string, string> labels = 4; + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearLabels() { + internalGetMutableLabels().getMutableMap().clear(); + return this; + } + /** + * + * + *
+       * The labels or tags on the resource, such as AWS resource tags and
+       * Kubernetes resource labels.
+       * 
+ * + * map<string, string> labels = 4; + */ + public Builder removeLabels(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableLabels().getMutableMap().remove(key); + return this; + } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableLabels() { + return internalGetMutableLabels().getMutableMap(); + } + /** + * + * + *
+       * The labels or tags on the resource, such as AWS resource tags and
+       * Kubernetes resource labels.
+       * 
+ * + * map<string, string> labels = 4; + */ + public Builder putLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + if (value == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableLabels().getMutableMap().put(key, value); + return this; + } + /** + * + * + *
+       * The labels or tags on the resource, such as AWS resource tags and
+       * Kubernetes resource labels.
+       * 
+ * + * map<string, string> labels = 4; + */ + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); + return this; + } + + private java.lang.Object uid_ = ""; + /** + * + * + *
+       * The unique identifier of the resource. UID is unique in the time
+       * and space for this resource within the scope of the service. It is
+       * typically generated by the server on successful creation of a resource
+       * and must not be changed. UID is used to uniquely identify resources
+       * with resource name reuses. This should be a UUID4.
+       * 
+ * + * string uid = 5; + * + * @return The uid. + */ + public java.lang.String getUid() { + java.lang.Object ref = uid_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uid_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * The unique identifier of the resource. UID is unique in the time
+       * and space for this resource within the scope of the service. It is
+       * typically generated by the server on successful creation of a resource
+       * and must not be changed. UID is used to uniquely identify resources
+       * with resource name reuses. This should be a UUID4.
+       * 
+ * + * string uid = 5; + * + * @return The bytes for uid. + */ + public com.google.protobuf.ByteString getUidBytes() { + java.lang.Object ref = uid_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * The unique identifier of the resource. UID is unique in the time
+       * and space for this resource within the scope of the service. It is
+       * typically generated by the server on successful creation of a resource
+       * and must not be changed. UID is used to uniquely identify resources
+       * with resource name reuses. This should be a UUID4.
+       * 
+ * + * string uid = 5; + * + * @param value The uid to set. + * @return This builder for chaining. + */ + public Builder setUid(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + uid_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * The unique identifier of the resource. UID is unique in the time
+       * and space for this resource within the scope of the service. It is
+       * typically generated by the server on successful creation of a resource
+       * and must not be changed. UID is used to uniquely identify resources
+       * with resource name reuses. This should be a UUID4.
+       * 
+ * + * string uid = 5; + * + * @return This builder for chaining. + */ + public Builder clearUid() { + + uid_ = getDefaultInstance().getUid(); + onChanged(); + return this; + } + /** + * + * + *
+       * The unique identifier of the resource. UID is unique in the time
+       * and space for this resource within the scope of the service. It is
+       * typically generated by the server on successful creation of a resource
+       * and must not be changed. UID is used to uniquely identify resources
+       * with resource name reuses. This should be a UUID4.
+       * 
+ * + * string uid = 5; + * + * @param value The bytes for uid to set. + * @return This builder for chaining. + */ + public Builder setUidBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + uid_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.MapField annotations_; + + private com.google.protobuf.MapField + internalGetAnnotations() { + if (annotations_ == null) { + return com.google.protobuf.MapField.emptyMapField( + AnnotationsDefaultEntryHolder.defaultEntry); + } + return annotations_; + } + + private com.google.protobuf.MapField + internalGetMutableAnnotations() { + onChanged(); + ; + if (annotations_ == null) { + annotations_ = + com.google.protobuf.MapField.newMapField(AnnotationsDefaultEntryHolder.defaultEntry); + } + if (!annotations_.isMutable()) { + annotations_ = annotations_.copy(); + } + return annotations_; + } + + public int getAnnotationsCount() { + return internalGetAnnotations().getMap().size(); + } + /** + * + * + *
+       * Annotations is an unstructured key-value map stored with a resource that
+       * may be set by external tools to store and retrieve arbitrary metadata.
+       * They are not queryable and should be preserved when modifying objects.
+       * More info: https://kubernetes.io/docs/user-guide/annotations
+       * 
+ * + * map<string, string> annotations = 6; + */ + @java.lang.Override + public boolean containsAnnotations(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + return internalGetAnnotations().getMap().containsKey(key); + } + /** Use {@link #getAnnotationsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getAnnotations() { + return getAnnotationsMap(); + } + /** + * + * + *
+       * Annotations is an unstructured key-value map stored with a resource that
+       * may be set by external tools to store and retrieve arbitrary metadata.
+       * They are not queryable and should be preserved when modifying objects.
+       * More info: https://kubernetes.io/docs/user-guide/annotations
+       * 
+ * + * map<string, string> annotations = 6; + */ + @java.lang.Override + public java.util.Map getAnnotationsMap() { + return internalGetAnnotations().getMap(); + } + /** + * + * + *
+       * Annotations is an unstructured key-value map stored with a resource that
+       * may be set by external tools to store and retrieve arbitrary metadata.
+       * They are not queryable and should be preserved when modifying objects.
+       * More info: https://kubernetes.io/docs/user-guide/annotations
+       * 
+ * + * map<string, string> annotations = 6; + */ + @java.lang.Override + public java.lang.String getAnnotationsOrDefault( + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetAnnotations().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+       * Annotations is an unstructured key-value map stored with a resource that
+       * may be set by external tools to store and retrieve arbitrary metadata.
+       * They are not queryable and should be preserved when modifying objects.
+       * More info: https://kubernetes.io/docs/user-guide/annotations
+       * 
+ * + * map<string, string> annotations = 6; + */ + @java.lang.Override + public java.lang.String getAnnotationsOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetAnnotations().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearAnnotations() { + internalGetMutableAnnotations().getMutableMap().clear(); + return this; + } + /** + * + * + *
+       * Annotations is an unstructured key-value map stored with a resource that
+       * may be set by external tools to store and retrieve arbitrary metadata.
+       * They are not queryable and should be preserved when modifying objects.
+       * More info: https://kubernetes.io/docs/user-guide/annotations
+       * 
+ * + * map<string, string> annotations = 6; + */ + public Builder removeAnnotations(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableAnnotations().getMutableMap().remove(key); + return this; + } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableAnnotations() { + return internalGetMutableAnnotations().getMutableMap(); + } + /** + * + * + *
+       * Annotations is an unstructured key-value map stored with a resource that
+       * may be set by external tools to store and retrieve arbitrary metadata.
+       * They are not queryable and should be preserved when modifying objects.
+       * More info: https://kubernetes.io/docs/user-guide/annotations
+       * 
+ * + * map<string, string> annotations = 6; + */ + public Builder putAnnotations(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + if (value == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableAnnotations().getMutableMap().put(key, value); + return this; + } + /** + * + * + *
+       * Annotations is an unstructured key-value map stored with a resource that
+       * may be set by external tools to store and retrieve arbitrary metadata.
+       * They are not queryable and should be preserved when modifying objects.
+       * More info: https://kubernetes.io/docs/user-guide/annotations
+       * 
+ * + * map<string, string> annotations = 6; + */ + public Builder putAllAnnotations(java.util.Map values) { + internalGetMutableAnnotations().getMutableMap().putAll(values); + return this; } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); + private java.lang.Object displayName_ = ""; + /** + * + * + *
+       * Mutable. The display name set by clients. Must be <= 63 characters.
+       * 
+ * + * string display_name = 7; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + /** + * + * + *
+       * Mutable. The display name set by clients. Must be <= 63 characters.
+       * 
+ * + * string display_name = 7; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } + /** + * + * + *
+       * Mutable. The display name set by clients. Must be <= 63 characters.
+       * 
+ * + * string display_name = 7; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } - @java.lang.Override - public Builder clear() { - super.clear(); - service_ = ""; - - name_ = ""; - - type_ = ""; - - internalGetMutableLabels().clear(); + displayName_ = value; + onChanged(); return this; } + /** + * + * + *
+       * Mutable. The display name set by clients. Must be <= 63 characters.
+       * 
+ * + * string display_name = 7; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.rpc.context.AttributeContextProto - .internal_static_google_rpc_context_AttributeContext_Resource_descriptor; - } - - @java.lang.Override - public com.google.rpc.context.AttributeContext.Resource getDefaultInstanceForType() { - return com.google.rpc.context.AttributeContext.Resource.getDefaultInstance(); + displayName_ = getDefaultInstance().getDisplayName(); + onChanged(); + return this; } - - @java.lang.Override - public com.google.rpc.context.AttributeContext.Resource build() { - com.google.rpc.context.AttributeContext.Resource result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); + /** + * + * + *
+       * Mutable. The display name set by clients. Must be <= 63 characters.
+       * 
+ * + * string display_name = 7; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); } - return result; - } + checkByteStringIsUtf8(value); - @java.lang.Override - public com.google.rpc.context.AttributeContext.Resource buildPartial() { - com.google.rpc.context.AttributeContext.Resource result = - new com.google.rpc.context.AttributeContext.Resource(this); - int from_bitField0_ = bitField0_; - result.service_ = service_; - result.name_ = name_; - result.type_ = type_; - result.labels_ = internalGetLabels(); - result.labels_.makeImmutable(); - onBuilt(); - return result; + displayName_ = value; + onChanged(); + return this; } - @java.lang.Override - public Builder clone() { - return super.clone(); + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + /** + * + * + *
+       * Output only. The timestamp when the resource was created. This may
+       * be either the time creation was initiated or when it was completed.
+       * 
+ * + * .google.protobuf.Timestamp create_time = 8; + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return createTimeBuilder_ != null || createTime_ != null; } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); + /** + * + * + *
+       * Output only. The timestamp when the resource was created. This may
+       * be either the time creation was initiated or when it was completed.
+       * 
+ * + * .google.protobuf.Timestamp create_time = 8; + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } } + /** + * + * + *
+       * Output only. The timestamp when the resource was created. This may
+       * be either the time creation was initiated or when it was completed.
+       * 
+ * + * .google.protobuf.Timestamp create_time = 8; + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + onChanged(); + } else { + createTimeBuilder_.setMessage(value); + } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + return this; } + /** + * + * + *
+       * Output only. The timestamp when the resource was created. This may
+       * be either the time creation was initiated or when it was completed.
+       * 
+ * + * .google.protobuf.Timestamp create_time = 8; + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + onChanged(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + return this; } + /** + * + * + *
+       * Output only. The timestamp when the resource was created. This may
+       * be either the time creation was initiated or when it was completed.
+       * 
+ * + * .google.protobuf.Timestamp create_time = 8; + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (createTime_ != null) { + createTime_ = + com.google.protobuf.Timestamp.newBuilder(createTime_) + .mergeFrom(value) + .buildPartial(); + } else { + createTime_ = value; + } + onChanged(); + } else { + createTimeBuilder_.mergeFrom(value); + } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); + return this; } + /** + * + * + *
+       * Output only. The timestamp when the resource was created. This may
+       * be either the time creation was initiated or when it was completed.
+       * 
+ * + * .google.protobuf.Timestamp create_time = 8; + */ + public Builder clearCreateTime() { + if (createTimeBuilder_ == null) { + createTime_ = null; + onChanged(); + } else { + createTime_ = null; + createTimeBuilder_ = null; + } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); + return this; } + /** + * + * + *
+       * Output only. The timestamp when the resource was created. This may
+       * be either the time creation was initiated or when it was completed.
+       * 
+ * + * .google.protobuf.Timestamp create_time = 8; + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.rpc.context.AttributeContext.Resource) { - return mergeFrom((com.google.rpc.context.AttributeContext.Resource) other); + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * Output only. The timestamp when the resource was created. This may
+       * be either the time creation was initiated or when it was completed.
+       * 
+ * + * .google.protobuf.Timestamp create_time = 8; + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); } else { - super.mergeFrom(other); - return this; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + /** + * + * + *
+       * Output only. The timestamp when the resource was created. This may
+       * be either the time creation was initiated or when it was completed.
+       * 
+ * + * .google.protobuf.Timestamp create_time = 8; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; } + return createTimeBuilder_; } - public Builder mergeFrom(com.google.rpc.context.AttributeContext.Resource other) { - if (other == com.google.rpc.context.AttributeContext.Resource.getDefaultInstance()) - return this; - if (!other.getService().isEmpty()) { - service_ = other.service_; - onChanged(); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + /** + * + * + *
+       * Output only. The timestamp when the resource was last updated. Any
+       * change to the resource made by users must refresh this value.
+       * Changes to a resource made by the service should refresh this value.
+       * 
+ * + * .google.protobuf.Timestamp update_time = 9; + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return updateTimeBuilder_ != null || updateTime_ != null; + } + /** + * + * + *
+       * Output only. The timestamp when the resource was last updated. Any
+       * change to the resource made by users must refresh this value.
+       * Changes to a resource made by the service should refresh this value.
+       * 
+ * + * .google.protobuf.Timestamp update_time = 9; + * + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); } - if (!other.getType().isEmpty()) { - type_ = other.type_; + } + /** + * + * + *
+       * Output only. The timestamp when the resource was last updated. Any
+       * change to the resource made by users must refresh this value.
+       * Changes to a resource made by the service should refresh this value.
+       * 
+ * + * .google.protobuf.Timestamp update_time = 9; + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; onChanged(); + } else { + updateTimeBuilder_.setMessage(value); } - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); - this.mergeUnknownFields(other.unknownFields); - onChanged(); + return this; } + /** + * + * + *
+       * Output only. The timestamp when the resource was last updated. Any
+       * change to the resource made by users must refresh this value.
+       * Changes to a resource made by the service should refresh this value.
+       * 
+ * + * .google.protobuf.Timestamp update_time = 9; + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + onChanged(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } - @java.lang.Override - public final boolean isInitialized() { - return true; + return this; } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.rpc.context.AttributeContext.Resource parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.rpc.context.AttributeContext.Resource) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); + /** + * + * + *
+       * Output only. The timestamp when the resource was last updated. Any
+       * change to the resource made by users must refresh this value.
+       * Changes to a resource made by the service should refresh this value.
+       * 
+ * + * .google.protobuf.Timestamp update_time = 9; + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (updateTime_ != null) { + updateTime_ = + com.google.protobuf.Timestamp.newBuilder(updateTime_) + .mergeFrom(value) + .buildPartial(); + } else { + updateTime_ = value; } + onChanged(); + } else { + updateTimeBuilder_.mergeFrom(value); } + return this; } - - private int bitField0_; - - private java.lang.Object service_ = ""; /** * * *
-       * The name of the service that this resource belongs to, such as
-       * `pubsub.googleapis.com`. The service may be different from the DNS
-       * hostname that actually serves the request.
+       * Output only. The timestamp when the resource was last updated. Any
+       * change to the resource made by users must refresh this value.
+       * Changes to a resource made by the service should refresh this value.
        * 
* - * string service = 1; - * - * @return The service. + * .google.protobuf.Timestamp update_time = 9; */ - public java.lang.String getService() { - java.lang.Object ref = service_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - service_ = s; - return s; + public Builder clearUpdateTime() { + if (updateTimeBuilder_ == null) { + updateTime_ = null; + onChanged(); } else { - return (java.lang.String) ref; + updateTime_ = null; + updateTimeBuilder_ = null; } + + return this; } /** * * *
-       * The name of the service that this resource belongs to, such as
-       * `pubsub.googleapis.com`. The service may be different from the DNS
-       * hostname that actually serves the request.
+       * Output only. The timestamp when the resource was last updated. Any
+       * change to the resource made by users must refresh this value.
+       * Changes to a resource made by the service should refresh this value.
        * 
* - * string service = 1; + * .google.protobuf.Timestamp update_time = 9; + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + + onChanged(); + return getUpdateTimeFieldBuilder().getBuilder(); + } + /** * - * @return The bytes for service. + * + *
+       * Output only. The timestamp when the resource was last updated. Any
+       * change to the resource made by users must refresh this value.
+       * Changes to a resource made by the service should refresh this value.
+       * 
+ * + * .google.protobuf.Timestamp update_time = 9; */ - public com.google.protobuf.ByteString getServiceBytes() { - java.lang.Object ref = service_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - service_ = b; - return b; + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); } else { - return (com.google.protobuf.ByteString) ref; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } } /** * * *
-       * The name of the service that this resource belongs to, such as
-       * `pubsub.googleapis.com`. The service may be different from the DNS
-       * hostname that actually serves the request.
+       * Output only. The timestamp when the resource was last updated. Any
+       * change to the resource made by users must refresh this value.
+       * Changes to a resource made by the service should refresh this value.
        * 
* - * string service = 1; - * - * @param value The service to set. - * @return This builder for chaining. + * .google.protobuf.Timestamp update_time = 9; */ - public Builder setService(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; } - - service_ = value; - onChanged(); - return this; + return updateTimeBuilder_; } + + private com.google.protobuf.Timestamp deleteTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + deleteTimeBuilder_; /** * * *
-       * The name of the service that this resource belongs to, such as
-       * `pubsub.googleapis.com`. The service may be different from the DNS
-       * hostname that actually serves the request.
+       * Output only. The timestamp when the resource was deleted.
+       * If the resource is not deleted, this must be empty.
        * 
* - * string service = 1; + * .google.protobuf.Timestamp delete_time = 10; * - * @return This builder for chaining. + * @return Whether the deleteTime field is set. */ - public Builder clearService() { - - service_ = getDefaultInstance().getService(); - onChanged(); - return this; + public boolean hasDeleteTime() { + return deleteTimeBuilder_ != null || deleteTime_ != null; } /** * * *
-       * The name of the service that this resource belongs to, such as
-       * `pubsub.googleapis.com`. The service may be different from the DNS
-       * hostname that actually serves the request.
+       * Output only. The timestamp when the resource was deleted.
+       * If the resource is not deleted, this must be empty.
        * 
* - * string service = 1; + * .google.protobuf.Timestamp delete_time = 10; * - * @param value The bytes for service to set. - * @return This builder for chaining. + * @return The deleteTime. */ - public Builder setServiceBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + public com.google.protobuf.Timestamp getDeleteTime() { + if (deleteTimeBuilder_ == null) { + return deleteTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : deleteTime_; + } else { + return deleteTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+       * Output only. The timestamp when the resource was deleted.
+       * If the resource is not deleted, this must be empty.
+       * 
+ * + * .google.protobuf.Timestamp delete_time = 10; + */ + public Builder setDeleteTime(com.google.protobuf.Timestamp value) { + if (deleteTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + deleteTime_ = value; + onChanged(); + } else { + deleteTimeBuilder_.setMessage(value); } - checkByteStringIsUtf8(value); - service_ = value; - onChanged(); return this; } - - private java.lang.Object name_ = ""; /** * * *
-       * The stable identifier (name) of a resource on the `service`. A resource
-       * can be logically identified as "//{resource.service}/{resource.name}".
-       * The differences between a resource name and a URI are:
-       * *   Resource name is a logical identifier, independent of network
-       *     protocol and API version. For example,
-       *     `//pubsub.googleapis.com/projects/123/topics/news-feed`.
-       * *   URI often includes protocol and version information, so it can
-       *     be used directly by applications. For example,
-       *     `https://pubsub.googleapis.com/v1/projects/123/topics/news-feed`.
-       * See https://cloud.google.com/apis/design/resource_names for details.
+       * Output only. The timestamp when the resource was deleted.
+       * If the resource is not deleted, this must be empty.
        * 
* - * string name = 2; - * - * @return The name. + * .google.protobuf.Timestamp delete_time = 10; */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; + public Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (deleteTimeBuilder_ == null) { + deleteTime_ = builderForValue.build(); + onChanged(); } else { - return (java.lang.String) ref; + deleteTimeBuilder_.setMessage(builderForValue.build()); } + + return this; } /** * * *
-       * The stable identifier (name) of a resource on the `service`. A resource
-       * can be logically identified as "//{resource.service}/{resource.name}".
-       * The differences between a resource name and a URI are:
-       * *   Resource name is a logical identifier, independent of network
-       *     protocol and API version. For example,
-       *     `//pubsub.googleapis.com/projects/123/topics/news-feed`.
-       * *   URI often includes protocol and version information, so it can
-       *     be used directly by applications. For example,
-       *     `https://pubsub.googleapis.com/v1/projects/123/topics/news-feed`.
-       * See https://cloud.google.com/apis/design/resource_names for details.
+       * Output only. The timestamp when the resource was deleted.
+       * If the resource is not deleted, this must be empty.
        * 
* - * string name = 2; - * - * @return The bytes for name. + * .google.protobuf.Timestamp delete_time = 10; */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; + public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { + if (deleteTimeBuilder_ == null) { + if (deleteTime_ != null) { + deleteTime_ = + com.google.protobuf.Timestamp.newBuilder(deleteTime_) + .mergeFrom(value) + .buildPartial(); + } else { + deleteTime_ = value; + } + onChanged(); } else { - return (com.google.protobuf.ByteString) ref; + deleteTimeBuilder_.mergeFrom(value); } + + return this; } /** * * *
-       * The stable identifier (name) of a resource on the `service`. A resource
-       * can be logically identified as "//{resource.service}/{resource.name}".
-       * The differences between a resource name and a URI are:
-       * *   Resource name is a logical identifier, independent of network
-       *     protocol and API version. For example,
-       *     `//pubsub.googleapis.com/projects/123/topics/news-feed`.
-       * *   URI often includes protocol and version information, so it can
-       *     be used directly by applications. For example,
-       *     `https://pubsub.googleapis.com/v1/projects/123/topics/news-feed`.
-       * See https://cloud.google.com/apis/design/resource_names for details.
+       * Output only. The timestamp when the resource was deleted.
+       * If the resource is not deleted, this must be empty.
        * 
* - * string name = 2; - * - * @param value The name to set. - * @return This builder for chaining. + * .google.protobuf.Timestamp delete_time = 10; */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + public Builder clearDeleteTime() { + if (deleteTimeBuilder_ == null) { + deleteTime_ = null; + onChanged(); + } else { + deleteTime_ = null; + deleteTimeBuilder_ = null; } - name_ = value; - onChanged(); return this; } /** * * *
-       * The stable identifier (name) of a resource on the `service`. A resource
-       * can be logically identified as "//{resource.service}/{resource.name}".
-       * The differences between a resource name and a URI are:
-       * *   Resource name is a logical identifier, independent of network
-       *     protocol and API version. For example,
-       *     `//pubsub.googleapis.com/projects/123/topics/news-feed`.
-       * *   URI often includes protocol and version information, so it can
-       *     be used directly by applications. For example,
-       *     `https://pubsub.googleapis.com/v1/projects/123/topics/news-feed`.
-       * See https://cloud.google.com/apis/design/resource_names for details.
+       * Output only. The timestamp when the resource was deleted.
+       * If the resource is not deleted, this must be empty.
        * 
* - * string name = 2; - * - * @return This builder for chaining. + * .google.protobuf.Timestamp delete_time = 10; */ - public Builder clearName() { + public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() { - name_ = getDefaultInstance().getName(); onChanged(); - return this; + return getDeleteTimeFieldBuilder().getBuilder(); } /** * * *
-       * The stable identifier (name) of a resource on the `service`. A resource
-       * can be logically identified as "//{resource.service}/{resource.name}".
-       * The differences between a resource name and a URI are:
-       * *   Resource name is a logical identifier, independent of network
-       *     protocol and API version. For example,
-       *     `//pubsub.googleapis.com/projects/123/topics/news-feed`.
-       * *   URI often includes protocol and version information, so it can
-       *     be used directly by applications. For example,
-       *     `https://pubsub.googleapis.com/v1/projects/123/topics/news-feed`.
-       * See https://cloud.google.com/apis/design/resource_names for details.
+       * Output only. The timestamp when the resource was deleted.
+       * If the resource is not deleted, this must be empty.
        * 
* - * string name = 2; + * .google.protobuf.Timestamp delete_time = 10; + */ + public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { + if (deleteTimeBuilder_ != null) { + return deleteTimeBuilder_.getMessageOrBuilder(); + } else { + return deleteTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : deleteTime_; + } + } + /** * - * @param value The bytes for name to set. - * @return This builder for chaining. + * + *
+       * Output only. The timestamp when the resource was deleted.
+       * If the resource is not deleted, this must be empty.
+       * 
+ * + * .google.protobuf.Timestamp delete_time = 10; */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getDeleteTimeFieldBuilder() { + if (deleteTimeBuilder_ == null) { + deleteTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getDeleteTime(), getParentForChildren(), isClean()); + deleteTime_ = null; } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; + return deleteTimeBuilder_; } - private java.lang.Object type_ = ""; + private java.lang.Object etag_ = ""; /** * * *
-       * The type of the resource. The syntax is platform-specific because
-       * different platforms define their resources differently.
-       * For Google APIs, the type format must be "{service}/{kind}".
+       * Output only. An opaque value that uniquely identifies a version or
+       * generation of a resource. It can be used to confirm that the client
+       * and server agree on the ordering of a resource being written.
        * 
* - * string type = 3; + * string etag = 11; * - * @return The type. + * @return The etag. */ - public java.lang.String getType() { - java.lang.Object ref = type_; + public java.lang.String getEtag() { + java.lang.Object ref = etag_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - type_ = s; + etag_ = s; return s; } else { return (java.lang.String) ref; @@ -11450,21 +14150,21 @@ public java.lang.String getType() { * * *
-       * The type of the resource. The syntax is platform-specific because
-       * different platforms define their resources differently.
-       * For Google APIs, the type format must be "{service}/{kind}".
+       * Output only. An opaque value that uniquely identifies a version or
+       * generation of a resource. It can be used to confirm that the client
+       * and server agree on the ordering of a resource being written.
        * 
* - * string type = 3; + * string etag = 11; * - * @return The bytes for type. + * @return The bytes for etag. */ - public com.google.protobuf.ByteString getTypeBytes() { - java.lang.Object ref = type_; + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - type_ = b; + etag_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -11474,22 +14174,22 @@ public com.google.protobuf.ByteString getTypeBytes() { * * *
-       * The type of the resource. The syntax is platform-specific because
-       * different platforms define their resources differently.
-       * For Google APIs, the type format must be "{service}/{kind}".
+       * Output only. An opaque value that uniquely identifies a version or
+       * generation of a resource. It can be used to confirm that the client
+       * and server agree on the ordering of a resource being written.
        * 
* - * string type = 3; + * string etag = 11; * - * @param value The type to set. + * @param value The etag to set. * @return This builder for chaining. */ - public Builder setType(java.lang.String value) { + public Builder setEtag(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - type_ = value; + etag_ = value; onChanged(); return this; } @@ -11497,18 +14197,18 @@ public Builder setType(java.lang.String value) { * * *
-       * The type of the resource. The syntax is platform-specific because
-       * different platforms define their resources differently.
-       * For Google APIs, the type format must be "{service}/{kind}".
+       * Output only. An opaque value that uniquely identifies a version or
+       * generation of a resource. It can be used to confirm that the client
+       * and server agree on the ordering of a resource being written.
        * 
* - * string type = 3; + * string etag = 11; * * @return This builder for chaining. */ - public Builder clearType() { + public Builder clearEtag() { - type_ = getDefaultInstance().getType(); + etag_ = getDefaultInstance().getEtag(); onChanged(); return this; } @@ -11516,188 +14216,160 @@ public Builder clearType() { * * *
-       * The type of the resource. The syntax is platform-specific because
-       * different platforms define their resources differently.
-       * For Google APIs, the type format must be "{service}/{kind}".
+       * Output only. An opaque value that uniquely identifies a version or
+       * generation of a resource. It can be used to confirm that the client
+       * and server agree on the ordering of a resource being written.
        * 
* - * string type = 3; + * string etag = 11; * - * @param value The bytes for type to set. + * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setTypeBytes(com.google.protobuf.ByteString value) { + public Builder setEtagBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - type_ = value; + etag_ = value; onChanged(); return this; } - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { - if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); - } - return labels_; - } - - private com.google.protobuf.MapField - internalGetMutableLabels() { - onChanged(); - ; - if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); - } - if (!labels_.isMutable()) { - labels_ = labels_.copy(); - } - return labels_; - } - - public int getLabelsCount() { - return internalGetLabels().getMap().size(); - } + private java.lang.Object location_ = ""; /** * * *
-       * The labels or tags on the resource, such as AWS resource tags and
-       * Kubernetes resource labels.
+       * Immutable. The location of the resource. The location encoding is
+       * specific to the service provider, and new encoding may be introduced
+       * as the service evolves.
+       * For Google Cloud products, the encoding is what is used by Google Cloud
+       * APIs, such as `us-east1`, `aws-us-east-1`, and `azure-eastus2`. The
+       * semantics of `location` is identical to the
+       * `cloud.googleapis.com/location` label used by some Google Cloud APIs.
        * 
* - * map<string, string> labels = 4; + * string location = 12; + * + * @return The location. */ - @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); + public java.lang.String getLocation() { + java.lang.Object ref = location_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + location_ = s; + return s; + } else { + return (java.lang.String) ref; } - return internalGetLabels().getMap().containsKey(key); - } - /** Use {@link #getLabelsMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getLabels() { - return getLabelsMap(); } /** * * *
-       * The labels or tags on the resource, such as AWS resource tags and
-       * Kubernetes resource labels.
+       * Immutable. The location of the resource. The location encoding is
+       * specific to the service provider, and new encoding may be introduced
+       * as the service evolves.
+       * For Google Cloud products, the encoding is what is used by Google Cloud
+       * APIs, such as `us-east1`, `aws-us-east-1`, and `azure-eastus2`. The
+       * semantics of `location` is identical to the
+       * `cloud.googleapis.com/location` label used by some Google Cloud APIs.
        * 
* - * map<string, string> labels = 4; - */ - @java.lang.Override - public java.util.Map getLabelsMap() { - return internalGetLabels().getMap(); - } - /** - * - * - *
-       * The labels or tags on the resource, such as AWS resource tags and
-       * Kubernetes resource labels.
-       * 
+ * string location = 12; * - * map<string, string> labels = 4; + * @return The bytes for location. */ - @java.lang.Override - public java.lang.String getLabelsOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new java.lang.NullPointerException(); + public com.google.protobuf.ByteString getLocationBytes() { + java.lang.Object ref = location_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + location_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } - java.util.Map map = internalGetLabels().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; } /** * * *
-       * The labels or tags on the resource, such as AWS resource tags and
-       * Kubernetes resource labels.
+       * Immutable. The location of the resource. The location encoding is
+       * specific to the service provider, and new encoding may be introduced
+       * as the service evolves.
+       * For Google Cloud products, the encoding is what is used by Google Cloud
+       * APIs, such as `us-east1`, `aws-us-east-1`, and `azure-eastus2`. The
+       * semantics of `location` is identical to the
+       * `cloud.googleapis.com/location` label used by some Google Cloud APIs.
        * 
* - * map<string, string> labels = 4; + * string location = 12; + * + * @param value The location to set. + * @return This builder for chaining. */ - @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetLabels().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); + public Builder setLocation(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); } - return map.get(key); - } - public Builder clearLabels() { - internalGetMutableLabels().getMutableMap().clear(); + location_ = value; + onChanged(); return this; } /** * * *
-       * The labels or tags on the resource, such as AWS resource tags and
-       * Kubernetes resource labels.
+       * Immutable. The location of the resource. The location encoding is
+       * specific to the service provider, and new encoding may be introduced
+       * as the service evolves.
+       * For Google Cloud products, the encoding is what is used by Google Cloud
+       * APIs, such as `us-east1`, `aws-us-east-1`, and `azure-eastus2`. The
+       * semantics of `location` is identical to the
+       * `cloud.googleapis.com/location` label used by some Google Cloud APIs.
        * 
* - * map<string, string> labels = 4; + * string location = 12; + * + * @return This builder for chaining. */ - public Builder removeLabels(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - internalGetMutableLabels().getMutableMap().remove(key); + public Builder clearLocation() { + + location_ = getDefaultInstance().getLocation(); + onChanged(); return this; } - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map getMutableLabels() { - return internalGetMutableLabels().getMutableMap(); - } /** * * *
-       * The labels or tags on the resource, such as AWS resource tags and
-       * Kubernetes resource labels.
+       * Immutable. The location of the resource. The location encoding is
+       * specific to the service provider, and new encoding may be introduced
+       * as the service evolves.
+       * For Google Cloud products, the encoding is what is used by Google Cloud
+       * APIs, such as `us-east1`, `aws-us-east-1`, and `azure-eastus2`. The
+       * semantics of `location` is identical to the
+       * `cloud.googleapis.com/location` label used by some Google Cloud APIs.
        * 
* - * map<string, string> labels = 4; + * string location = 12; + * + * @param value The bytes for location to set. + * @return This builder for chaining. */ - public Builder putLabels(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new java.lang.NullPointerException(); - } + public Builder setLocationBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException(); } - internalGetMutableLabels().getMutableMap().put(key, value); - return this; - } - /** - * - * - *
-       * The labels or tags on the resource, such as AWS resource tags and
-       * Kubernetes resource labels.
-       * 
- * - * map<string, string> labels = 4; - */ - public Builder putAllLabels(java.util.Map values) { - internalGetMutableLabels().getMutableMap().putAll(values); + checkByteStringIsUtf8(value); + + location_ = value; + onChanged(); return this; } diff --git a/proto-google-common-protos/src/main/java/com/google/rpc/context/AttributeContextProto.java b/proto-google-common-protos/src/main/java/com/google/rpc/context/AttributeContextProto.java index cff5e37d..0761c33a 100644 --- a/proto-google-common-protos/src/main/java/com/google/rpc/context/AttributeContextProto.java +++ b/proto-google-common-protos/src/main/java/com/google/rpc/context/AttributeContextProto.java @@ -71,6 +71,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_rpc_context_AttributeContext_Resource_LabelsEntry_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_rpc_context_AttributeContext_Resource_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_rpc_context_AttributeContext_Resource_AnnotationsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_rpc_context_AttributeContext_Resource_AnnotationsEntry_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -82,59 +86,71 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n*google/rpc/context/attribute_context.p" + "roto\022\022google.rpc.context\032\031google/protobu" - + "f/any.proto\032\034google/protobuf/struct.prot" - + "o\032\037google/protobuf/timestamp.proto\"\360\014\n\020A" - + "ttributeContext\0229\n\006origin\030\007 \001(\0132).google" - + ".rpc.context.AttributeContext.Peer\0229\n\006so" - + "urce\030\001 \001(\0132).google.rpc.context.Attribut" - + "eContext.Peer\022>\n\013destination\030\002 \001(\0132).goo" - + "gle.rpc.context.AttributeContext.Peer\022=\n" - + "\007request\030\003 \001(\0132,.google.rpc.context.Attr" - + "ibuteContext.Request\022?\n\010response\030\004 \001(\0132-" - + ".google.rpc.context.AttributeContext.Res" - + "ponse\022?\n\010resource\030\005 \001(\0132-.google.rpc.con" - + "text.AttributeContext.Resource\0225\n\003api\030\006 " - + "\001(\0132(.google.rpc.context.AttributeContex" - + "t.Api\022(\n\nextensions\030\010 \003(\0132\024.google.proto" - + "buf.Any\032\276\001\n\004Peer\022\n\n\002ip\030\001 \001(\t\022\014\n\004port\030\002 \001" - + "(\003\022E\n\006labels\030\006 \003(\01325.google.rpc.context." - + "AttributeContext.Peer.LabelsEntry\022\021\n\tpri" - + "ncipal\030\007 \001(\t\022\023\n\013region_code\030\010 \001(\t\032-\n\013Lab" - + "elsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001" - + "\032L\n\003Api\022\017\n\007service\030\001 \001(\t\022\021\n\toperation\030\002 " - + "\001(\t\022\020\n\010protocol\030\003 \001(\t\022\017\n\007version\030\004 \001(\t\032\177" - + "\n\004Auth\022\021\n\tprincipal\030\001 \001(\t\022\021\n\taudiences\030\002" - + " \003(\t\022\021\n\tpresenter\030\003 \001(\t\022\'\n\006claims\030\004 \001(\0132" - + "\027.google.protobuf.Struct\022\025\n\raccess_level" - + "s\030\005 \003(\t\032\357\002\n\007Request\022\n\n\002id\030\001 \001(\t\022\016\n\006metho" - + "d\030\002 \001(\t\022J\n\007headers\030\003 \003(\01329.google.rpc.co" - + "ntext.AttributeContext.Request.HeadersEn" - + "try\022\014\n\004path\030\004 \001(\t\022\014\n\004host\030\005 \001(\t\022\016\n\006schem" - + "e\030\006 \001(\t\022\r\n\005query\030\007 \001(\t\022(\n\004time\030\t \001(\0132\032.g" - + "oogle.protobuf.Timestamp\022\014\n\004size\030\n \001(\003\022\020" - + "\n\010protocol\030\013 \001(\t\022\016\n\006reason\030\014 \001(\t\0227\n\004auth" - + "\030\r \001(\0132).google.rpc.context.AttributeCon" - + "text.Auth\032.\n\014HeadersEntry\022\013\n\003key\030\001 \001(\t\022\r" - + "\n\005value\030\002 \001(\t:\0028\001\032\315\001\n\010Response\022\014\n\004code\030\001" - + " \001(\003\022\014\n\004size\030\002 \001(\003\022K\n\007headers\030\003 \003(\0132:.go" - + "ogle.rpc.context.AttributeContext.Respon" - + "se.HeadersEntry\022(\n\004time\030\004 \001(\0132\032.google.p" - + "rotobuf.Timestamp\032.\n\014HeadersEntry\022\013\n\003key" - + "\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032\261\001\n\010Resource\022\017" - + "\n\007service\030\001 \001(\t\022\014\n\004name\030\002 \001(\t\022\014\n\004type\030\003 " - + "\001(\t\022I\n\006labels\030\004 \003(\01329.google.rpc.context" - + ".AttributeContext.Resource.LabelsEntry\032-" - + "\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(" - + "\t:\0028\001B\213\001\n\026com.google.rpc.contextB\025Attrib" - + "uteContextProtoP\001ZUgoogle.golang.org/gen" - + "proto/googleapis/rpc/context/attribute_c" - + "ontext;attribute_context\370\001\001b\006proto3" + + "f/any.proto\032\036google/protobuf/duration.pr" + + "oto\032\034google/protobuf/struct.proto\032\037googl" + + "e/protobuf/timestamp.proto\"\203\020\n\020Attribute" + + "Context\0229\n\006origin\030\007 \001(\0132).google.rpc.con" + + "text.AttributeContext.Peer\0229\n\006source\030\001 \001" + + "(\0132).google.rpc.context.AttributeContext" + + ".Peer\022>\n\013destination\030\002 \001(\0132).google.rpc." + + "context.AttributeContext.Peer\022=\n\007request" + + "\030\003 \001(\0132,.google.rpc.context.AttributeCon" + + "text.Request\022?\n\010response\030\004 \001(\0132-.google." + + "rpc.context.AttributeContext.Response\022?\n" + + "\010resource\030\005 \001(\0132-.google.rpc.context.Att" + + "ributeContext.Resource\0225\n\003api\030\006 \001(\0132(.go" + + "ogle.rpc.context.AttributeContext.Api\022(\n" + + "\nextensions\030\010 \003(\0132\024.google.protobuf.Any\032" + + "\276\001\n\004Peer\022\n\n\002ip\030\001 \001(\t\022\014\n\004port\030\002 \001(\003\022E\n\006la" + + "bels\030\006 \003(\01325.google.rpc.context.Attribut" + + "eContext.Peer.LabelsEntry\022\021\n\tprincipal\030\007" + + " \001(\t\022\023\n\013region_code\030\010 \001(\t\032-\n\013LabelsEntry" + + "\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032L\n\003Api\022" + + "\017\n\007service\030\001 \001(\t\022\021\n\toperation\030\002 \001(\t\022\020\n\010p" + + "rotocol\030\003 \001(\t\022\017\n\007version\030\004 \001(\t\032\177\n\004Auth\022\021" + + "\n\tprincipal\030\001 \001(\t\022\021\n\taudiences\030\002 \003(\t\022\021\n\t" + + "presenter\030\003 \001(\t\022\'\n\006claims\030\004 \001(\0132\027.google" + + ".protobuf.Struct\022\025\n\raccess_levels\030\005 \003(\t\032" + + "\357\002\n\007Request\022\n\n\002id\030\001 \001(\t\022\016\n\006method\030\002 \001(\t\022" + + "J\n\007headers\030\003 \003(\01329.google.rpc.context.At" + + "tributeContext.Request.HeadersEntry\022\014\n\004p" + + "ath\030\004 \001(\t\022\014\n\004host\030\005 \001(\t\022\016\n\006scheme\030\006 \001(\t\022" + + "\r\n\005query\030\007 \001(\t\022(\n\004time\030\t \001(\0132\032.google.pr" + + "otobuf.Timestamp\022\014\n\004size\030\n \001(\003\022\020\n\010protoc" + + "ol\030\013 \001(\t\022\016\n\006reason\030\014 \001(\t\0227\n\004auth\030\r \001(\0132)" + + ".google.rpc.context.AttributeContext.Aut" + + "h\032.\n\014HeadersEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030" + + "\002 \001(\t:\0028\001\032\201\002\n\010Response\022\014\n\004code\030\001 \001(\003\022\014\n\004" + + "size\030\002 \001(\003\022K\n\007headers\030\003 \003(\0132:.google.rpc" + + ".context.AttributeContext.Response.Heade" + + "rsEntry\022(\n\004time\030\004 \001(\0132\032.google.protobuf." + + "Timestamp\0222\n\017backend_latency\030\005 \001(\0132\031.goo" + + "gle.protobuf.Duration\032.\n\014HeadersEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032\220\004\n\010Resour" + + "ce\022\017\n\007service\030\001 \001(\t\022\014\n\004name\030\002 \001(\t\022\014\n\004typ" + + "e\030\003 \001(\t\022I\n\006labels\030\004 \003(\01329.google.rpc.con" + + "text.AttributeContext.Resource.LabelsEnt" + + "ry\022\013\n\003uid\030\005 \001(\t\022S\n\013annotations\030\006 \003(\0132>.g" + + "oogle.rpc.context.AttributeContext.Resou" + + "rce.AnnotationsEntry\022\024\n\014display_name\030\007 \001" + + "(\t\022/\n\013create_time\030\010 \001(\0132\032.google.protobu" + + "f.Timestamp\022/\n\013update_time\030\t \001(\0132\032.googl" + + "e.protobuf.Timestamp\022/\n\013delete_time\030\n \001(" + + "\0132\032.google.protobuf.Timestamp\022\014\n\004etag\030\013 " + + "\001(\t\022\020\n\010location\030\014 \001(\t\032-\n\013LabelsEntry\022\013\n\003" + + "key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\0322\n\020Annotati" + + "onsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001" + + "B\213\001\n\026com.google.rpc.contextB\025AttributeCo" + + "ntextProtoP\001ZUgoogle.golang.org/genproto" + + "/googleapis/rpc/context/attribute_contex" + + "t;attribute_context\370\001\001b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.protobuf.AnyProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), com.google.protobuf.StructProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), }); @@ -220,7 +236,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_rpc_context_AttributeContext_Response_descriptor, new java.lang.String[] { - "Code", "Size", "Headers", "Time", + "Code", "Size", "Headers", "Time", "BackendLatency", }); internal_static_google_rpc_context_AttributeContext_Response_HeadersEntry_descriptor = internal_static_google_rpc_context_AttributeContext_Response_descriptor @@ -238,7 +254,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_rpc_context_AttributeContext_Resource_descriptor, new java.lang.String[] { - "Service", "Name", "Type", "Labels", + "Service", + "Name", + "Type", + "Labels", + "Uid", + "Annotations", + "DisplayName", + "CreateTime", + "UpdateTime", + "DeleteTime", + "Etag", + "Location", }); internal_static_google_rpc_context_AttributeContext_Resource_LabelsEntry_descriptor = internal_static_google_rpc_context_AttributeContext_Resource_descriptor @@ -250,7 +277,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Key", "Value", }); + internal_static_google_rpc_context_AttributeContext_Resource_AnnotationsEntry_descriptor = + internal_static_google_rpc_context_AttributeContext_Resource_descriptor + .getNestedTypes() + .get(1); + internal_static_google_rpc_context_AttributeContext_Resource_AnnotationsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_rpc_context_AttributeContext_Resource_AnnotationsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); com.google.protobuf.AnyProto.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); com.google.protobuf.StructProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); } diff --git a/synth.metadata b/synth.metadata index 79b17589..fd333027 100644 --- a/synth.metadata +++ b/synth.metadata @@ -11,8 +11,8 @@ "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "e8ed994d7c7941f7be74f1e7c6a5a03648d04192", - "internalRef": "352919477" + "sha": "c059c46957b0eb83078e61b4a5170c3d09ea96e6", + "internalRef": "357075713" } }, {