All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext Maven / Gradle / Ivy

There is a newer version: 2.4.2
Show newest version
/*
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/rpc/context/attribute_context.proto

package com.alibaba.nacos.shaded.com.google.rpc.context;

/**
 *
 *
 * 
 * This message defines the standard attribute vocabulary for Google APIs.
 * An attribute is a piece of metadata that describes an activity on a network
 * service. For example, the size of an HTTP request, or the status code of
 * an HTTP response.
 * Each attribute has a type and a name, which is logically defined as
 * a proto message field in `AttributeContext`. The field type becomes the
 * attribute type, and the field path becomes the attribute name. For example,
 * the attribute `source.ip` maps to field `AttributeContext.source.ip`.
 * This message definition is guaranteed not to have any wire breaking change.
 * So you can use it directly for passing attributes across different systems.
 * NOTE: Different system may generate different subset of attributes. Please
 * verify the system specification before relying on an attribute generated
 * a system.
 * 
* * Protobuf type {@code google.rpc.context.AttributeContext} */ public final class AttributeContext extends com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.rpc.context.AttributeContext) AttributeContextOrBuilder { private static final long serialVersionUID = 0L; // Use AttributeContext.newBuilder() to construct. private AttributeContext(com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AttributeContext() { extensions_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new AttributeContext(); } @java.lang.Override public final com.alibaba.nacos.shaded.com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.alibaba.nacos.shaded.com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContextProto .internal_static_google_rpc_context_AttributeContext_descriptor; } @java.lang.Override protected com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContextProto .internal_static_google_rpc_context_AttributeContext_fieldAccessorTable .ensureFieldAccessorsInitialized( com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.class, com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Builder.class); } public interface PeerOrBuilder extends // @@protoc_insertion_point(interface_extends:google.rpc.context.AttributeContext.Peer) com.alibaba.nacos.shaded.com.google.protobuf.MessageOrBuilder { /** * * *
     * The IP address of the peer.
     * 
* * string ip = 1; * * @return The ip. */ java.lang.String getIp(); /** * * *
     * The IP address of the peer.
     * 
* * string ip = 1; * * @return The bytes for ip. */ com.alibaba.nacos.shaded.com.google.protobuf.ByteString getIpBytes(); /** * * *
     * The network port of the peer.
     * 
* * int64 port = 2; * * @return The port. */ long getPort(); /** * * *
     * The labels associated with the peer.
     * 
* * map<string, string> labels = 6; */ int getLabelsCount(); /** * * *
     * The labels associated with the peer.
     * 
* * map<string, string> labels = 6; */ boolean containsLabels(java.lang.String key); /** Use {@link #getLabelsMap()} instead. */ @java.lang.Deprecated java.util.Map getLabels(); /** * * *
     * The labels associated with the peer.
     * 
* * map<string, string> labels = 6; */ java.util.Map getLabelsMap(); /** * * *
     * The labels associated with the peer.
     * 
* * map<string, string> labels = 6; */ /* nullable */ java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ java.lang.String defaultValue); /** * * *
     * The labels associated with the peer.
     * 
* * map<string, string> labels = 6; */ java.lang.String getLabelsOrThrow(java.lang.String key); /** * * *
     * The identity of this peer. Similar to `Request.auth.principal`, but
     * relative to the peer instead of the request. For example, the
     * identity associated with a load balancer that forwarded the request.
     * 
* * string principal = 7; * * @return The principal. */ java.lang.String getPrincipal(); /** * * *
     * The identity of this peer. Similar to `Request.auth.principal`, but
     * relative to the peer instead of the request. For example, the
     * identity associated with a load balancer that forwarded the request.
     * 
* * string principal = 7; * * @return The bytes for principal. */ com.alibaba.nacos.shaded.com.google.protobuf.ByteString getPrincipalBytes(); /** * * *
     * The CLDR country/region code associated with the above IP address.
     * If the IP address is private, the `region_code` should reflect the
     * physical location where this peer is running.
     * 
* * string region_code = 8; * * @return The regionCode. */ java.lang.String getRegionCode(); /** * * *
     * The CLDR country/region code associated with the above IP address.
     * If the IP address is private, the `region_code` should reflect the
     * physical location where this peer is running.
     * 
* * string region_code = 8; * * @return The bytes for regionCode. */ com.alibaba.nacos.shaded.com.google.protobuf.ByteString getRegionCodeBytes(); } /** * * *
   * This message defines attributes for a node that handles a network request.
   * The node can be either a service or an application that sends, forwards,
   * or receives the request. Service peers should fill in
   * `principal` and `labels` as appropriate.
   * 
* * Protobuf type {@code google.rpc.context.AttributeContext.Peer} */ public static final class Peer extends com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.rpc.context.AttributeContext.Peer) PeerOrBuilder { private static final long serialVersionUID = 0L; // Use Peer.newBuilder() to construct. private Peer(com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Peer() { ip_ = ""; principal_ = ""; regionCode_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Peer(); } @java.lang.Override public final com.alibaba.nacos.shaded.com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.alibaba.nacos.shaded.com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContextProto .internal_static_google_rpc_context_AttributeContext_Peer_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.alibaba.nacos.shaded.com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 6: return internalGetLabels(); default: throw new RuntimeException("Invalid map field number: " + number); } } @java.lang.Override protected com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContextProto .internal_static_google_rpc_context_AttributeContext_Peer_fieldAccessorTable .ensureFieldAccessorsInitialized( com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Peer.class, com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Peer.Builder.class); } public static final int IP_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object ip_ = ""; /** * * *
     * The IP address of the peer.
     * 
* * string ip = 1; * * @return The ip. */ @java.lang.Override public java.lang.String getIp() { java.lang.Object ref = ip_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.alibaba.nacos.shaded.com.google.protobuf.ByteString bs = (com.alibaba.nacos.shaded.com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); ip_ = s; return s; } } /** * * *
     * The IP address of the peer.
     * 
* * string ip = 1; * * @return The bytes for ip. */ @java.lang.Override public com.alibaba.nacos.shaded.com.google.protobuf.ByteString getIpBytes() { java.lang.Object ref = ip_; if (ref instanceof java.lang.String) { com.alibaba.nacos.shaded.com.google.protobuf.ByteString b = com.alibaba.nacos.shaded.com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); ip_ = b; return b; } else { return (com.alibaba.nacos.shaded.com.google.protobuf.ByteString) ref; } } public static final int PORT_FIELD_NUMBER = 2; private long port_ = 0L; /** * * *
     * The network port of the peer.
     * 
* * int64 port = 2; * * @return The port. */ @java.lang.Override public long getPort() { return port_; } public static final int LABELS_FIELD_NUMBER = 6; private static final class LabelsDefaultEntryHolder { static final com.alibaba.nacos.shaded.com.google.protobuf.MapEntry defaultEntry = com.alibaba.nacos.shaded.com.google.protobuf.MapEntry.newDefaultInstance( com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContextProto .internal_static_google_rpc_context_AttributeContext_Peer_LabelsEntry_descriptor, com.alibaba.nacos.shaded.com.google.protobuf.WireFormat.FieldType.STRING, "", com.alibaba.nacos.shaded.com.google.protobuf.WireFormat.FieldType.STRING, ""); } @SuppressWarnings("serial") private com.alibaba.nacos.shaded.com.google.protobuf.MapField labels_; private com.alibaba.nacos.shaded.com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { return com.alibaba.nacos.shaded.com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** * * *
     * The labels associated with the peer.
     * 
* * map<string, string> labels = 6; */ @java.lang.Override public boolean containsLabels(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } /** Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** * * *
     * The labels associated with the peer.
     * 
* * map<string, string> labels = 6; */ @java.lang.Override public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** * * *
     * The labels associated with the peer.
     * 
* * map<string, string> labels = 6; */ @java.lang.Override public /* nullable */ java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * * *
     * The labels associated with the peer.
     * 
* * map<string, string> labels = 6; */ @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int PRINCIPAL_FIELD_NUMBER = 7; @SuppressWarnings("serial") private volatile java.lang.Object principal_ = ""; /** * * *
     * The identity of this peer. Similar to `Request.auth.principal`, but
     * relative to the peer instead of the request. For example, the
     * identity associated with a load balancer that forwarded the request.
     * 
* * string principal = 7; * * @return The principal. */ @java.lang.Override public java.lang.String getPrincipal() { java.lang.Object ref = principal_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.alibaba.nacos.shaded.com.google.protobuf.ByteString bs = (com.alibaba.nacos.shaded.com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); principal_ = s; return s; } } /** * * *
     * The identity of this peer. Similar to `Request.auth.principal`, but
     * relative to the peer instead of the request. For example, the
     * identity associated with a load balancer that forwarded the request.
     * 
* * string principal = 7; * * @return The bytes for principal. */ @java.lang.Override public com.alibaba.nacos.shaded.com.google.protobuf.ByteString getPrincipalBytes() { java.lang.Object ref = principal_; if (ref instanceof java.lang.String) { com.alibaba.nacos.shaded.com.google.protobuf.ByteString b = com.alibaba.nacos.shaded.com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); principal_ = b; return b; } else { return (com.alibaba.nacos.shaded.com.google.protobuf.ByteString) ref; } } public static final int REGION_CODE_FIELD_NUMBER = 8; @SuppressWarnings("serial") private volatile java.lang.Object regionCode_ = ""; /** * * *
     * The CLDR country/region code associated with the above IP address.
     * If the IP address is private, the `region_code` should reflect the
     * physical location where this peer is running.
     * 
* * string region_code = 8; * * @return The regionCode. */ @java.lang.Override public java.lang.String getRegionCode() { java.lang.Object ref = regionCode_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.alibaba.nacos.shaded.com.google.protobuf.ByteString bs = (com.alibaba.nacos.shaded.com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); regionCode_ = s; return s; } } /** * * *
     * The CLDR country/region code associated with the above IP address.
     * If the IP address is private, the `region_code` should reflect the
     * physical location where this peer is running.
     * 
* * string region_code = 8; * * @return The bytes for regionCode. */ @java.lang.Override public com.alibaba.nacos.shaded.com.google.protobuf.ByteString getRegionCodeBytes() { java.lang.Object ref = regionCode_; if (ref instanceof java.lang.String) { com.alibaba.nacos.shaded.com.google.protobuf.ByteString b = com.alibaba.nacos.shaded.com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); regionCode_ = b; return b; } else { return (com.alibaba.nacos.shaded.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.alibaba.nacos.shaded.com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.isStringEmpty(ip_)) { com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.writeString(output, 1, ip_); } if (port_ != 0L) { output.writeInt64(2, port_); } com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 6); if (!com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.isStringEmpty(principal_)) { com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.writeString(output, 7, principal_); } if (!com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.isStringEmpty(regionCode_)) { com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.writeString(output, 8, regionCode_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.isStringEmpty(ip_)) { size += com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.computeStringSize(1, ip_); } if (port_ != 0L) { size += com.alibaba.nacos.shaded.com.google.protobuf.CodedOutputStream.computeInt64Size(2, port_); } for (java.util.Map.Entry entry : internalGetLabels().getMap().entrySet()) { com.alibaba.nacos.shaded.com.google.protobuf.MapEntry labels__ = LabelsDefaultEntryHolder.defaultEntry .newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.alibaba.nacos.shaded.com.google.protobuf.CodedOutputStream.computeMessageSize(6, labels__); } if (!com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.isStringEmpty(principal_)) { size += com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.computeStringSize(7, principal_); } if (!com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.isStringEmpty(regionCode_)) { size += com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.computeStringSize(8, regionCode_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Peer)) { return super.equals(obj); } com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Peer other = (com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Peer) obj; if (!getIp().equals(other.getIp())) return false; if (getPort() != other.getPort()) return false; if (!internalGetLabels().equals(other.internalGetLabels())) return false; if (!getPrincipal().equals(other.getPrincipal())) return false; if (!getRegionCode().equals(other.getRegionCode())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + IP_FIELD_NUMBER; hash = (53 * hash) + getIp().hashCode(); hash = (37 * hash) + PORT_FIELD_NUMBER; hash = (53 * hash) + com.alibaba.nacos.shaded.com.google.protobuf.Internal.hashLong(getPort()); if (!internalGetLabels().getMap().isEmpty()) { hash = (37 * hash) + LABELS_FIELD_NUMBER; hash = (53 * hash) + internalGetLabels().hashCode(); } hash = (37 * hash) + PRINCIPAL_FIELD_NUMBER; hash = (53 * hash) + getPrincipal().hashCode(); hash = (37 * hash) + REGION_CODE_FIELD_NUMBER; hash = (53 * hash) + getRegionCode().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Peer parseFrom(java.nio.ByteBuffer data) throws com.alibaba.nacos.shaded.com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Peer parseFrom( java.nio.ByteBuffer data, com.alibaba.nacos.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.alibaba.nacos.shaded.com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Peer parseFrom( com.alibaba.nacos.shaded.com.google.protobuf.ByteString data) throws com.alibaba.nacos.shaded.com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Peer parseFrom( com.alibaba.nacos.shaded.com.google.protobuf.ByteString data, com.alibaba.nacos.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.alibaba.nacos.shaded.com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Peer parseFrom(byte[] data) throws com.alibaba.nacos.shaded.com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Peer parseFrom( byte[] data, com.alibaba.nacos.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.alibaba.nacos.shaded.com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Peer parseFrom(java.io.InputStream input) throws java.io.IOException { return com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Peer parseFrom( java.io.InputStream input, com.alibaba.nacos.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } public static com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Peer parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Peer parseDelimitedFrom( java.io.InputStream input, com.alibaba.nacos.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Peer parseFrom( com.alibaba.nacos.shaded.com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Peer parseFrom( com.alibaba.nacos.shaded.com.google.protobuf.CodedInputStream input, com.alibaba.nacos.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Peer prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * * *
     * This message defines attributes for a node that handles a network request.
     * The node can be either a service or an application that sends, forwards,
     * or receives the request. Service peers should fill in
     * `principal` and `labels` as appropriate.
     * 
* * Protobuf type {@code google.rpc.context.AttributeContext.Peer} */ public static final class Builder extends com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.rpc.context.AttributeContext.Peer) com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.PeerOrBuilder { public static final com.alibaba.nacos.shaded.com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContextProto .internal_static_google_rpc_context_AttributeContext_Peer_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.alibaba.nacos.shaded.com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 6: return internalGetLabels(); default: throw new RuntimeException("Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.alibaba.nacos.shaded.com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { case 6: return internalGetMutableLabels(); default: throw new RuntimeException("Invalid map field number: " + number); } } @java.lang.Override protected com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContextProto .internal_static_google_rpc_context_AttributeContext_Peer_fieldAccessorTable .ensureFieldAccessorsInitialized( com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Peer.class, com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Peer.Builder.class); } // Construct using com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Peer.newBuilder() private Builder() {} private Builder(com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; ip_ = ""; port_ = 0L; internalGetMutableLabels().clear(); principal_ = ""; regionCode_ = ""; return this; } @java.lang.Override public com.alibaba.nacos.shaded.com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContextProto .internal_static_google_rpc_context_AttributeContext_Peer_descriptor; } @java.lang.Override public com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Peer getDefaultInstanceForType() { return com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Peer.getDefaultInstance(); } @java.lang.Override public com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Peer build() { com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Peer result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Peer buildPartial() { com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Peer result = new com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Peer(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Peer result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.ip_ = ip_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.port_ = port_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.labels_ = internalGetLabels(); result.labels_.makeImmutable(); } if (((from_bitField0_ & 0x00000008) != 0)) { result.principal_ = principal_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.regionCode_ = regionCode_; } } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.alibaba.nacos.shaded.com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField(com.alibaba.nacos.shaded.com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.alibaba.nacos.shaded.com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.alibaba.nacos.shaded.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.alibaba.nacos.shaded.com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.alibaba.nacos.shaded.com.google.protobuf.Message other) { if (other instanceof com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Peer) { return mergeFrom((com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Peer) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Peer other) { if (other == com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Peer.getDefaultInstance()) return this; if (!other.getIp().isEmpty()) { ip_ = other.ip_; bitField0_ |= 0x00000001; onChanged(); } if (other.getPort() != 0L) { setPort(other.getPort()); } internalGetMutableLabels().mergeFrom(other.internalGetLabels()); bitField0_ |= 0x00000004; if (!other.getPrincipal().isEmpty()) { principal_ = other.principal_; bitField0_ |= 0x00000008; onChanged(); } if (!other.getRegionCode().isEmpty()) { regionCode_ = other.regionCode_; bitField0_ |= 0x00000010; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.alibaba.nacos.shaded.com.google.protobuf.CodedInputStream input, com.alibaba.nacos.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { ip_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 16: { port_ = input.readInt64(); bitField0_ |= 0x00000002; break; } // case 16 case 50: { com.alibaba.nacos.shaded.com.google.protobuf.MapEntry labels__ = input.readMessage( LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableLabels() .getMutableMap() .put(labels__.getKey(), labels__.getValue()); bitField0_ |= 0x00000004; break; } // case 50 case 58: { principal_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000008; break; } // case 58 case 66: { regionCode_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000010; break; } // case 66 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.alibaba.nacos.shaded.com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object ip_ = ""; /** * * *
       * The IP address of the peer.
       * 
* * string ip = 1; * * @return The ip. */ public java.lang.String getIp() { java.lang.Object ref = ip_; if (!(ref instanceof java.lang.String)) { com.alibaba.nacos.shaded.com.google.protobuf.ByteString bs = (com.alibaba.nacos.shaded.com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); ip_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
       * The IP address of the peer.
       * 
* * string ip = 1; * * @return The bytes for ip. */ public com.alibaba.nacos.shaded.com.google.protobuf.ByteString getIpBytes() { java.lang.Object ref = ip_; if (ref instanceof String) { com.alibaba.nacos.shaded.com.google.protobuf.ByteString b = com.alibaba.nacos.shaded.com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); ip_ = b; return b; } else { return (com.alibaba.nacos.shaded.com.google.protobuf.ByteString) ref; } } /** * * *
       * The IP address of the peer.
       * 
* * string ip = 1; * * @param value The ip to set. * @return This builder for chaining. */ public Builder setIp(java.lang.String value) { if (value == null) { throw new NullPointerException(); } ip_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
       * The IP address of the peer.
       * 
* * string ip = 1; * * @return This builder for chaining. */ public Builder clearIp() { ip_ = getDefaultInstance().getIp(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * * *
       * The IP address of the peer.
       * 
* * string ip = 1; * * @param value The bytes for ip to set. * @return This builder for chaining. */ public Builder setIpBytes(com.alibaba.nacos.shaded.com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ip_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private long port_; /** * * *
       * The network port of the peer.
       * 
* * int64 port = 2; * * @return The port. */ @java.lang.Override public long getPort() { return port_; } /** * * *
       * The network port of the peer.
       * 
* * int64 port = 2; * * @param value The port to set. * @return This builder for chaining. */ public Builder setPort(long value) { port_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
       * The network port of the peer.
       * 
* * int64 port = 2; * * @return This builder for chaining. */ public Builder clearPort() { bitField0_ = (bitField0_ & ~0x00000002); port_ = 0L; onChanged(); return this; } private com.alibaba.nacos.shaded.com.google.protobuf.MapField labels_; private com.alibaba.nacos.shaded.com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { return com.alibaba.nacos.shaded.com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } private com.alibaba.nacos.shaded.com.google.protobuf.MapField internalGetMutableLabels() { if (labels_ == null) { labels_ = com.alibaba.nacos.shaded.com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); } bitField0_ |= 0x00000004; onChanged(); return labels_; } public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** * * *
       * The labels associated with the peer.
       * 
* * map<string, string> labels = 6; */ @java.lang.Override public boolean containsLabels(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } /** Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** * * *
       * The labels associated with the peer.
       * 
* * map<string, string> labels = 6; */ @java.lang.Override public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** * * *
       * The labels associated with the peer.
       * 
* * map<string, string> labels = 6; */ @java.lang.Override public /* nullable */ java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * * *
       * The labels associated with the peer.
       * 
* * map<string, string> labels = 6; */ @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearLabels() { bitField0_ = (bitField0_ & ~0x00000004); internalGetMutableLabels().getMutableMap().clear(); return this; } /** * * *
       * The labels associated with the peer.
       * 
* * map<string, string> labels = 6; */ public Builder removeLabels(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableLabels().getMutableMap().remove(key); return this; } /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableLabels() { bitField0_ |= 0x00000004; return internalGetMutableLabels().getMutableMap(); } /** * * *
       * The labels associated with the peer.
       * 
* * map<string, string> labels = 6; */ public Builder putLabels(java.lang.String key, java.lang.String value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableLabels().getMutableMap().put(key, value); bitField0_ |= 0x00000004; return this; } /** * * *
       * The labels associated with the peer.
       * 
* * map<string, string> labels = 6; */ public Builder putAllLabels(java.util.Map values) { internalGetMutableLabels().getMutableMap().putAll(values); bitField0_ |= 0x00000004; return this; } private java.lang.Object principal_ = ""; /** * * *
       * The identity of this peer. Similar to `Request.auth.principal`, but
       * relative to the peer instead of the request. For example, the
       * identity associated with a load balancer that forwarded the request.
       * 
* * string principal = 7; * * @return The principal. */ public java.lang.String getPrincipal() { java.lang.Object ref = principal_; if (!(ref instanceof java.lang.String)) { com.alibaba.nacos.shaded.com.google.protobuf.ByteString bs = (com.alibaba.nacos.shaded.com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); principal_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
       * The identity of this peer. Similar to `Request.auth.principal`, but
       * relative to the peer instead of the request. For example, the
       * identity associated with a load balancer that forwarded the request.
       * 
* * string principal = 7; * * @return The bytes for principal. */ public com.alibaba.nacos.shaded.com.google.protobuf.ByteString getPrincipalBytes() { java.lang.Object ref = principal_; if (ref instanceof String) { com.alibaba.nacos.shaded.com.google.protobuf.ByteString b = com.alibaba.nacos.shaded.com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); principal_ = b; return b; } else { return (com.alibaba.nacos.shaded.com.google.protobuf.ByteString) ref; } } /** * * *
       * The identity of this peer. Similar to `Request.auth.principal`, but
       * relative to the peer instead of the request. For example, the
       * identity associated with a load balancer that forwarded the request.
       * 
* * string principal = 7; * * @param value The principal to set. * @return This builder for chaining. */ public Builder setPrincipal(java.lang.String value) { if (value == null) { throw new NullPointerException(); } principal_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** * * *
       * The identity of this peer. Similar to `Request.auth.principal`, but
       * relative to the peer instead of the request. For example, the
       * identity associated with a load balancer that forwarded the request.
       * 
* * string principal = 7; * * @return This builder for chaining. */ public Builder clearPrincipal() { principal_ = getDefaultInstance().getPrincipal(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** * * *
       * The identity of this peer. Similar to `Request.auth.principal`, but
       * relative to the peer instead of the request. For example, the
       * identity associated with a load balancer that forwarded the request.
       * 
* * string principal = 7; * * @param value The bytes for principal to set. * @return This builder for chaining. */ public Builder setPrincipalBytes(com.alibaba.nacos.shaded.com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); principal_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } private java.lang.Object regionCode_ = ""; /** * * *
       * The CLDR country/region code associated with the above IP address.
       * If the IP address is private, the `region_code` should reflect the
       * physical location where this peer is running.
       * 
* * string region_code = 8; * * @return The regionCode. */ public java.lang.String getRegionCode() { java.lang.Object ref = regionCode_; if (!(ref instanceof java.lang.String)) { com.alibaba.nacos.shaded.com.google.protobuf.ByteString bs = (com.alibaba.nacos.shaded.com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); regionCode_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
       * The CLDR country/region code associated with the above IP address.
       * If the IP address is private, the `region_code` should reflect the
       * physical location where this peer is running.
       * 
* * string region_code = 8; * * @return The bytes for regionCode. */ public com.alibaba.nacos.shaded.com.google.protobuf.ByteString getRegionCodeBytes() { java.lang.Object ref = regionCode_; if (ref instanceof String) { com.alibaba.nacos.shaded.com.google.protobuf.ByteString b = com.alibaba.nacos.shaded.com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); regionCode_ = b; return b; } else { return (com.alibaba.nacos.shaded.com.google.protobuf.ByteString) ref; } } /** * * *
       * The CLDR country/region code associated with the above IP address.
       * If the IP address is private, the `region_code` should reflect the
       * physical location where this peer is running.
       * 
* * string region_code = 8; * * @param value The regionCode to set. * @return This builder for chaining. */ public Builder setRegionCode(java.lang.String value) { if (value == null) { throw new NullPointerException(); } regionCode_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** * * *
       * The CLDR country/region code associated with the above IP address.
       * If the IP address is private, the `region_code` should reflect the
       * physical location where this peer is running.
       * 
* * string region_code = 8; * * @return This builder for chaining. */ public Builder clearRegionCode() { regionCode_ = getDefaultInstance().getRegionCode(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } /** * * *
       * The CLDR country/region code associated with the above IP address.
       * If the IP address is private, the `region_code` should reflect the
       * physical location where this peer is running.
       * 
* * string region_code = 8; * * @param value The bytes for regionCode to set. * @return This builder for chaining. */ public Builder setRegionCodeBytes(com.alibaba.nacos.shaded.com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); regionCode_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.alibaba.nacos.shaded.com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.alibaba.nacos.shaded.com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.rpc.context.AttributeContext.Peer) } // @@protoc_insertion_point(class_scope:google.rpc.context.AttributeContext.Peer) private static final com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Peer DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Peer(); } public static com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Peer getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.alibaba.nacos.shaded.com.google.protobuf.Parser PARSER = new com.alibaba.nacos.shaded.com.google.protobuf.AbstractParser() { @java.lang.Override public Peer parsePartialFrom( com.alibaba.nacos.shaded.com.google.protobuf.CodedInputStream input, com.alibaba.nacos.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.alibaba.nacos.shaded.com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.alibaba.nacos.shaded.com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.alibaba.nacos.shaded.com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException() .setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.alibaba.nacos.shaded.com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.alibaba.nacos.shaded.com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.alibaba.nacos.shaded.com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Peer getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ApiOrBuilder extends // @@protoc_insertion_point(interface_extends:google.rpc.context.AttributeContext.Api) com.alibaba.nacos.shaded.com.google.protobuf.MessageOrBuilder { /** * * *
     * The API service name. It is a logical identifier for a networked API,
     * such as "pubsub.googleapis.com". The naming syntax depends on the
     * API management system being used for handling the request.
     * 
* * string service = 1; * * @return The service. */ java.lang.String getService(); /** * * *
     * The API service name. It is a logical identifier for a networked API,
     * such as "pubsub.googleapis.com". The naming syntax depends on the
     * API management system being used for handling the request.
     * 
* * string service = 1; * * @return The bytes for service. */ com.alibaba.nacos.shaded.com.google.protobuf.ByteString getServiceBytes(); /** * * *
     * The API operation name. For gRPC requests, it is the fully qualified API
     * method name, such as "google.pubsub.v1.Publisher.Publish". For OpenAPI
     * requests, it is the `operationId`, such as "getPet".
     * 
* * string operation = 2; * * @return The operation. */ java.lang.String getOperation(); /** * * *
     * The API operation name. For gRPC requests, it is the fully qualified API
     * method name, such as "google.pubsub.v1.Publisher.Publish". For OpenAPI
     * requests, it is the `operationId`, such as "getPet".
     * 
* * string operation = 2; * * @return The bytes for operation. */ com.alibaba.nacos.shaded.com.google.protobuf.ByteString getOperationBytes(); /** * * *
     * The API protocol used for sending the request, such as "http", "https",
     * "grpc", or "internal".
     * 
* * string protocol = 3; * * @return The protocol. */ java.lang.String getProtocol(); /** * * *
     * The API protocol used for sending the request, such as "http", "https",
     * "grpc", or "internal".
     * 
* * string protocol = 3; * * @return The bytes for protocol. */ com.alibaba.nacos.shaded.com.google.protobuf.ByteString getProtocolBytes(); /** * * *
     * The API version associated with the API operation above, such as "v1" or
     * "v1alpha1".
     * 
* * string version = 4; * * @return The version. */ java.lang.String getVersion(); /** * * *
     * The API version associated with the API operation above, such as "v1" or
     * "v1alpha1".
     * 
* * string version = 4; * * @return The bytes for version. */ com.alibaba.nacos.shaded.com.google.protobuf.ByteString getVersionBytes(); } /** * * *
   * This message defines attributes associated with API operations, such as
   * a network API request. The terminology is based on the conventions used
   * by Google APIs, Istio, and OpenAPI.
   * 
* * Protobuf type {@code google.rpc.context.AttributeContext.Api} */ public static final class Api extends com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.rpc.context.AttributeContext.Api) ApiOrBuilder { private static final long serialVersionUID = 0L; // Use Api.newBuilder() to construct. private Api(com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Api() { service_ = ""; operation_ = ""; protocol_ = ""; version_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Api(); } @java.lang.Override public final com.alibaba.nacos.shaded.com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.alibaba.nacos.shaded.com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContextProto .internal_static_google_rpc_context_AttributeContext_Api_descriptor; } @java.lang.Override protected com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContextProto .internal_static_google_rpc_context_AttributeContext_Api_fieldAccessorTable .ensureFieldAccessorsInitialized( com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Api.class, com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Api.Builder.class); } public static final int SERVICE_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object service_ = ""; /** * * *
     * The API service name. It is a logical identifier for a networked API,
     * such as "pubsub.googleapis.com". The naming syntax depends on the
     * API management system being used for handling the request.
     * 
* * string service = 1; * * @return The service. */ @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.alibaba.nacos.shaded.com.google.protobuf.ByteString bs = (com.alibaba.nacos.shaded.com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); service_ = s; return s; } } /** * * *
     * The API service name. It is a logical identifier for a networked API,
     * such as "pubsub.googleapis.com". The naming syntax depends on the
     * API management system being used for handling the request.
     * 
* * string service = 1; * * @return The bytes for service. */ @java.lang.Override public com.alibaba.nacos.shaded.com.google.protobuf.ByteString getServiceBytes() { java.lang.Object ref = service_; if (ref instanceof java.lang.String) { com.alibaba.nacos.shaded.com.google.protobuf.ByteString b = com.alibaba.nacos.shaded.com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); service_ = b; return b; } else { return (com.alibaba.nacos.shaded.com.google.protobuf.ByteString) ref; } } public static final int OPERATION_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object operation_ = ""; /** * * *
     * The API operation name. For gRPC requests, it is the fully qualified API
     * method name, such as "google.pubsub.v1.Publisher.Publish". For OpenAPI
     * requests, it is the `operationId`, such as "getPet".
     * 
* * string operation = 2; * * @return The operation. */ @java.lang.Override public java.lang.String getOperation() { java.lang.Object ref = operation_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.alibaba.nacos.shaded.com.google.protobuf.ByteString bs = (com.alibaba.nacos.shaded.com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); operation_ = s; return s; } } /** * * *
     * The API operation name. For gRPC requests, it is the fully qualified API
     * method name, such as "google.pubsub.v1.Publisher.Publish". For OpenAPI
     * requests, it is the `operationId`, such as "getPet".
     * 
* * string operation = 2; * * @return The bytes for operation. */ @java.lang.Override public com.alibaba.nacos.shaded.com.google.protobuf.ByteString getOperationBytes() { java.lang.Object ref = operation_; if (ref instanceof java.lang.String) { com.alibaba.nacos.shaded.com.google.protobuf.ByteString b = com.alibaba.nacos.shaded.com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); operation_ = b; return b; } else { return (com.alibaba.nacos.shaded.com.google.protobuf.ByteString) ref; } } public static final int PROTOCOL_FIELD_NUMBER = 3; @SuppressWarnings("serial") private volatile java.lang.Object protocol_ = ""; /** * * *
     * The API protocol used for sending the request, such as "http", "https",
     * "grpc", or "internal".
     * 
* * string protocol = 3; * * @return The protocol. */ @java.lang.Override public java.lang.String getProtocol() { java.lang.Object ref = protocol_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.alibaba.nacos.shaded.com.google.protobuf.ByteString bs = (com.alibaba.nacos.shaded.com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); protocol_ = s; return s; } } /** * * *
     * The API protocol used for sending the request, such as "http", "https",
     * "grpc", or "internal".
     * 
* * string protocol = 3; * * @return The bytes for protocol. */ @java.lang.Override public com.alibaba.nacos.shaded.com.google.protobuf.ByteString getProtocolBytes() { java.lang.Object ref = protocol_; if (ref instanceof java.lang.String) { com.alibaba.nacos.shaded.com.google.protobuf.ByteString b = com.alibaba.nacos.shaded.com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); protocol_ = b; return b; } else { return (com.alibaba.nacos.shaded.com.google.protobuf.ByteString) ref; } } public static final int VERSION_FIELD_NUMBER = 4; @SuppressWarnings("serial") private volatile java.lang.Object version_ = ""; /** * * *
     * The API version associated with the API operation above, such as "v1" or
     * "v1alpha1".
     * 
* * string version = 4; * * @return The version. */ @java.lang.Override public java.lang.String getVersion() { java.lang.Object ref = version_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.alibaba.nacos.shaded.com.google.protobuf.ByteString bs = (com.alibaba.nacos.shaded.com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; } } /** * * *
     * The API version associated with the API operation above, such as "v1" or
     * "v1alpha1".
     * 
* * string version = 4; * * @return The bytes for version. */ @java.lang.Override public com.alibaba.nacos.shaded.com.google.protobuf.ByteString getVersionBytes() { java.lang.Object ref = version_; if (ref instanceof java.lang.String) { com.alibaba.nacos.shaded.com.google.protobuf.ByteString b = com.alibaba.nacos.shaded.com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); version_ = b; return b; } else { return (com.alibaba.nacos.shaded.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.alibaba.nacos.shaded.com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.isStringEmpty(service_)) { com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.writeString(output, 1, service_); } if (!com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.isStringEmpty(operation_)) { com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.writeString(output, 2, operation_); } if (!com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.isStringEmpty(protocol_)) { com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.writeString(output, 3, protocol_); } if (!com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.writeString(output, 4, version_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.isStringEmpty(service_)) { size += com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.computeStringSize(1, service_); } if (!com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.isStringEmpty(operation_)) { size += com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.computeStringSize(2, operation_); } if (!com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.isStringEmpty(protocol_)) { size += com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.computeStringSize(3, protocol_); } if (!com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { size += com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.computeStringSize(4, version_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Api)) { return super.equals(obj); } com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Api other = (com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Api) obj; if (!getService().equals(other.getService())) return false; if (!getOperation().equals(other.getOperation())) return false; if (!getProtocol().equals(other.getProtocol())) return false; if (!getVersion().equals(other.getVersion())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + SERVICE_FIELD_NUMBER; hash = (53 * hash) + getService().hashCode(); hash = (37 * hash) + OPERATION_FIELD_NUMBER; hash = (53 * hash) + getOperation().hashCode(); hash = (37 * hash) + PROTOCOL_FIELD_NUMBER; hash = (53 * hash) + getProtocol().hashCode(); hash = (37 * hash) + VERSION_FIELD_NUMBER; hash = (53 * hash) + getVersion().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Api parseFrom(java.nio.ByteBuffer data) throws com.alibaba.nacos.shaded.com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Api parseFrom( java.nio.ByteBuffer data, com.alibaba.nacos.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.alibaba.nacos.shaded.com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Api parseFrom( com.alibaba.nacos.shaded.com.google.protobuf.ByteString data) throws com.alibaba.nacos.shaded.com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Api parseFrom( com.alibaba.nacos.shaded.com.google.protobuf.ByteString data, com.alibaba.nacos.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.alibaba.nacos.shaded.com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Api parseFrom(byte[] data) throws com.alibaba.nacos.shaded.com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Api parseFrom( byte[] data, com.alibaba.nacos.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.alibaba.nacos.shaded.com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Api parseFrom(java.io.InputStream input) throws java.io.IOException { return com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Api parseFrom( java.io.InputStream input, com.alibaba.nacos.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } public static com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Api parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Api parseDelimitedFrom( java.io.InputStream input, com.alibaba.nacos.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Api parseFrom( com.alibaba.nacos.shaded.com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Api parseFrom( com.alibaba.nacos.shaded.com.google.protobuf.CodedInputStream input, com.alibaba.nacos.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Api prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * * *
     * This message defines attributes associated with API operations, such as
     * a network API request. The terminology is based on the conventions used
     * by Google APIs, Istio, and OpenAPI.
     * 
* * Protobuf type {@code google.rpc.context.AttributeContext.Api} */ public static final class Builder extends com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.rpc.context.AttributeContext.Api) com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.ApiOrBuilder { public static final com.alibaba.nacos.shaded.com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContextProto .internal_static_google_rpc_context_AttributeContext_Api_descriptor; } @java.lang.Override protected com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContextProto .internal_static_google_rpc_context_AttributeContext_Api_fieldAccessorTable .ensureFieldAccessorsInitialized( com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Api.class, com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Api.Builder.class); } // Construct using com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Api.newBuilder() private Builder() {} private Builder(com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; service_ = ""; operation_ = ""; protocol_ = ""; version_ = ""; return this; } @java.lang.Override public com.alibaba.nacos.shaded.com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContextProto .internal_static_google_rpc_context_AttributeContext_Api_descriptor; } @java.lang.Override public com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Api getDefaultInstanceForType() { return com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Api.getDefaultInstance(); } @java.lang.Override public com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Api build() { com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Api result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Api buildPartial() { com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Api result = new com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Api(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Api result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.service_ = service_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.operation_ = operation_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.protocol_ = protocol_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.version_ = version_; } } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.alibaba.nacos.shaded.com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField(com.alibaba.nacos.shaded.com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.alibaba.nacos.shaded.com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.alibaba.nacos.shaded.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.alibaba.nacos.shaded.com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.alibaba.nacos.shaded.com.google.protobuf.Message other) { if (other instanceof com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Api) { return mergeFrom((com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Api) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Api other) { if (other == com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Api.getDefaultInstance()) return this; if (!other.getService().isEmpty()) { service_ = other.service_; bitField0_ |= 0x00000001; onChanged(); } if (!other.getOperation().isEmpty()) { operation_ = other.operation_; bitField0_ |= 0x00000002; onChanged(); } if (!other.getProtocol().isEmpty()) { protocol_ = other.protocol_; bitField0_ |= 0x00000004; onChanged(); } if (!other.getVersion().isEmpty()) { version_ = other.version_; bitField0_ |= 0x00000008; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.alibaba.nacos.shaded.com.google.protobuf.CodedInputStream input, com.alibaba.nacos.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { service_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { operation_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { protocol_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; } // case 26 case 34: { version_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000008; break; } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.alibaba.nacos.shaded.com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object service_ = ""; /** * * *
       * The API service name. It is a logical identifier for a networked API,
       * such as "pubsub.googleapis.com". The naming syntax depends on the
       * API management system being used for handling 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.alibaba.nacos.shaded.com.google.protobuf.ByteString bs = (com.alibaba.nacos.shaded.com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); service_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
       * The API service name. It is a logical identifier for a networked API,
       * such as "pubsub.googleapis.com". The naming syntax depends on the
       * API management system being used for handling the request.
       * 
* * string service = 1; * * @return The bytes for service. */ public com.alibaba.nacos.shaded.com.google.protobuf.ByteString getServiceBytes() { java.lang.Object ref = service_; if (ref instanceof String) { com.alibaba.nacos.shaded.com.google.protobuf.ByteString b = com.alibaba.nacos.shaded.com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); service_ = b; return b; } else { return (com.alibaba.nacos.shaded.com.google.protobuf.ByteString) ref; } } /** * * *
       * The API service name. It is a logical identifier for a networked API,
       * such as "pubsub.googleapis.com". The naming syntax depends on the
       * API management system being used for handling 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; bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
       * The API service name. It is a logical identifier for a networked API,
       * such as "pubsub.googleapis.com". The naming syntax depends on the
       * API management system being used for handling the request.
       * 
* * string service = 1; * * @return This builder for chaining. */ public Builder clearService() { service_ = getDefaultInstance().getService(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * * *
       * The API service name. It is a logical identifier for a networked API,
       * such as "pubsub.googleapis.com". The naming syntax depends on the
       * API management system being used for handling the request.
       * 
* * string service = 1; * * @param value The bytes for service to set. * @return This builder for chaining. */ public Builder setServiceBytes(com.alibaba.nacos.shaded.com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); service_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private java.lang.Object operation_ = ""; /** * * *
       * The API operation name. For gRPC requests, it is the fully qualified API
       * method name, such as "google.pubsub.v1.Publisher.Publish". For OpenAPI
       * requests, it is the `operationId`, such as "getPet".
       * 
* * string operation = 2; * * @return The operation. */ public java.lang.String getOperation() { java.lang.Object ref = operation_; if (!(ref instanceof java.lang.String)) { com.alibaba.nacos.shaded.com.google.protobuf.ByteString bs = (com.alibaba.nacos.shaded.com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); operation_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
       * The API operation name. For gRPC requests, it is the fully qualified API
       * method name, such as "google.pubsub.v1.Publisher.Publish". For OpenAPI
       * requests, it is the `operationId`, such as "getPet".
       * 
* * string operation = 2; * * @return The bytes for operation. */ public com.alibaba.nacos.shaded.com.google.protobuf.ByteString getOperationBytes() { java.lang.Object ref = operation_; if (ref instanceof String) { com.alibaba.nacos.shaded.com.google.protobuf.ByteString b = com.alibaba.nacos.shaded.com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); operation_ = b; return b; } else { return (com.alibaba.nacos.shaded.com.google.protobuf.ByteString) ref; } } /** * * *
       * The API operation name. For gRPC requests, it is the fully qualified API
       * method name, such as "google.pubsub.v1.Publisher.Publish". For OpenAPI
       * requests, it is the `operationId`, such as "getPet".
       * 
* * string operation = 2; * * @param value The operation to set. * @return This builder for chaining. */ public Builder setOperation(java.lang.String value) { if (value == null) { throw new NullPointerException(); } operation_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
       * The API operation name. For gRPC requests, it is the fully qualified API
       * method name, such as "google.pubsub.v1.Publisher.Publish". For OpenAPI
       * requests, it is the `operationId`, such as "getPet".
       * 
* * string operation = 2; * * @return This builder for chaining. */ public Builder clearOperation() { operation_ = getDefaultInstance().getOperation(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * * *
       * The API operation name. For gRPC requests, it is the fully qualified API
       * method name, such as "google.pubsub.v1.Publisher.Publish". For OpenAPI
       * requests, it is the `operationId`, such as "getPet".
       * 
* * string operation = 2; * * @param value The bytes for operation to set. * @return This builder for chaining. */ public Builder setOperationBytes(com.alibaba.nacos.shaded.com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); operation_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private java.lang.Object protocol_ = ""; /** * * *
       * The API protocol used for sending the request, such as "http", "https",
       * "grpc", or "internal".
       * 
* * string protocol = 3; * * @return The protocol. */ public java.lang.String getProtocol() { java.lang.Object ref = protocol_; if (!(ref instanceof java.lang.String)) { com.alibaba.nacos.shaded.com.google.protobuf.ByteString bs = (com.alibaba.nacos.shaded.com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); protocol_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
       * The API protocol used for sending the request, such as "http", "https",
       * "grpc", or "internal".
       * 
* * string protocol = 3; * * @return The bytes for protocol. */ public com.alibaba.nacos.shaded.com.google.protobuf.ByteString getProtocolBytes() { java.lang.Object ref = protocol_; if (ref instanceof String) { com.alibaba.nacos.shaded.com.google.protobuf.ByteString b = com.alibaba.nacos.shaded.com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); protocol_ = b; return b; } else { return (com.alibaba.nacos.shaded.com.google.protobuf.ByteString) ref; } } /** * * *
       * The API protocol used for sending the request, such as "http", "https",
       * "grpc", or "internal".
       * 
* * string protocol = 3; * * @param value The protocol to set. * @return This builder for chaining. */ public Builder setProtocol(java.lang.String value) { if (value == null) { throw new NullPointerException(); } protocol_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * * *
       * The API protocol used for sending the request, such as "http", "https",
       * "grpc", or "internal".
       * 
* * string protocol = 3; * * @return This builder for chaining. */ public Builder clearProtocol() { protocol_ = getDefaultInstance().getProtocol(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** * * *
       * The API protocol used for sending the request, such as "http", "https",
       * "grpc", or "internal".
       * 
* * string protocol = 3; * * @param value The bytes for protocol to set. * @return This builder for chaining. */ public Builder setProtocolBytes(com.alibaba.nacos.shaded.com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); protocol_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } private java.lang.Object version_ = ""; /** * * *
       * The API version associated with the API operation above, such as "v1" or
       * "v1alpha1".
       * 
* * string version = 4; * * @return The version. */ public java.lang.String getVersion() { java.lang.Object ref = version_; if (!(ref instanceof java.lang.String)) { com.alibaba.nacos.shaded.com.google.protobuf.ByteString bs = (com.alibaba.nacos.shaded.com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
       * The API version associated with the API operation above, such as "v1" or
       * "v1alpha1".
       * 
* * string version = 4; * * @return The bytes for version. */ public com.alibaba.nacos.shaded.com.google.protobuf.ByteString getVersionBytes() { java.lang.Object ref = version_; if (ref instanceof String) { com.alibaba.nacos.shaded.com.google.protobuf.ByteString b = com.alibaba.nacos.shaded.com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); version_ = b; return b; } else { return (com.alibaba.nacos.shaded.com.google.protobuf.ByteString) ref; } } /** * * *
       * The API version associated with the API operation above, such as "v1" or
       * "v1alpha1".
       * 
* * string version = 4; * * @param value The version to set. * @return This builder for chaining. */ public Builder setVersion(java.lang.String value) { if (value == null) { throw new NullPointerException(); } version_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** * * *
       * The API version associated with the API operation above, such as "v1" or
       * "v1alpha1".
       * 
* * string version = 4; * * @return This builder for chaining. */ public Builder clearVersion() { version_ = getDefaultInstance().getVersion(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** * * *
       * The API version associated with the API operation above, such as "v1" or
       * "v1alpha1".
       * 
* * string version = 4; * * @param value The bytes for version to set. * @return This builder for chaining. */ public Builder setVersionBytes(com.alibaba.nacos.shaded.com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); version_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.alibaba.nacos.shaded.com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.alibaba.nacos.shaded.com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.rpc.context.AttributeContext.Api) } // @@protoc_insertion_point(class_scope:google.rpc.context.AttributeContext.Api) private static final com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Api DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Api(); } public static com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Api getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.alibaba.nacos.shaded.com.google.protobuf.Parser PARSER = new com.alibaba.nacos.shaded.com.google.protobuf.AbstractParser() { @java.lang.Override public Api parsePartialFrom( com.alibaba.nacos.shaded.com.google.protobuf.CodedInputStream input, com.alibaba.nacos.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.alibaba.nacos.shaded.com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.alibaba.nacos.shaded.com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.alibaba.nacos.shaded.com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException() .setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.alibaba.nacos.shaded.com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.alibaba.nacos.shaded.com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.alibaba.nacos.shaded.com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Api getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AuthOrBuilder extends // @@protoc_insertion_point(interface_extends:google.rpc.context.AttributeContext.Auth) com.alibaba.nacos.shaded.com.google.protobuf.MessageOrBuilder { /** * * *
     * The authenticated principal. Reflects the issuer (`iss`) and subject
     * (`sub`) claims within a JWT. The issuer and subject should be `/`
     * delimited, with `/` percent-encoded within the subject fragment. For
     * Google accounts, the principal format is:
     * "https://accounts.google.com/{id}"
     * 
* * string principal = 1; * * @return The principal. */ java.lang.String getPrincipal(); /** * * *
     * The authenticated principal. Reflects the issuer (`iss`) and subject
     * (`sub`) claims within a JWT. The issuer and subject should be `/`
     * delimited, with `/` percent-encoded within the subject fragment. For
     * Google accounts, the principal format is:
     * "https://accounts.google.com/{id}"
     * 
* * string principal = 1; * * @return The bytes for principal. */ com.alibaba.nacos.shaded.com.google.protobuf.ByteString getPrincipalBytes(); /** * * *
     * The intended audience(s) for this authentication information. Reflects
     * the audience (`aud`) claim within a JWT. The audience
     * value(s) depends on the `issuer`, but typically include one or more of
     * the following pieces of information:
     * *  The services intended to receive the credential. For example,
     *    ["https://pubsub.googleapis.com/", "https://storage.googleapis.com/"].
     * *  A set of service-based scopes. For example,
     *    ["https://www.googleapis.com/auth/cloud-platform"].
     * *  The client id of an app, such as the Firebase project id for JWTs
     *    from Firebase Auth.
     * Consult the documentation for the credential issuer to determine the
     * information provided.
     * 
* * repeated string audiences = 2; * * @return A list containing the audiences. */ java.util.List getAudiencesList(); /** * * *
     * The intended audience(s) for this authentication information. Reflects
     * the audience (`aud`) claim within a JWT. The audience
     * value(s) depends on the `issuer`, but typically include one or more of
     * the following pieces of information:
     * *  The services intended to receive the credential. For example,
     *    ["https://pubsub.googleapis.com/", "https://storage.googleapis.com/"].
     * *  A set of service-based scopes. For example,
     *    ["https://www.googleapis.com/auth/cloud-platform"].
     * *  The client id of an app, such as the Firebase project id for JWTs
     *    from Firebase Auth.
     * Consult the documentation for the credential issuer to determine the
     * information provided.
     * 
* * repeated string audiences = 2; * * @return The count of audiences. */ int getAudiencesCount(); /** * * *
     * The intended audience(s) for this authentication information. Reflects
     * the audience (`aud`) claim within a JWT. The audience
     * value(s) depends on the `issuer`, but typically include one or more of
     * the following pieces of information:
     * *  The services intended to receive the credential. For example,
     *    ["https://pubsub.googleapis.com/", "https://storage.googleapis.com/"].
     * *  A set of service-based scopes. For example,
     *    ["https://www.googleapis.com/auth/cloud-platform"].
     * *  The client id of an app, such as the Firebase project id for JWTs
     *    from Firebase Auth.
     * Consult the documentation for the credential issuer to determine the
     * information provided.
     * 
* * repeated string audiences = 2; * * @param index The index of the element to return. * @return The audiences at the given index. */ java.lang.String getAudiences(int index); /** * * *
     * The intended audience(s) for this authentication information. Reflects
     * the audience (`aud`) claim within a JWT. The audience
     * value(s) depends on the `issuer`, but typically include one or more of
     * the following pieces of information:
     * *  The services intended to receive the credential. For example,
     *    ["https://pubsub.googleapis.com/", "https://storage.googleapis.com/"].
     * *  A set of service-based scopes. For example,
     *    ["https://www.googleapis.com/auth/cloud-platform"].
     * *  The client id of an app, such as the Firebase project id for JWTs
     *    from Firebase Auth.
     * Consult the documentation for the credential issuer to determine the
     * information provided.
     * 
* * repeated string audiences = 2; * * @param index The index of the value to return. * @return The bytes of the audiences at the given index. */ com.alibaba.nacos.shaded.com.google.protobuf.ByteString getAudiencesBytes(int index); /** * * *
     * The authorized presenter of the credential. Reflects the optional
     * Authorized Presenter (`azp`) claim within a JWT or the
     * OAuth client id. For example, a Google Cloud Platform client id looks
     * as follows: "123456789012.apps.googleusercontent.com".
     * 
* * string presenter = 3; * * @return The presenter. */ java.lang.String getPresenter(); /** * * *
     * The authorized presenter of the credential. Reflects the optional
     * Authorized Presenter (`azp`) claim within a JWT or the
     * OAuth client id. For example, a Google Cloud Platform client id looks
     * as follows: "123456789012.apps.googleusercontent.com".
     * 
* * string presenter = 3; * * @return The bytes for presenter. */ com.alibaba.nacos.shaded.com.google.protobuf.ByteString getPresenterBytes(); /** * * *
     * Structured claims presented with the credential. JWTs include
     * `{key: value}` pairs for standard and private claims. The following
     * is a subset of the standard required and optional claims that would
     * typically be presented for a Google-based JWT:
     *    {'iss': 'accounts.google.com',
     *     'sub': '113289723416554971153',
     *     'aud': ['123456789012', 'pubsub.googleapis.com'],
     *     'azp': '123456789012.apps.googleusercontent.com',
     *     'email': 'jsmith@example.com',
     *     'iat': 1353601026,
     *     'exp': 1353604926}
     * SAML assertions are similarly specified, but with an identity provider
     * dependent structure.
     * 
* * .google.protobuf.Struct claims = 4; * * @return Whether the claims field is set. */ boolean hasClaims(); /** * * *
     * Structured claims presented with the credential. JWTs include
     * `{key: value}` pairs for standard and private claims. The following
     * is a subset of the standard required and optional claims that would
     * typically be presented for a Google-based JWT:
     *    {'iss': 'accounts.google.com',
     *     'sub': '113289723416554971153',
     *     'aud': ['123456789012', 'pubsub.googleapis.com'],
     *     'azp': '123456789012.apps.googleusercontent.com',
     *     'email': 'jsmith@example.com',
     *     'iat': 1353601026,
     *     'exp': 1353604926}
     * SAML assertions are similarly specified, but with an identity provider
     * dependent structure.
     * 
* * .google.protobuf.Struct claims = 4; * * @return The claims. */ com.alibaba.nacos.shaded.com.google.protobuf.Struct getClaims(); /** * * *
     * Structured claims presented with the credential. JWTs include
     * `{key: value}` pairs for standard and private claims. The following
     * is a subset of the standard required and optional claims that would
     * typically be presented for a Google-based JWT:
     *    {'iss': 'accounts.google.com',
     *     'sub': '113289723416554971153',
     *     'aud': ['123456789012', 'pubsub.googleapis.com'],
     *     'azp': '123456789012.apps.googleusercontent.com',
     *     'email': 'jsmith@example.com',
     *     'iat': 1353601026,
     *     'exp': 1353604926}
     * SAML assertions are similarly specified, but with an identity provider
     * dependent structure.
     * 
* * .google.protobuf.Struct claims = 4; */ com.alibaba.nacos.shaded.com.google.protobuf.StructOrBuilder getClaimsOrBuilder(); /** * * *
     * A list of access level resource names that allow resources to be
     * accessed by authenticated requester. It is part of Secure GCP processing
     * for the incoming request. An access level string has the format:
     * "//{api_service_name}/accessPolicies/{policy_id}/accessLevels/{short_name}"
     * Example:
     * "//accesscontextmanager.googleapis.com/accessPolicies/MY_POLICY_ID/accessLevels/MY_LEVEL"
     * 
* * repeated string access_levels = 5; * * @return A list containing the accessLevels. */ java.util.List getAccessLevelsList(); /** * * *
     * A list of access level resource names that allow resources to be
     * accessed by authenticated requester. It is part of Secure GCP processing
     * for the incoming request. An access level string has the format:
     * "//{api_service_name}/accessPolicies/{policy_id}/accessLevels/{short_name}"
     * Example:
     * "//accesscontextmanager.googleapis.com/accessPolicies/MY_POLICY_ID/accessLevels/MY_LEVEL"
     * 
* * repeated string access_levels = 5; * * @return The count of accessLevels. */ int getAccessLevelsCount(); /** * * *
     * A list of access level resource names that allow resources to be
     * accessed by authenticated requester. It is part of Secure GCP processing
     * for the incoming request. An access level string has the format:
     * "//{api_service_name}/accessPolicies/{policy_id}/accessLevels/{short_name}"
     * Example:
     * "//accesscontextmanager.googleapis.com/accessPolicies/MY_POLICY_ID/accessLevels/MY_LEVEL"
     * 
* * repeated string access_levels = 5; * * @param index The index of the element to return. * @return The accessLevels at the given index. */ java.lang.String getAccessLevels(int index); /** * * *
     * A list of access level resource names that allow resources to be
     * accessed by authenticated requester. It is part of Secure GCP processing
     * for the incoming request. An access level string has the format:
     * "//{api_service_name}/accessPolicies/{policy_id}/accessLevels/{short_name}"
     * Example:
     * "//accesscontextmanager.googleapis.com/accessPolicies/MY_POLICY_ID/accessLevels/MY_LEVEL"
     * 
* * repeated string access_levels = 5; * * @param index The index of the value to return. * @return The bytes of the accessLevels at the given index. */ com.alibaba.nacos.shaded.com.google.protobuf.ByteString getAccessLevelsBytes(int index); } /** * * *
   * This message defines request authentication attributes. Terminology is
   * based on the JSON Web Token (JWT) standard, but the terms also
   * correlate to concepts in other standards.
   * 
* * Protobuf type {@code google.rpc.context.AttributeContext.Auth} */ public static final class Auth extends com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.rpc.context.AttributeContext.Auth) AuthOrBuilder { private static final long serialVersionUID = 0L; // Use Auth.newBuilder() to construct. private Auth(com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Auth() { principal_ = ""; audiences_ = com.alibaba.nacos.shaded.com.google.protobuf.LazyStringArrayList.EMPTY; presenter_ = ""; accessLevels_ = com.alibaba.nacos.shaded.com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Auth(); } @java.lang.Override public final com.alibaba.nacos.shaded.com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.alibaba.nacos.shaded.com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContextProto .internal_static_google_rpc_context_AttributeContext_Auth_descriptor; } @java.lang.Override protected com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContextProto .internal_static_google_rpc_context_AttributeContext_Auth_fieldAccessorTable .ensureFieldAccessorsInitialized( com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Auth.class, com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Auth.Builder.class); } public static final int PRINCIPAL_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object principal_ = ""; /** * * *
     * The authenticated principal. Reflects the issuer (`iss`) and subject
     * (`sub`) claims within a JWT. The issuer and subject should be `/`
     * delimited, with `/` percent-encoded within the subject fragment. For
     * Google accounts, the principal format is:
     * "https://accounts.google.com/{id}"
     * 
* * string principal = 1; * * @return The principal. */ @java.lang.Override public java.lang.String getPrincipal() { java.lang.Object ref = principal_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.alibaba.nacos.shaded.com.google.protobuf.ByteString bs = (com.alibaba.nacos.shaded.com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); principal_ = s; return s; } } /** * * *
     * The authenticated principal. Reflects the issuer (`iss`) and subject
     * (`sub`) claims within a JWT. The issuer and subject should be `/`
     * delimited, with `/` percent-encoded within the subject fragment. For
     * Google accounts, the principal format is:
     * "https://accounts.google.com/{id}"
     * 
* * string principal = 1; * * @return The bytes for principal. */ @java.lang.Override public com.alibaba.nacos.shaded.com.google.protobuf.ByteString getPrincipalBytes() { java.lang.Object ref = principal_; if (ref instanceof java.lang.String) { com.alibaba.nacos.shaded.com.google.protobuf.ByteString b = com.alibaba.nacos.shaded.com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); principal_ = b; return b; } else { return (com.alibaba.nacos.shaded.com.google.protobuf.ByteString) ref; } } public static final int AUDIENCES_FIELD_NUMBER = 2; @SuppressWarnings("serial") private com.alibaba.nacos.shaded.com.google.protobuf.LazyStringList audiences_; /** * * *
     * The intended audience(s) for this authentication information. Reflects
     * the audience (`aud`) claim within a JWT. The audience
     * value(s) depends on the `issuer`, but typically include one or more of
     * the following pieces of information:
     * *  The services intended to receive the credential. For example,
     *    ["https://pubsub.googleapis.com/", "https://storage.googleapis.com/"].
     * *  A set of service-based scopes. For example,
     *    ["https://www.googleapis.com/auth/cloud-platform"].
     * *  The client id of an app, such as the Firebase project id for JWTs
     *    from Firebase Auth.
     * Consult the documentation for the credential issuer to determine the
     * information provided.
     * 
* * repeated string audiences = 2; * * @return A list containing the audiences. */ public com.alibaba.nacos.shaded.com.google.protobuf.ProtocolStringList getAudiencesList() { return audiences_; } /** * * *
     * The intended audience(s) for this authentication information. Reflects
     * the audience (`aud`) claim within a JWT. The audience
     * value(s) depends on the `issuer`, but typically include one or more of
     * the following pieces of information:
     * *  The services intended to receive the credential. For example,
     *    ["https://pubsub.googleapis.com/", "https://storage.googleapis.com/"].
     * *  A set of service-based scopes. For example,
     *    ["https://www.googleapis.com/auth/cloud-platform"].
     * *  The client id of an app, such as the Firebase project id for JWTs
     *    from Firebase Auth.
     * Consult the documentation for the credential issuer to determine the
     * information provided.
     * 
* * repeated string audiences = 2; * * @return The count of audiences. */ public int getAudiencesCount() { return audiences_.size(); } /** * * *
     * The intended audience(s) for this authentication information. Reflects
     * the audience (`aud`) claim within a JWT. The audience
     * value(s) depends on the `issuer`, but typically include one or more of
     * the following pieces of information:
     * *  The services intended to receive the credential. For example,
     *    ["https://pubsub.googleapis.com/", "https://storage.googleapis.com/"].
     * *  A set of service-based scopes. For example,
     *    ["https://www.googleapis.com/auth/cloud-platform"].
     * *  The client id of an app, such as the Firebase project id for JWTs
     *    from Firebase Auth.
     * Consult the documentation for the credential issuer to determine the
     * information provided.
     * 
* * repeated string audiences = 2; * * @param index The index of the element to return. * @return The audiences at the given index. */ public java.lang.String getAudiences(int index) { return audiences_.get(index); } /** * * *
     * The intended audience(s) for this authentication information. Reflects
     * the audience (`aud`) claim within a JWT. The audience
     * value(s) depends on the `issuer`, but typically include one or more of
     * the following pieces of information:
     * *  The services intended to receive the credential. For example,
     *    ["https://pubsub.googleapis.com/", "https://storage.googleapis.com/"].
     * *  A set of service-based scopes. For example,
     *    ["https://www.googleapis.com/auth/cloud-platform"].
     * *  The client id of an app, such as the Firebase project id for JWTs
     *    from Firebase Auth.
     * Consult the documentation for the credential issuer to determine the
     * information provided.
     * 
* * repeated string audiences = 2; * * @param index The index of the value to return. * @return The bytes of the audiences at the given index. */ public com.alibaba.nacos.shaded.com.google.protobuf.ByteString getAudiencesBytes(int index) { return audiences_.getByteString(index); } public static final int PRESENTER_FIELD_NUMBER = 3; @SuppressWarnings("serial") private volatile java.lang.Object presenter_ = ""; /** * * *
     * The authorized presenter of the credential. Reflects the optional
     * Authorized Presenter (`azp`) claim within a JWT or the
     * OAuth client id. For example, a Google Cloud Platform client id looks
     * as follows: "123456789012.apps.googleusercontent.com".
     * 
* * string presenter = 3; * * @return The presenter. */ @java.lang.Override public java.lang.String getPresenter() { java.lang.Object ref = presenter_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.alibaba.nacos.shaded.com.google.protobuf.ByteString bs = (com.alibaba.nacos.shaded.com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); presenter_ = s; return s; } } /** * * *
     * The authorized presenter of the credential. Reflects the optional
     * Authorized Presenter (`azp`) claim within a JWT or the
     * OAuth client id. For example, a Google Cloud Platform client id looks
     * as follows: "123456789012.apps.googleusercontent.com".
     * 
* * string presenter = 3; * * @return The bytes for presenter. */ @java.lang.Override public com.alibaba.nacos.shaded.com.google.protobuf.ByteString getPresenterBytes() { java.lang.Object ref = presenter_; if (ref instanceof java.lang.String) { com.alibaba.nacos.shaded.com.google.protobuf.ByteString b = com.alibaba.nacos.shaded.com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); presenter_ = b; return b; } else { return (com.alibaba.nacos.shaded.com.google.protobuf.ByteString) ref; } } public static final int CLAIMS_FIELD_NUMBER = 4; private com.alibaba.nacos.shaded.com.google.protobuf.Struct claims_; /** * * *
     * Structured claims presented with the credential. JWTs include
     * `{key: value}` pairs for standard and private claims. The following
     * is a subset of the standard required and optional claims that would
     * typically be presented for a Google-based JWT:
     *    {'iss': 'accounts.google.com',
     *     'sub': '113289723416554971153',
     *     'aud': ['123456789012', 'pubsub.googleapis.com'],
     *     'azp': '123456789012.apps.googleusercontent.com',
     *     'email': 'jsmith@example.com',
     *     'iat': 1353601026,
     *     'exp': 1353604926}
     * SAML assertions are similarly specified, but with an identity provider
     * dependent structure.
     * 
* * .google.protobuf.Struct claims = 4; * * @return Whether the claims field is set. */ @java.lang.Override public boolean hasClaims() { return claims_ != null; } /** * * *
     * Structured claims presented with the credential. JWTs include
     * `{key: value}` pairs for standard and private claims. The following
     * is a subset of the standard required and optional claims that would
     * typically be presented for a Google-based JWT:
     *    {'iss': 'accounts.google.com',
     *     'sub': '113289723416554971153',
     *     'aud': ['123456789012', 'pubsub.googleapis.com'],
     *     'azp': '123456789012.apps.googleusercontent.com',
     *     'email': 'jsmith@example.com',
     *     'iat': 1353601026,
     *     'exp': 1353604926}
     * SAML assertions are similarly specified, but with an identity provider
     * dependent structure.
     * 
* * .google.protobuf.Struct claims = 4; * * @return The claims. */ @java.lang.Override public com.alibaba.nacos.shaded.com.google.protobuf.Struct getClaims() { return claims_ == null ? com.alibaba.nacos.shaded.com.google.protobuf.Struct.getDefaultInstance() : claims_; } /** * * *
     * Structured claims presented with the credential. JWTs include
     * `{key: value}` pairs for standard and private claims. The following
     * is a subset of the standard required and optional claims that would
     * typically be presented for a Google-based JWT:
     *    {'iss': 'accounts.google.com',
     *     'sub': '113289723416554971153',
     *     'aud': ['123456789012', 'pubsub.googleapis.com'],
     *     'azp': '123456789012.apps.googleusercontent.com',
     *     'email': 'jsmith@example.com',
     *     'iat': 1353601026,
     *     'exp': 1353604926}
     * SAML assertions are similarly specified, but with an identity provider
     * dependent structure.
     * 
* * .google.protobuf.Struct claims = 4; */ @java.lang.Override public com.alibaba.nacos.shaded.com.google.protobuf.StructOrBuilder getClaimsOrBuilder() { return claims_ == null ? com.alibaba.nacos.shaded.com.google.protobuf.Struct.getDefaultInstance() : claims_; } public static final int ACCESS_LEVELS_FIELD_NUMBER = 5; @SuppressWarnings("serial") private com.alibaba.nacos.shaded.com.google.protobuf.LazyStringList accessLevels_; /** * * *
     * A list of access level resource names that allow resources to be
     * accessed by authenticated requester. It is part of Secure GCP processing
     * for the incoming request. An access level string has the format:
     * "//{api_service_name}/accessPolicies/{policy_id}/accessLevels/{short_name}"
     * Example:
     * "//accesscontextmanager.googleapis.com/accessPolicies/MY_POLICY_ID/accessLevels/MY_LEVEL"
     * 
* * repeated string access_levels = 5; * * @return A list containing the accessLevels. */ public com.alibaba.nacos.shaded.com.google.protobuf.ProtocolStringList getAccessLevelsList() { return accessLevels_; } /** * * *
     * A list of access level resource names that allow resources to be
     * accessed by authenticated requester. It is part of Secure GCP processing
     * for the incoming request. An access level string has the format:
     * "//{api_service_name}/accessPolicies/{policy_id}/accessLevels/{short_name}"
     * Example:
     * "//accesscontextmanager.googleapis.com/accessPolicies/MY_POLICY_ID/accessLevels/MY_LEVEL"
     * 
* * repeated string access_levels = 5; * * @return The count of accessLevels. */ public int getAccessLevelsCount() { return accessLevels_.size(); } /** * * *
     * A list of access level resource names that allow resources to be
     * accessed by authenticated requester. It is part of Secure GCP processing
     * for the incoming request. An access level string has the format:
     * "//{api_service_name}/accessPolicies/{policy_id}/accessLevels/{short_name}"
     * Example:
     * "//accesscontextmanager.googleapis.com/accessPolicies/MY_POLICY_ID/accessLevels/MY_LEVEL"
     * 
* * repeated string access_levels = 5; * * @param index The index of the element to return. * @return The accessLevels at the given index. */ public java.lang.String getAccessLevels(int index) { return accessLevels_.get(index); } /** * * *
     * A list of access level resource names that allow resources to be
     * accessed by authenticated requester. It is part of Secure GCP processing
     * for the incoming request. An access level string has the format:
     * "//{api_service_name}/accessPolicies/{policy_id}/accessLevels/{short_name}"
     * Example:
     * "//accesscontextmanager.googleapis.com/accessPolicies/MY_POLICY_ID/accessLevels/MY_LEVEL"
     * 
* * repeated string access_levels = 5; * * @param index The index of the value to return. * @return The bytes of the accessLevels at the given index. */ public com.alibaba.nacos.shaded.com.google.protobuf.ByteString getAccessLevelsBytes(int index) { return accessLevels_.getByteString(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.alibaba.nacos.shaded.com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.isStringEmpty(principal_)) { com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.writeString(output, 1, principal_); } for (int i = 0; i < audiences_.size(); i++) { com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.writeString(output, 2, audiences_.getRaw(i)); } if (!com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.isStringEmpty(presenter_)) { com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.writeString(output, 3, presenter_); } if (claims_ != null) { output.writeMessage(4, getClaims()); } for (int i = 0; i < accessLevels_.size(); i++) { com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.writeString(output, 5, accessLevels_.getRaw(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.isStringEmpty(principal_)) { size += com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.computeStringSize(1, principal_); } { int dataSize = 0; for (int i = 0; i < audiences_.size(); i++) { dataSize += computeStringSizeNoTag(audiences_.getRaw(i)); } size += dataSize; size += 1 * getAudiencesList().size(); } if (!com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.isStringEmpty(presenter_)) { size += com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.computeStringSize(3, presenter_); } if (claims_ != null) { size += com.alibaba.nacos.shaded.com.google.protobuf.CodedOutputStream.computeMessageSize(4, getClaims()); } { int dataSize = 0; for (int i = 0; i < accessLevels_.size(); i++) { dataSize += computeStringSizeNoTag(accessLevels_.getRaw(i)); } size += dataSize; size += 1 * getAccessLevelsList().size(); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Auth)) { return super.equals(obj); } com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Auth other = (com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Auth) obj; if (!getPrincipal().equals(other.getPrincipal())) return false; if (!getAudiencesList().equals(other.getAudiencesList())) return false; if (!getPresenter().equals(other.getPresenter())) return false; if (hasClaims() != other.hasClaims()) return false; if (hasClaims()) { if (!getClaims().equals(other.getClaims())) return false; } if (!getAccessLevelsList().equals(other.getAccessLevelsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + PRINCIPAL_FIELD_NUMBER; hash = (53 * hash) + getPrincipal().hashCode(); if (getAudiencesCount() > 0) { hash = (37 * hash) + AUDIENCES_FIELD_NUMBER; hash = (53 * hash) + getAudiencesList().hashCode(); } hash = (37 * hash) + PRESENTER_FIELD_NUMBER; hash = (53 * hash) + getPresenter().hashCode(); if (hasClaims()) { hash = (37 * hash) + CLAIMS_FIELD_NUMBER; hash = (53 * hash) + getClaims().hashCode(); } if (getAccessLevelsCount() > 0) { hash = (37 * hash) + ACCESS_LEVELS_FIELD_NUMBER; hash = (53 * hash) + getAccessLevelsList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Auth parseFrom(java.nio.ByteBuffer data) throws com.alibaba.nacos.shaded.com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Auth parseFrom( java.nio.ByteBuffer data, com.alibaba.nacos.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.alibaba.nacos.shaded.com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Auth parseFrom( com.alibaba.nacos.shaded.com.google.protobuf.ByteString data) throws com.alibaba.nacos.shaded.com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Auth parseFrom( com.alibaba.nacos.shaded.com.google.protobuf.ByteString data, com.alibaba.nacos.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.alibaba.nacos.shaded.com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Auth parseFrom(byte[] data) throws com.alibaba.nacos.shaded.com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Auth parseFrom( byte[] data, com.alibaba.nacos.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.alibaba.nacos.shaded.com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Auth parseFrom(java.io.InputStream input) throws java.io.IOException { return com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Auth parseFrom( java.io.InputStream input, com.alibaba.nacos.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } public static com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Auth parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Auth parseDelimitedFrom( java.io.InputStream input, com.alibaba.nacos.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Auth parseFrom( com.alibaba.nacos.shaded.com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Auth parseFrom( com.alibaba.nacos.shaded.com.google.protobuf.CodedInputStream input, com.alibaba.nacos.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Auth prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * * *
     * This message defines request authentication attributes. Terminology is
     * based on the JSON Web Token (JWT) standard, but the terms also
     * correlate to concepts in other standards.
     * 
* * Protobuf type {@code google.rpc.context.AttributeContext.Auth} */ public static final class Builder extends com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.rpc.context.AttributeContext.Auth) com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.AuthOrBuilder { public static final com.alibaba.nacos.shaded.com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContextProto .internal_static_google_rpc_context_AttributeContext_Auth_descriptor; } @java.lang.Override protected com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContextProto .internal_static_google_rpc_context_AttributeContext_Auth_fieldAccessorTable .ensureFieldAccessorsInitialized( com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Auth.class, com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Auth.Builder.class); } // Construct using com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Auth.newBuilder() private Builder() {} private Builder(com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; principal_ = ""; audiences_ = com.alibaba.nacos.shaded.com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); presenter_ = ""; claims_ = null; if (claimsBuilder_ != null) { claimsBuilder_.dispose(); claimsBuilder_ = null; } accessLevels_ = com.alibaba.nacos.shaded.com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000010); return this; } @java.lang.Override public com.alibaba.nacos.shaded.com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContextProto .internal_static_google_rpc_context_AttributeContext_Auth_descriptor; } @java.lang.Override public com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Auth getDefaultInstanceForType() { return com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Auth.getDefaultInstance(); } @java.lang.Override public com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Auth build() { com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Auth result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Auth buildPartial() { com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Auth result = new com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Auth(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Auth result) { if (((bitField0_ & 0x00000002) != 0)) { audiences_ = audiences_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000002); } result.audiences_ = audiences_; if (((bitField0_ & 0x00000010) != 0)) { accessLevels_ = accessLevels_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000010); } result.accessLevels_ = accessLevels_; } private void buildPartial0(com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Auth result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.principal_ = principal_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.presenter_ = presenter_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.claims_ = claimsBuilder_ == null ? claims_ : claimsBuilder_.build(); } } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.alibaba.nacos.shaded.com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField(com.alibaba.nacos.shaded.com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.alibaba.nacos.shaded.com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.alibaba.nacos.shaded.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.alibaba.nacos.shaded.com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.alibaba.nacos.shaded.com.google.protobuf.Message other) { if (other instanceof com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Auth) { return mergeFrom((com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Auth) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Auth other) { if (other == com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Auth.getDefaultInstance()) return this; if (!other.getPrincipal().isEmpty()) { principal_ = other.principal_; bitField0_ |= 0x00000001; onChanged(); } if (!other.audiences_.isEmpty()) { if (audiences_.isEmpty()) { audiences_ = other.audiences_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureAudiencesIsMutable(); audiences_.addAll(other.audiences_); } onChanged(); } if (!other.getPresenter().isEmpty()) { presenter_ = other.presenter_; bitField0_ |= 0x00000004; onChanged(); } if (other.hasClaims()) { mergeClaims(other.getClaims()); } if (!other.accessLevels_.isEmpty()) { if (accessLevels_.isEmpty()) { accessLevels_ = other.accessLevels_; bitField0_ = (bitField0_ & ~0x00000010); } else { ensureAccessLevelsIsMutable(); accessLevels_.addAll(other.accessLevels_); } onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.alibaba.nacos.shaded.com.google.protobuf.CodedInputStream input, com.alibaba.nacos.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { principal_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { java.lang.String s = input.readStringRequireUtf8(); ensureAudiencesIsMutable(); audiences_.add(s); break; } // case 18 case 26: { presenter_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; } // case 26 case 34: { input.readMessage(getClaimsFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000008; break; } // case 34 case 42: { java.lang.String s = input.readStringRequireUtf8(); ensureAccessLevelsIsMutable(); accessLevels_.add(s); break; } // case 42 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.alibaba.nacos.shaded.com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object principal_ = ""; /** * * *
       * The authenticated principal. Reflects the issuer (`iss`) and subject
       * (`sub`) claims within a JWT. The issuer and subject should be `/`
       * delimited, with `/` percent-encoded within the subject fragment. For
       * Google accounts, the principal format is:
       * "https://accounts.google.com/{id}"
       * 
* * string principal = 1; * * @return The principal. */ public java.lang.String getPrincipal() { java.lang.Object ref = principal_; if (!(ref instanceof java.lang.String)) { com.alibaba.nacos.shaded.com.google.protobuf.ByteString bs = (com.alibaba.nacos.shaded.com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); principal_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
       * The authenticated principal. Reflects the issuer (`iss`) and subject
       * (`sub`) claims within a JWT. The issuer and subject should be `/`
       * delimited, with `/` percent-encoded within the subject fragment. For
       * Google accounts, the principal format is:
       * "https://accounts.google.com/{id}"
       * 
* * string principal = 1; * * @return The bytes for principal. */ public com.alibaba.nacos.shaded.com.google.protobuf.ByteString getPrincipalBytes() { java.lang.Object ref = principal_; if (ref instanceof String) { com.alibaba.nacos.shaded.com.google.protobuf.ByteString b = com.alibaba.nacos.shaded.com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); principal_ = b; return b; } else { return (com.alibaba.nacos.shaded.com.google.protobuf.ByteString) ref; } } /** * * *
       * The authenticated principal. Reflects the issuer (`iss`) and subject
       * (`sub`) claims within a JWT. The issuer and subject should be `/`
       * delimited, with `/` percent-encoded within the subject fragment. For
       * Google accounts, the principal format is:
       * "https://accounts.google.com/{id}"
       * 
* * string principal = 1; * * @param value The principal to set. * @return This builder for chaining. */ public Builder setPrincipal(java.lang.String value) { if (value == null) { throw new NullPointerException(); } principal_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
       * The authenticated principal. Reflects the issuer (`iss`) and subject
       * (`sub`) claims within a JWT. The issuer and subject should be `/`
       * delimited, with `/` percent-encoded within the subject fragment. For
       * Google accounts, the principal format is:
       * "https://accounts.google.com/{id}"
       * 
* * string principal = 1; * * @return This builder for chaining. */ public Builder clearPrincipal() { principal_ = getDefaultInstance().getPrincipal(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * * *
       * The authenticated principal. Reflects the issuer (`iss`) and subject
       * (`sub`) claims within a JWT. The issuer and subject should be `/`
       * delimited, with `/` percent-encoded within the subject fragment. For
       * Google accounts, the principal format is:
       * "https://accounts.google.com/{id}"
       * 
* * string principal = 1; * * @param value The bytes for principal to set. * @return This builder for chaining. */ public Builder setPrincipalBytes(com.alibaba.nacos.shaded.com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); principal_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private com.alibaba.nacos.shaded.com.google.protobuf.LazyStringList audiences_ = com.alibaba.nacos.shaded.com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureAudiencesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { audiences_ = new com.alibaba.nacos.shaded.com.google.protobuf.LazyStringArrayList(audiences_); bitField0_ |= 0x00000002; } } /** * * *
       * The intended audience(s) for this authentication information. Reflects
       * the audience (`aud`) claim within a JWT. The audience
       * value(s) depends on the `issuer`, but typically include one or more of
       * the following pieces of information:
       * *  The services intended to receive the credential. For example,
       *    ["https://pubsub.googleapis.com/", "https://storage.googleapis.com/"].
       * *  A set of service-based scopes. For example,
       *    ["https://www.googleapis.com/auth/cloud-platform"].
       * *  The client id of an app, such as the Firebase project id for JWTs
       *    from Firebase Auth.
       * Consult the documentation for the credential issuer to determine the
       * information provided.
       * 
* * repeated string audiences = 2; * * @return A list containing the audiences. */ public com.alibaba.nacos.shaded.com.google.protobuf.ProtocolStringList getAudiencesList() { return audiences_.getUnmodifiableView(); } /** * * *
       * The intended audience(s) for this authentication information. Reflects
       * the audience (`aud`) claim within a JWT. The audience
       * value(s) depends on the `issuer`, but typically include one or more of
       * the following pieces of information:
       * *  The services intended to receive the credential. For example,
       *    ["https://pubsub.googleapis.com/", "https://storage.googleapis.com/"].
       * *  A set of service-based scopes. For example,
       *    ["https://www.googleapis.com/auth/cloud-platform"].
       * *  The client id of an app, such as the Firebase project id for JWTs
       *    from Firebase Auth.
       * Consult the documentation for the credential issuer to determine the
       * information provided.
       * 
* * repeated string audiences = 2; * * @return The count of audiences. */ public int getAudiencesCount() { return audiences_.size(); } /** * * *
       * The intended audience(s) for this authentication information. Reflects
       * the audience (`aud`) claim within a JWT. The audience
       * value(s) depends on the `issuer`, but typically include one or more of
       * the following pieces of information:
       * *  The services intended to receive the credential. For example,
       *    ["https://pubsub.googleapis.com/", "https://storage.googleapis.com/"].
       * *  A set of service-based scopes. For example,
       *    ["https://www.googleapis.com/auth/cloud-platform"].
       * *  The client id of an app, such as the Firebase project id for JWTs
       *    from Firebase Auth.
       * Consult the documentation for the credential issuer to determine the
       * information provided.
       * 
* * repeated string audiences = 2; * * @param index The index of the element to return. * @return The audiences at the given index. */ public java.lang.String getAudiences(int index) { return audiences_.get(index); } /** * * *
       * The intended audience(s) for this authentication information. Reflects
       * the audience (`aud`) claim within a JWT. The audience
       * value(s) depends on the `issuer`, but typically include one or more of
       * the following pieces of information:
       * *  The services intended to receive the credential. For example,
       *    ["https://pubsub.googleapis.com/", "https://storage.googleapis.com/"].
       * *  A set of service-based scopes. For example,
       *    ["https://www.googleapis.com/auth/cloud-platform"].
       * *  The client id of an app, such as the Firebase project id for JWTs
       *    from Firebase Auth.
       * Consult the documentation for the credential issuer to determine the
       * information provided.
       * 
* * repeated string audiences = 2; * * @param index The index of the value to return. * @return The bytes of the audiences at the given index. */ public com.alibaba.nacos.shaded.com.google.protobuf.ByteString getAudiencesBytes(int index) { return audiences_.getByteString(index); } /** * * *
       * The intended audience(s) for this authentication information. Reflects
       * the audience (`aud`) claim within a JWT. The audience
       * value(s) depends on the `issuer`, but typically include one or more of
       * the following pieces of information:
       * *  The services intended to receive the credential. For example,
       *    ["https://pubsub.googleapis.com/", "https://storage.googleapis.com/"].
       * *  A set of service-based scopes. For example,
       *    ["https://www.googleapis.com/auth/cloud-platform"].
       * *  The client id of an app, such as the Firebase project id for JWTs
       *    from Firebase Auth.
       * Consult the documentation for the credential issuer to determine the
       * information provided.
       * 
* * repeated string audiences = 2; * * @param index The index to set the value at. * @param value The audiences to set. * @return This builder for chaining. */ public Builder setAudiences(int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureAudiencesIsMutable(); audiences_.set(index, value); onChanged(); return this; } /** * * *
       * The intended audience(s) for this authentication information. Reflects
       * the audience (`aud`) claim within a JWT. The audience
       * value(s) depends on the `issuer`, but typically include one or more of
       * the following pieces of information:
       * *  The services intended to receive the credential. For example,
       *    ["https://pubsub.googleapis.com/", "https://storage.googleapis.com/"].
       * *  A set of service-based scopes. For example,
       *    ["https://www.googleapis.com/auth/cloud-platform"].
       * *  The client id of an app, such as the Firebase project id for JWTs
       *    from Firebase Auth.
       * Consult the documentation for the credential issuer to determine the
       * information provided.
       * 
* * repeated string audiences = 2; * * @param value The audiences to add. * @return This builder for chaining. */ public Builder addAudiences(java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureAudiencesIsMutable(); audiences_.add(value); onChanged(); return this; } /** * * *
       * The intended audience(s) for this authentication information. Reflects
       * the audience (`aud`) claim within a JWT. The audience
       * value(s) depends on the `issuer`, but typically include one or more of
       * the following pieces of information:
       * *  The services intended to receive the credential. For example,
       *    ["https://pubsub.googleapis.com/", "https://storage.googleapis.com/"].
       * *  A set of service-based scopes. For example,
       *    ["https://www.googleapis.com/auth/cloud-platform"].
       * *  The client id of an app, such as the Firebase project id for JWTs
       *    from Firebase Auth.
       * Consult the documentation for the credential issuer to determine the
       * information provided.
       * 
* * repeated string audiences = 2; * * @param values The audiences to add. * @return This builder for chaining. */ public Builder addAllAudiences(java.lang.Iterable values) { ensureAudiencesIsMutable(); com.alibaba.nacos.shaded.com.google.protobuf.AbstractMessageLite.Builder.addAll(values, audiences_); onChanged(); return this; } /** * * *
       * The intended audience(s) for this authentication information. Reflects
       * the audience (`aud`) claim within a JWT. The audience
       * value(s) depends on the `issuer`, but typically include one or more of
       * the following pieces of information:
       * *  The services intended to receive the credential. For example,
       *    ["https://pubsub.googleapis.com/", "https://storage.googleapis.com/"].
       * *  A set of service-based scopes. For example,
       *    ["https://www.googleapis.com/auth/cloud-platform"].
       * *  The client id of an app, such as the Firebase project id for JWTs
       *    from Firebase Auth.
       * Consult the documentation for the credential issuer to determine the
       * information provided.
       * 
* * repeated string audiences = 2; * * @return This builder for chaining. */ public Builder clearAudiences() { audiences_ = com.alibaba.nacos.shaded.com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * * *
       * The intended audience(s) for this authentication information. Reflects
       * the audience (`aud`) claim within a JWT. The audience
       * value(s) depends on the `issuer`, but typically include one or more of
       * the following pieces of information:
       * *  The services intended to receive the credential. For example,
       *    ["https://pubsub.googleapis.com/", "https://storage.googleapis.com/"].
       * *  A set of service-based scopes. For example,
       *    ["https://www.googleapis.com/auth/cloud-platform"].
       * *  The client id of an app, such as the Firebase project id for JWTs
       *    from Firebase Auth.
       * Consult the documentation for the credential issuer to determine the
       * information provided.
       * 
* * repeated string audiences = 2; * * @param value The bytes of the audiences to add. * @return This builder for chaining. */ public Builder addAudiencesBytes(com.alibaba.nacos.shaded.com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureAudiencesIsMutable(); audiences_.add(value); onChanged(); return this; } private java.lang.Object presenter_ = ""; /** * * *
       * The authorized presenter of the credential. Reflects the optional
       * Authorized Presenter (`azp`) claim within a JWT or the
       * OAuth client id. For example, a Google Cloud Platform client id looks
       * as follows: "123456789012.apps.googleusercontent.com".
       * 
* * string presenter = 3; * * @return The presenter. */ public java.lang.String getPresenter() { java.lang.Object ref = presenter_; if (!(ref instanceof java.lang.String)) { com.alibaba.nacos.shaded.com.google.protobuf.ByteString bs = (com.alibaba.nacos.shaded.com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); presenter_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
       * The authorized presenter of the credential. Reflects the optional
       * Authorized Presenter (`azp`) claim within a JWT or the
       * OAuth client id. For example, a Google Cloud Platform client id looks
       * as follows: "123456789012.apps.googleusercontent.com".
       * 
* * string presenter = 3; * * @return The bytes for presenter. */ public com.alibaba.nacos.shaded.com.google.protobuf.ByteString getPresenterBytes() { java.lang.Object ref = presenter_; if (ref instanceof String) { com.alibaba.nacos.shaded.com.google.protobuf.ByteString b = com.alibaba.nacos.shaded.com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); presenter_ = b; return b; } else { return (com.alibaba.nacos.shaded.com.google.protobuf.ByteString) ref; } } /** * * *
       * The authorized presenter of the credential. Reflects the optional
       * Authorized Presenter (`azp`) claim within a JWT or the
       * OAuth client id. For example, a Google Cloud Platform client id looks
       * as follows: "123456789012.apps.googleusercontent.com".
       * 
* * string presenter = 3; * * @param value The presenter to set. * @return This builder for chaining. */ public Builder setPresenter(java.lang.String value) { if (value == null) { throw new NullPointerException(); } presenter_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * * *
       * The authorized presenter of the credential. Reflects the optional
       * Authorized Presenter (`azp`) claim within a JWT or the
       * OAuth client id. For example, a Google Cloud Platform client id looks
       * as follows: "123456789012.apps.googleusercontent.com".
       * 
* * string presenter = 3; * * @return This builder for chaining. */ public Builder clearPresenter() { presenter_ = getDefaultInstance().getPresenter(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** * * *
       * The authorized presenter of the credential. Reflects the optional
       * Authorized Presenter (`azp`) claim within a JWT or the
       * OAuth client id. For example, a Google Cloud Platform client id looks
       * as follows: "123456789012.apps.googleusercontent.com".
       * 
* * string presenter = 3; * * @param value The bytes for presenter to set. * @return This builder for chaining. */ public Builder setPresenterBytes(com.alibaba.nacos.shaded.com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); presenter_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } private com.alibaba.nacos.shaded.com.google.protobuf.Struct claims_; private com.alibaba.nacos.shaded.com.google.protobuf.SingleFieldBuilderV3< com.alibaba.nacos.shaded.com.google.protobuf.Struct, com.alibaba.nacos.shaded.com.google.protobuf.Struct.Builder, com.alibaba.nacos.shaded.com.google.protobuf.StructOrBuilder> claimsBuilder_; /** * * *
       * Structured claims presented with the credential. JWTs include
       * `{key: value}` pairs for standard and private claims. The following
       * is a subset of the standard required and optional claims that would
       * typically be presented for a Google-based JWT:
       *    {'iss': 'accounts.google.com',
       *     'sub': '113289723416554971153',
       *     'aud': ['123456789012', 'pubsub.googleapis.com'],
       *     'azp': '123456789012.apps.googleusercontent.com',
       *     'email': 'jsmith@example.com',
       *     'iat': 1353601026,
       *     'exp': 1353604926}
       * SAML assertions are similarly specified, but with an identity provider
       * dependent structure.
       * 
* * .google.protobuf.Struct claims = 4; * * @return Whether the claims field is set. */ public boolean hasClaims() { return ((bitField0_ & 0x00000008) != 0); } /** * * *
       * Structured claims presented with the credential. JWTs include
       * `{key: value}` pairs for standard and private claims. The following
       * is a subset of the standard required and optional claims that would
       * typically be presented for a Google-based JWT:
       *    {'iss': 'accounts.google.com',
       *     'sub': '113289723416554971153',
       *     'aud': ['123456789012', 'pubsub.googleapis.com'],
       *     'azp': '123456789012.apps.googleusercontent.com',
       *     'email': 'jsmith@example.com',
       *     'iat': 1353601026,
       *     'exp': 1353604926}
       * SAML assertions are similarly specified, but with an identity provider
       * dependent structure.
       * 
* * .google.protobuf.Struct claims = 4; * * @return The claims. */ public com.alibaba.nacos.shaded.com.google.protobuf.Struct getClaims() { if (claimsBuilder_ == null) { return claims_ == null ? com.alibaba.nacos.shaded.com.google.protobuf.Struct.getDefaultInstance() : claims_; } else { return claimsBuilder_.getMessage(); } } /** * * *
       * Structured claims presented with the credential. JWTs include
       * `{key: value}` pairs for standard and private claims. The following
       * is a subset of the standard required and optional claims that would
       * typically be presented for a Google-based JWT:
       *    {'iss': 'accounts.google.com',
       *     'sub': '113289723416554971153',
       *     'aud': ['123456789012', 'pubsub.googleapis.com'],
       *     'azp': '123456789012.apps.googleusercontent.com',
       *     'email': 'jsmith@example.com',
       *     'iat': 1353601026,
       *     'exp': 1353604926}
       * SAML assertions are similarly specified, but with an identity provider
       * dependent structure.
       * 
* * .google.protobuf.Struct claims = 4; */ public Builder setClaims(com.alibaba.nacos.shaded.com.google.protobuf.Struct value) { if (claimsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } claims_ = value; } else { claimsBuilder_.setMessage(value); } bitField0_ |= 0x00000008; onChanged(); return this; } /** * * *
       * Structured claims presented with the credential. JWTs include
       * `{key: value}` pairs for standard and private claims. The following
       * is a subset of the standard required and optional claims that would
       * typically be presented for a Google-based JWT:
       *    {'iss': 'accounts.google.com',
       *     'sub': '113289723416554971153',
       *     'aud': ['123456789012', 'pubsub.googleapis.com'],
       *     'azp': '123456789012.apps.googleusercontent.com',
       *     'email': 'jsmith@example.com',
       *     'iat': 1353601026,
       *     'exp': 1353604926}
       * SAML assertions are similarly specified, but with an identity provider
       * dependent structure.
       * 
* * .google.protobuf.Struct claims = 4; */ public Builder setClaims(com.alibaba.nacos.shaded.com.google.protobuf.Struct.Builder builderForValue) { if (claimsBuilder_ == null) { claims_ = builderForValue.build(); } else { claimsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; onChanged(); return this; } /** * * *
       * Structured claims presented with the credential. JWTs include
       * `{key: value}` pairs for standard and private claims. The following
       * is a subset of the standard required and optional claims that would
       * typically be presented for a Google-based JWT:
       *    {'iss': 'accounts.google.com',
       *     'sub': '113289723416554971153',
       *     'aud': ['123456789012', 'pubsub.googleapis.com'],
       *     'azp': '123456789012.apps.googleusercontent.com',
       *     'email': 'jsmith@example.com',
       *     'iat': 1353601026,
       *     'exp': 1353604926}
       * SAML assertions are similarly specified, but with an identity provider
       * dependent structure.
       * 
* * .google.protobuf.Struct claims = 4; */ public Builder mergeClaims(com.alibaba.nacos.shaded.com.google.protobuf.Struct value) { if (claimsBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0) && claims_ != null && claims_ != com.alibaba.nacos.shaded.com.google.protobuf.Struct.getDefaultInstance()) { getClaimsBuilder().mergeFrom(value); } else { claims_ = value; } } else { claimsBuilder_.mergeFrom(value); } bitField0_ |= 0x00000008; onChanged(); return this; } /** * * *
       * Structured claims presented with the credential. JWTs include
       * `{key: value}` pairs for standard and private claims. The following
       * is a subset of the standard required and optional claims that would
       * typically be presented for a Google-based JWT:
       *    {'iss': 'accounts.google.com',
       *     'sub': '113289723416554971153',
       *     'aud': ['123456789012', 'pubsub.googleapis.com'],
       *     'azp': '123456789012.apps.googleusercontent.com',
       *     'email': 'jsmith@example.com',
       *     'iat': 1353601026,
       *     'exp': 1353604926}
       * SAML assertions are similarly specified, but with an identity provider
       * dependent structure.
       * 
* * .google.protobuf.Struct claims = 4; */ public Builder clearClaims() { bitField0_ = (bitField0_ & ~0x00000008); claims_ = null; if (claimsBuilder_ != null) { claimsBuilder_.dispose(); claimsBuilder_ = null; } onChanged(); return this; } /** * * *
       * Structured claims presented with the credential. JWTs include
       * `{key: value}` pairs for standard and private claims. The following
       * is a subset of the standard required and optional claims that would
       * typically be presented for a Google-based JWT:
       *    {'iss': 'accounts.google.com',
       *     'sub': '113289723416554971153',
       *     'aud': ['123456789012', 'pubsub.googleapis.com'],
       *     'azp': '123456789012.apps.googleusercontent.com',
       *     'email': 'jsmith@example.com',
       *     'iat': 1353601026,
       *     'exp': 1353604926}
       * SAML assertions are similarly specified, but with an identity provider
       * dependent structure.
       * 
* * .google.protobuf.Struct claims = 4; */ public com.alibaba.nacos.shaded.com.google.protobuf.Struct.Builder getClaimsBuilder() { bitField0_ |= 0x00000008; onChanged(); return getClaimsFieldBuilder().getBuilder(); } /** * * *
       * Structured claims presented with the credential. JWTs include
       * `{key: value}` pairs for standard and private claims. The following
       * is a subset of the standard required and optional claims that would
       * typically be presented for a Google-based JWT:
       *    {'iss': 'accounts.google.com',
       *     'sub': '113289723416554971153',
       *     'aud': ['123456789012', 'pubsub.googleapis.com'],
       *     'azp': '123456789012.apps.googleusercontent.com',
       *     'email': 'jsmith@example.com',
       *     'iat': 1353601026,
       *     'exp': 1353604926}
       * SAML assertions are similarly specified, but with an identity provider
       * dependent structure.
       * 
* * .google.protobuf.Struct claims = 4; */ public com.alibaba.nacos.shaded.com.google.protobuf.StructOrBuilder getClaimsOrBuilder() { if (claimsBuilder_ != null) { return claimsBuilder_.getMessageOrBuilder(); } else { return claims_ == null ? com.alibaba.nacos.shaded.com.google.protobuf.Struct.getDefaultInstance() : claims_; } } /** * * *
       * Structured claims presented with the credential. JWTs include
       * `{key: value}` pairs for standard and private claims. The following
       * is a subset of the standard required and optional claims that would
       * typically be presented for a Google-based JWT:
       *    {'iss': 'accounts.google.com',
       *     'sub': '113289723416554971153',
       *     'aud': ['123456789012', 'pubsub.googleapis.com'],
       *     'azp': '123456789012.apps.googleusercontent.com',
       *     'email': 'jsmith@example.com',
       *     'iat': 1353601026,
       *     'exp': 1353604926}
       * SAML assertions are similarly specified, but with an identity provider
       * dependent structure.
       * 
* * .google.protobuf.Struct claims = 4; */ private com.alibaba.nacos.shaded.com.google.protobuf.SingleFieldBuilderV3< com.alibaba.nacos.shaded.com.google.protobuf.Struct, com.alibaba.nacos.shaded.com.google.protobuf.Struct.Builder, com.alibaba.nacos.shaded.com.google.protobuf.StructOrBuilder> getClaimsFieldBuilder() { if (claimsBuilder_ == null) { claimsBuilder_ = new com.alibaba.nacos.shaded.com.google.protobuf.SingleFieldBuilderV3< com.alibaba.nacos.shaded.com.google.protobuf.Struct, com.alibaba.nacos.shaded.com.google.protobuf.Struct.Builder, com.alibaba.nacos.shaded.com.google.protobuf.StructOrBuilder>( getClaims(), getParentForChildren(), isClean()); claims_ = null; } return claimsBuilder_; } private com.alibaba.nacos.shaded.com.google.protobuf.LazyStringList accessLevels_ = com.alibaba.nacos.shaded.com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureAccessLevelsIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { accessLevels_ = new com.alibaba.nacos.shaded.com.google.protobuf.LazyStringArrayList(accessLevels_); bitField0_ |= 0x00000010; } } /** * * *
       * A list of access level resource names that allow resources to be
       * accessed by authenticated requester. It is part of Secure GCP processing
       * for the incoming request. An access level string has the format:
       * "//{api_service_name}/accessPolicies/{policy_id}/accessLevels/{short_name}"
       * Example:
       * "//accesscontextmanager.googleapis.com/accessPolicies/MY_POLICY_ID/accessLevels/MY_LEVEL"
       * 
* * repeated string access_levels = 5; * * @return A list containing the accessLevels. */ public com.alibaba.nacos.shaded.com.google.protobuf.ProtocolStringList getAccessLevelsList() { return accessLevels_.getUnmodifiableView(); } /** * * *
       * A list of access level resource names that allow resources to be
       * accessed by authenticated requester. It is part of Secure GCP processing
       * for the incoming request. An access level string has the format:
       * "//{api_service_name}/accessPolicies/{policy_id}/accessLevels/{short_name}"
       * Example:
       * "//accesscontextmanager.googleapis.com/accessPolicies/MY_POLICY_ID/accessLevels/MY_LEVEL"
       * 
* * repeated string access_levels = 5; * * @return The count of accessLevels. */ public int getAccessLevelsCount() { return accessLevels_.size(); } /** * * *
       * A list of access level resource names that allow resources to be
       * accessed by authenticated requester. It is part of Secure GCP processing
       * for the incoming request. An access level string has the format:
       * "//{api_service_name}/accessPolicies/{policy_id}/accessLevels/{short_name}"
       * Example:
       * "//accesscontextmanager.googleapis.com/accessPolicies/MY_POLICY_ID/accessLevels/MY_LEVEL"
       * 
* * repeated string access_levels = 5; * * @param index The index of the element to return. * @return The accessLevels at the given index. */ public java.lang.String getAccessLevels(int index) { return accessLevels_.get(index); } /** * * *
       * A list of access level resource names that allow resources to be
       * accessed by authenticated requester. It is part of Secure GCP processing
       * for the incoming request. An access level string has the format:
       * "//{api_service_name}/accessPolicies/{policy_id}/accessLevels/{short_name}"
       * Example:
       * "//accesscontextmanager.googleapis.com/accessPolicies/MY_POLICY_ID/accessLevels/MY_LEVEL"
       * 
* * repeated string access_levels = 5; * * @param index The index of the value to return. * @return The bytes of the accessLevels at the given index. */ public com.alibaba.nacos.shaded.com.google.protobuf.ByteString getAccessLevelsBytes(int index) { return accessLevels_.getByteString(index); } /** * * *
       * A list of access level resource names that allow resources to be
       * accessed by authenticated requester. It is part of Secure GCP processing
       * for the incoming request. An access level string has the format:
       * "//{api_service_name}/accessPolicies/{policy_id}/accessLevels/{short_name}"
       * Example:
       * "//accesscontextmanager.googleapis.com/accessPolicies/MY_POLICY_ID/accessLevels/MY_LEVEL"
       * 
* * repeated string access_levels = 5; * * @param index The index to set the value at. * @param value The accessLevels to set. * @return This builder for chaining. */ public Builder setAccessLevels(int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureAccessLevelsIsMutable(); accessLevels_.set(index, value); onChanged(); return this; } /** * * *
       * A list of access level resource names that allow resources to be
       * accessed by authenticated requester. It is part of Secure GCP processing
       * for the incoming request. An access level string has the format:
       * "//{api_service_name}/accessPolicies/{policy_id}/accessLevels/{short_name}"
       * Example:
       * "//accesscontextmanager.googleapis.com/accessPolicies/MY_POLICY_ID/accessLevels/MY_LEVEL"
       * 
* * repeated string access_levels = 5; * * @param value The accessLevels to add. * @return This builder for chaining. */ public Builder addAccessLevels(java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureAccessLevelsIsMutable(); accessLevels_.add(value); onChanged(); return this; } /** * * *
       * A list of access level resource names that allow resources to be
       * accessed by authenticated requester. It is part of Secure GCP processing
       * for the incoming request. An access level string has the format:
       * "//{api_service_name}/accessPolicies/{policy_id}/accessLevels/{short_name}"
       * Example:
       * "//accesscontextmanager.googleapis.com/accessPolicies/MY_POLICY_ID/accessLevels/MY_LEVEL"
       * 
* * repeated string access_levels = 5; * * @param values The accessLevels to add. * @return This builder for chaining. */ public Builder addAllAccessLevels(java.lang.Iterable values) { ensureAccessLevelsIsMutable(); com.alibaba.nacos.shaded.com.google.protobuf.AbstractMessageLite.Builder.addAll(values, accessLevels_); onChanged(); return this; } /** * * *
       * A list of access level resource names that allow resources to be
       * accessed by authenticated requester. It is part of Secure GCP processing
       * for the incoming request. An access level string has the format:
       * "//{api_service_name}/accessPolicies/{policy_id}/accessLevels/{short_name}"
       * Example:
       * "//accesscontextmanager.googleapis.com/accessPolicies/MY_POLICY_ID/accessLevels/MY_LEVEL"
       * 
* * repeated string access_levels = 5; * * @return This builder for chaining. */ public Builder clearAccessLevels() { accessLevels_ = com.alibaba.nacos.shaded.com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } /** * * *
       * A list of access level resource names that allow resources to be
       * accessed by authenticated requester. It is part of Secure GCP processing
       * for the incoming request. An access level string has the format:
       * "//{api_service_name}/accessPolicies/{policy_id}/accessLevels/{short_name}"
       * Example:
       * "//accesscontextmanager.googleapis.com/accessPolicies/MY_POLICY_ID/accessLevels/MY_LEVEL"
       * 
* * repeated string access_levels = 5; * * @param value The bytes of the accessLevels to add. * @return This builder for chaining. */ public Builder addAccessLevelsBytes(com.alibaba.nacos.shaded.com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureAccessLevelsIsMutable(); accessLevels_.add(value); onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.alibaba.nacos.shaded.com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.alibaba.nacos.shaded.com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.rpc.context.AttributeContext.Auth) } // @@protoc_insertion_point(class_scope:google.rpc.context.AttributeContext.Auth) private static final com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Auth DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Auth(); } public static com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Auth getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.alibaba.nacos.shaded.com.google.protobuf.Parser PARSER = new com.alibaba.nacos.shaded.com.google.protobuf.AbstractParser() { @java.lang.Override public Auth parsePartialFrom( com.alibaba.nacos.shaded.com.google.protobuf.CodedInputStream input, com.alibaba.nacos.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.alibaba.nacos.shaded.com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.alibaba.nacos.shaded.com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.alibaba.nacos.shaded.com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException() .setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.alibaba.nacos.shaded.com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.alibaba.nacos.shaded.com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.alibaba.nacos.shaded.com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Auth getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.rpc.context.AttributeContext.Request) com.alibaba.nacos.shaded.com.google.protobuf.MessageOrBuilder { /** * * *
     * The unique ID for a request, which can be propagated to downstream
     * systems. The ID should have low probability of collision
     * within a single day for a specific service.
     * 
* * string id = 1; * * @return The id. */ java.lang.String getId(); /** * * *
     * The unique ID for a request, which can be propagated to downstream
     * systems. The ID should have low probability of collision
     * within a single day for a specific service.
     * 
* * string id = 1; * * @return The bytes for id. */ com.alibaba.nacos.shaded.com.google.protobuf.ByteString getIdBytes(); /** * * *
     * The HTTP request method, such as `GET`, `POST`.
     * 
* * string method = 2; * * @return The method. */ java.lang.String getMethod(); /** * * *
     * The HTTP request method, such as `GET`, `POST`.
     * 
* * string method = 2; * * @return The bytes for method. */ com.alibaba.nacos.shaded.com.google.protobuf.ByteString getMethodBytes(); /** * * *
     * The HTTP request headers. If multiple headers share the same key, they
     * must be merged according to the HTTP spec. All header keys must be
     * lowercased, because HTTP header keys are case-insensitive.
     * 
* * map<string, string> headers = 3; */ int getHeadersCount(); /** * * *
     * The HTTP request headers. If multiple headers share the same key, they
     * must be merged according to the HTTP spec. All header keys must be
     * lowercased, because HTTP header keys are case-insensitive.
     * 
* * map<string, string> headers = 3; */ boolean containsHeaders(java.lang.String key); /** Use {@link #getHeadersMap()} instead. */ @java.lang.Deprecated java.util.Map getHeaders(); /** * * *
     * The HTTP request headers. If multiple headers share the same key, they
     * must be merged according to the HTTP spec. All header keys must be
     * lowercased, because HTTP header keys are case-insensitive.
     * 
* * map<string, string> headers = 3; */ java.util.Map getHeadersMap(); /** * * *
     * The HTTP request headers. If multiple headers share the same key, they
     * must be merged according to the HTTP spec. All header keys must be
     * lowercased, because HTTP header keys are case-insensitive.
     * 
* * map<string, string> headers = 3; */ /* nullable */ java.lang.String getHeadersOrDefault( java.lang.String key, /* nullable */ java.lang.String defaultValue); /** * * *
     * The HTTP request headers. If multiple headers share the same key, they
     * must be merged according to the HTTP spec. All header keys must be
     * lowercased, because HTTP header keys are case-insensitive.
     * 
* * map<string, string> headers = 3; */ java.lang.String getHeadersOrThrow(java.lang.String key); /** * * *
     * The HTTP URL path, excluding the query parameters.
     * 
* * string path = 4; * * @return The path. */ java.lang.String getPath(); /** * * *
     * The HTTP URL path, excluding the query parameters.
     * 
* * string path = 4; * * @return The bytes for path. */ com.alibaba.nacos.shaded.com.google.protobuf.ByteString getPathBytes(); /** * * *
     * The HTTP request `Host` header value.
     * 
* * string host = 5; * * @return The host. */ java.lang.String getHost(); /** * * *
     * The HTTP request `Host` header value.
     * 
* * string host = 5; * * @return The bytes for host. */ com.alibaba.nacos.shaded.com.google.protobuf.ByteString getHostBytes(); /** * * *
     * The HTTP URL scheme, such as `http` and `https`.
     * 
* * string scheme = 6; * * @return The scheme. */ java.lang.String getScheme(); /** * * *
     * The HTTP URL scheme, such as `http` and `https`.
     * 
* * string scheme = 6; * * @return The bytes for scheme. */ com.alibaba.nacos.shaded.com.google.protobuf.ByteString getSchemeBytes(); /** * * *
     * The HTTP URL query in the format of `name1=value1&name2=value2`, as it
     * appears in the first line of the HTTP request. No decoding is performed.
     * 
* * string query = 7; * * @return The query. */ java.lang.String getQuery(); /** * * *
     * The HTTP URL query in the format of `name1=value1&name2=value2`, as it
     * appears in the first line of the HTTP request. No decoding is performed.
     * 
* * string query = 7; * * @return The bytes for query. */ com.alibaba.nacos.shaded.com.google.protobuf.ByteString getQueryBytes(); /** * * *
     * The timestamp when the `destination` service receives the last byte of
     * the request.
     * 
* * .google.protobuf.Timestamp time = 9; * * @return Whether the time field is set. */ boolean hasTime(); /** * * *
     * The timestamp when the `destination` service receives the last byte of
     * the request.
     * 
* * .google.protobuf.Timestamp time = 9; * * @return The time. */ com.alibaba.nacos.shaded.com.google.protobuf.Timestamp getTime(); /** * * *
     * The timestamp when the `destination` service receives the last byte of
     * the request.
     * 
* * .google.protobuf.Timestamp time = 9; */ com.alibaba.nacos.shaded.com.google.protobuf.TimestampOrBuilder getTimeOrBuilder(); /** * * *
     * The HTTP request size in bytes. If unknown, it must be -1.
     * 
* * int64 size = 10; * * @return The size. */ long getSize(); /** * * *
     * The network protocol used with the request, such as "http/1.1",
     * "spdy/3", "h2", "h2c", "webrtc", "tcp", "udp", "quic". See
     * https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids
     * for details.
     * 
* * string protocol = 11; * * @return The protocol. */ java.lang.String getProtocol(); /** * * *
     * The network protocol used with the request, such as "http/1.1",
     * "spdy/3", "h2", "h2c", "webrtc", "tcp", "udp", "quic". See
     * https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids
     * for details.
     * 
* * string protocol = 11; * * @return The bytes for protocol. */ com.alibaba.nacos.shaded.com.google.protobuf.ByteString getProtocolBytes(); /** * * *
     * A special parameter for request reason. It is used by security systems
     * to associate auditing information with a request.
     * 
* * string reason = 12; * * @return The reason. */ java.lang.String getReason(); /** * * *
     * A special parameter for request reason. It is used by security systems
     * to associate auditing information with a request.
     * 
* * string reason = 12; * * @return The bytes for reason. */ com.alibaba.nacos.shaded.com.google.protobuf.ByteString getReasonBytes(); /** * * *
     * The request authentication. May be absent for unauthenticated requests.
     * Derived from the HTTP request `Authorization` header or equivalent.
     * 
* * .google.rpc.context.AttributeContext.Auth auth = 13; * * @return Whether the auth field is set. */ boolean hasAuth(); /** * * *
     * The request authentication. May be absent for unauthenticated requests.
     * Derived from the HTTP request `Authorization` header or equivalent.
     * 
* * .google.rpc.context.AttributeContext.Auth auth = 13; * * @return The auth. */ com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Auth getAuth(); /** * * *
     * The request authentication. May be absent for unauthenticated requests.
     * Derived from the HTTP request `Authorization` header or equivalent.
     * 
* * .google.rpc.context.AttributeContext.Auth auth = 13; */ com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.AuthOrBuilder getAuthOrBuilder(); } /** * * *
   * This message defines attributes for an HTTP request. If the actual
   * request is not an HTTP request, the runtime system should try to map
   * the actual request to an equivalent HTTP request.
   * 
* * Protobuf type {@code google.rpc.context.AttributeContext.Request} */ public static final class Request extends com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.rpc.context.AttributeContext.Request) RequestOrBuilder { private static final long serialVersionUID = 0L; // Use Request.newBuilder() to construct. private Request(com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Request() { id_ = ""; method_ = ""; path_ = ""; host_ = ""; scheme_ = ""; query_ = ""; protocol_ = ""; reason_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Request(); } @java.lang.Override public final com.alibaba.nacos.shaded.com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.alibaba.nacos.shaded.com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContextProto .internal_static_google_rpc_context_AttributeContext_Request_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.alibaba.nacos.shaded.com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 3: return internalGetHeaders(); default: throw new RuntimeException("Invalid map field number: " + number); } } @java.lang.Override protected com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContextProto .internal_static_google_rpc_context_AttributeContext_Request_fieldAccessorTable .ensureFieldAccessorsInitialized( com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Request.class, com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Request.Builder.class); } public static final int ID_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object id_ = ""; /** * * *
     * The unique ID for a request, which can be propagated to downstream
     * systems. The ID should have low probability of collision
     * within a single day for a specific service.
     * 
* * string id = 1; * * @return The id. */ @java.lang.Override public java.lang.String getId() { java.lang.Object ref = id_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.alibaba.nacos.shaded.com.google.protobuf.ByteString bs = (com.alibaba.nacos.shaded.com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); id_ = s; return s; } } /** * * *
     * The unique ID for a request, which can be propagated to downstream
     * systems. The ID should have low probability of collision
     * within a single day for a specific service.
     * 
* * string id = 1; * * @return The bytes for id. */ @java.lang.Override public com.alibaba.nacos.shaded.com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof java.lang.String) { com.alibaba.nacos.shaded.com.google.protobuf.ByteString b = com.alibaba.nacos.shaded.com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); id_ = b; return b; } else { return (com.alibaba.nacos.shaded.com.google.protobuf.ByteString) ref; } } public static final int METHOD_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object method_ = ""; /** * * *
     * The HTTP request method, such as `GET`, `POST`.
     * 
* * string method = 2; * * @return The method. */ @java.lang.Override public java.lang.String getMethod() { java.lang.Object ref = method_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.alibaba.nacos.shaded.com.google.protobuf.ByteString bs = (com.alibaba.nacos.shaded.com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); method_ = s; return s; } } /** * * *
     * The HTTP request method, such as `GET`, `POST`.
     * 
* * string method = 2; * * @return The bytes for method. */ @java.lang.Override public com.alibaba.nacos.shaded.com.google.protobuf.ByteString getMethodBytes() { java.lang.Object ref = method_; if (ref instanceof java.lang.String) { com.alibaba.nacos.shaded.com.google.protobuf.ByteString b = com.alibaba.nacos.shaded.com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); method_ = b; return b; } else { return (com.alibaba.nacos.shaded.com.google.protobuf.ByteString) ref; } } public static final int HEADERS_FIELD_NUMBER = 3; private static final class HeadersDefaultEntryHolder { static final com.alibaba.nacos.shaded.com.google.protobuf.MapEntry defaultEntry = com.alibaba.nacos.shaded.com.google.protobuf.MapEntry.newDefaultInstance( com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContextProto .internal_static_google_rpc_context_AttributeContext_Request_HeadersEntry_descriptor, com.alibaba.nacos.shaded.com.google.protobuf.WireFormat.FieldType.STRING, "", com.alibaba.nacos.shaded.com.google.protobuf.WireFormat.FieldType.STRING, ""); } @SuppressWarnings("serial") private com.alibaba.nacos.shaded.com.google.protobuf.MapField headers_; private com.alibaba.nacos.shaded.com.google.protobuf.MapField internalGetHeaders() { if (headers_ == null) { return com.alibaba.nacos.shaded.com.google.protobuf.MapField.emptyMapField(HeadersDefaultEntryHolder.defaultEntry); } return headers_; } public int getHeadersCount() { return internalGetHeaders().getMap().size(); } /** * * *
     * The HTTP request headers. If multiple headers share the same key, they
     * must be merged according to the HTTP spec. All header keys must be
     * lowercased, because HTTP header keys are case-insensitive.
     * 
* * map<string, string> headers = 3; */ @java.lang.Override public boolean containsHeaders(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetHeaders().getMap().containsKey(key); } /** Use {@link #getHeadersMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getHeaders() { return getHeadersMap(); } /** * * *
     * The HTTP request headers. If multiple headers share the same key, they
     * must be merged according to the HTTP spec. All header keys must be
     * lowercased, because HTTP header keys are case-insensitive.
     * 
* * map<string, string> headers = 3; */ @java.lang.Override public java.util.Map getHeadersMap() { return internalGetHeaders().getMap(); } /** * * *
     * The HTTP request headers. If multiple headers share the same key, they
     * must be merged according to the HTTP spec. All header keys must be
     * lowercased, because HTTP header keys are case-insensitive.
     * 
* * map<string, string> headers = 3; */ @java.lang.Override public /* nullable */ java.lang.String getHeadersOrDefault( java.lang.String key, /* nullable */ java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetHeaders().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * * *
     * The HTTP request headers. If multiple headers share the same key, they
     * must be merged according to the HTTP spec. All header keys must be
     * lowercased, because HTTP header keys are case-insensitive.
     * 
* * map<string, string> headers = 3; */ @java.lang.Override public java.lang.String getHeadersOrThrow(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetHeaders().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int PATH_FIELD_NUMBER = 4; @SuppressWarnings("serial") private volatile java.lang.Object path_ = ""; /** * * *
     * The HTTP URL path, excluding the query parameters.
     * 
* * string path = 4; * * @return The path. */ @java.lang.Override public java.lang.String getPath() { java.lang.Object ref = path_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.alibaba.nacos.shaded.com.google.protobuf.ByteString bs = (com.alibaba.nacos.shaded.com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); path_ = s; return s; } } /** * * *
     * The HTTP URL path, excluding the query parameters.
     * 
* * string path = 4; * * @return The bytes for path. */ @java.lang.Override public com.alibaba.nacos.shaded.com.google.protobuf.ByteString getPathBytes() { java.lang.Object ref = path_; if (ref instanceof java.lang.String) { com.alibaba.nacos.shaded.com.google.protobuf.ByteString b = com.alibaba.nacos.shaded.com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); path_ = b; return b; } else { return (com.alibaba.nacos.shaded.com.google.protobuf.ByteString) ref; } } public static final int HOST_FIELD_NUMBER = 5; @SuppressWarnings("serial") private volatile java.lang.Object host_ = ""; /** * * *
     * The HTTP request `Host` header value.
     * 
* * string host = 5; * * @return The host. */ @java.lang.Override public java.lang.String getHost() { java.lang.Object ref = host_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.alibaba.nacos.shaded.com.google.protobuf.ByteString bs = (com.alibaba.nacos.shaded.com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); host_ = s; return s; } } /** * * *
     * The HTTP request `Host` header value.
     * 
* * string host = 5; * * @return The bytes for host. */ @java.lang.Override public com.alibaba.nacos.shaded.com.google.protobuf.ByteString getHostBytes() { java.lang.Object ref = host_; if (ref instanceof java.lang.String) { com.alibaba.nacos.shaded.com.google.protobuf.ByteString b = com.alibaba.nacos.shaded.com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); host_ = b; return b; } else { return (com.alibaba.nacos.shaded.com.google.protobuf.ByteString) ref; } } public static final int SCHEME_FIELD_NUMBER = 6; @SuppressWarnings("serial") private volatile java.lang.Object scheme_ = ""; /** * * *
     * The HTTP URL scheme, such as `http` and `https`.
     * 
* * string scheme = 6; * * @return The scheme. */ @java.lang.Override public java.lang.String getScheme() { java.lang.Object ref = scheme_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.alibaba.nacos.shaded.com.google.protobuf.ByteString bs = (com.alibaba.nacos.shaded.com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); scheme_ = s; return s; } } /** * * *
     * The HTTP URL scheme, such as `http` and `https`.
     * 
* * string scheme = 6; * * @return The bytes for scheme. */ @java.lang.Override public com.alibaba.nacos.shaded.com.google.protobuf.ByteString getSchemeBytes() { java.lang.Object ref = scheme_; if (ref instanceof java.lang.String) { com.alibaba.nacos.shaded.com.google.protobuf.ByteString b = com.alibaba.nacos.shaded.com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); scheme_ = b; return b; } else { return (com.alibaba.nacos.shaded.com.google.protobuf.ByteString) ref; } } public static final int QUERY_FIELD_NUMBER = 7; @SuppressWarnings("serial") private volatile java.lang.Object query_ = ""; /** * * *
     * The HTTP URL query in the format of `name1=value1&name2=value2`, as it
     * appears in the first line of the HTTP request. No decoding is performed.
     * 
* * string query = 7; * * @return The query. */ @java.lang.Override public java.lang.String getQuery() { java.lang.Object ref = query_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.alibaba.nacos.shaded.com.google.protobuf.ByteString bs = (com.alibaba.nacos.shaded.com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); query_ = s; return s; } } /** * * *
     * The HTTP URL query in the format of `name1=value1&name2=value2`, as it
     * appears in the first line of the HTTP request. No decoding is performed.
     * 
* * string query = 7; * * @return The bytes for query. */ @java.lang.Override public com.alibaba.nacos.shaded.com.google.protobuf.ByteString getQueryBytes() { java.lang.Object ref = query_; if (ref instanceof java.lang.String) { com.alibaba.nacos.shaded.com.google.protobuf.ByteString b = com.alibaba.nacos.shaded.com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); query_ = b; return b; } else { return (com.alibaba.nacos.shaded.com.google.protobuf.ByteString) ref; } } public static final int TIME_FIELD_NUMBER = 9; private com.alibaba.nacos.shaded.com.google.protobuf.Timestamp time_; /** * * *
     * The timestamp when the `destination` service receives the last byte of
     * the request.
     * 
* * .google.protobuf.Timestamp time = 9; * * @return Whether the time field is set. */ @java.lang.Override public boolean hasTime() { return time_ != null; } /** * * *
     * The timestamp when the `destination` service receives the last byte of
     * the request.
     * 
* * .google.protobuf.Timestamp time = 9; * * @return The time. */ @java.lang.Override public com.alibaba.nacos.shaded.com.google.protobuf.Timestamp getTime() { return time_ == null ? com.alibaba.nacos.shaded.com.google.protobuf.Timestamp.getDefaultInstance() : time_; } /** * * *
     * The timestamp when the `destination` service receives the last byte of
     * the request.
     * 
* * .google.protobuf.Timestamp time = 9; */ @java.lang.Override public com.alibaba.nacos.shaded.com.google.protobuf.TimestampOrBuilder getTimeOrBuilder() { return time_ == null ? com.alibaba.nacos.shaded.com.google.protobuf.Timestamp.getDefaultInstance() : time_; } public static final int SIZE_FIELD_NUMBER = 10; private long size_ = 0L; /** * * *
     * The HTTP request size in bytes. If unknown, it must be -1.
     * 
* * int64 size = 10; * * @return The size. */ @java.lang.Override public long getSize() { return size_; } public static final int PROTOCOL_FIELD_NUMBER = 11; @SuppressWarnings("serial") private volatile java.lang.Object protocol_ = ""; /** * * *
     * The network protocol used with the request, such as "http/1.1",
     * "spdy/3", "h2", "h2c", "webrtc", "tcp", "udp", "quic". See
     * https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids
     * for details.
     * 
* * string protocol = 11; * * @return The protocol. */ @java.lang.Override public java.lang.String getProtocol() { java.lang.Object ref = protocol_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.alibaba.nacos.shaded.com.google.protobuf.ByteString bs = (com.alibaba.nacos.shaded.com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); protocol_ = s; return s; } } /** * * *
     * The network protocol used with the request, such as "http/1.1",
     * "spdy/3", "h2", "h2c", "webrtc", "tcp", "udp", "quic". See
     * https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids
     * for details.
     * 
* * string protocol = 11; * * @return The bytes for protocol. */ @java.lang.Override public com.alibaba.nacos.shaded.com.google.protobuf.ByteString getProtocolBytes() { java.lang.Object ref = protocol_; if (ref instanceof java.lang.String) { com.alibaba.nacos.shaded.com.google.protobuf.ByteString b = com.alibaba.nacos.shaded.com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); protocol_ = b; return b; } else { return (com.alibaba.nacos.shaded.com.google.protobuf.ByteString) ref; } } public static final int REASON_FIELD_NUMBER = 12; @SuppressWarnings("serial") private volatile java.lang.Object reason_ = ""; /** * * *
     * A special parameter for request reason. It is used by security systems
     * to associate auditing information with a request.
     * 
* * string reason = 12; * * @return The reason. */ @java.lang.Override public java.lang.String getReason() { java.lang.Object ref = reason_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.alibaba.nacos.shaded.com.google.protobuf.ByteString bs = (com.alibaba.nacos.shaded.com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); reason_ = s; return s; } } /** * * *
     * A special parameter for request reason. It is used by security systems
     * to associate auditing information with a request.
     * 
* * string reason = 12; * * @return The bytes for reason. */ @java.lang.Override public com.alibaba.nacos.shaded.com.google.protobuf.ByteString getReasonBytes() { java.lang.Object ref = reason_; if (ref instanceof java.lang.String) { com.alibaba.nacos.shaded.com.google.protobuf.ByteString b = com.alibaba.nacos.shaded.com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); reason_ = b; return b; } else { return (com.alibaba.nacos.shaded.com.google.protobuf.ByteString) ref; } } public static final int AUTH_FIELD_NUMBER = 13; private com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Auth auth_; /** * * *
     * The request authentication. May be absent for unauthenticated requests.
     * Derived from the HTTP request `Authorization` header or equivalent.
     * 
* * .google.rpc.context.AttributeContext.Auth auth = 13; * * @return Whether the auth field is set. */ @java.lang.Override public boolean hasAuth() { return auth_ != null; } /** * * *
     * The request authentication. May be absent for unauthenticated requests.
     * Derived from the HTTP request `Authorization` header or equivalent.
     * 
* * .google.rpc.context.AttributeContext.Auth auth = 13; * * @return The auth. */ @java.lang.Override public com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Auth getAuth() { return auth_ == null ? com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Auth.getDefaultInstance() : auth_; } /** * * *
     * The request authentication. May be absent for unauthenticated requests.
     * Derived from the HTTP request `Authorization` header or equivalent.
     * 
* * .google.rpc.context.AttributeContext.Auth auth = 13; */ @java.lang.Override public com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.AuthOrBuilder getAuthOrBuilder() { return auth_ == null ? com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Auth.getDefaultInstance() : auth_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.alibaba.nacos.shaded.com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); } if (!com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.isStringEmpty(method_)) { com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.writeString(output, 2, method_); } com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetHeaders(), HeadersDefaultEntryHolder.defaultEntry, 3); if (!com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.isStringEmpty(path_)) { com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.writeString(output, 4, path_); } if (!com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.isStringEmpty(host_)) { com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.writeString(output, 5, host_); } if (!com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.isStringEmpty(scheme_)) { com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.writeString(output, 6, scheme_); } if (!com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.isStringEmpty(query_)) { com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.writeString(output, 7, query_); } if (time_ != null) { output.writeMessage(9, getTime()); } if (size_ != 0L) { output.writeInt64(10, size_); } if (!com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.isStringEmpty(protocol_)) { com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.writeString(output, 11, protocol_); } if (!com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.isStringEmpty(reason_)) { com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.writeString(output, 12, reason_); } if (auth_ != null) { output.writeMessage(13, getAuth()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { size += com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); } if (!com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.isStringEmpty(method_)) { size += com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.computeStringSize(2, method_); } for (java.util.Map.Entry entry : internalGetHeaders().getMap().entrySet()) { com.alibaba.nacos.shaded.com.google.protobuf.MapEntry headers__ = HeadersDefaultEntryHolder.defaultEntry .newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.alibaba.nacos.shaded.com.google.protobuf.CodedOutputStream.computeMessageSize(3, headers__); } if (!com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.isStringEmpty(path_)) { size += com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.computeStringSize(4, path_); } if (!com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.isStringEmpty(host_)) { size += com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.computeStringSize(5, host_); } if (!com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.isStringEmpty(scheme_)) { size += com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.computeStringSize(6, scheme_); } if (!com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.isStringEmpty(query_)) { size += com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.computeStringSize(7, query_); } if (time_ != null) { size += com.alibaba.nacos.shaded.com.google.protobuf.CodedOutputStream.computeMessageSize(9, getTime()); } if (size_ != 0L) { size += com.alibaba.nacos.shaded.com.google.protobuf.CodedOutputStream.computeInt64Size(10, size_); } if (!com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.isStringEmpty(protocol_)) { size += com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.computeStringSize(11, protocol_); } if (!com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.isStringEmpty(reason_)) { size += com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.computeStringSize(12, reason_); } if (auth_ != null) { size += com.alibaba.nacos.shaded.com.google.protobuf.CodedOutputStream.computeMessageSize(13, getAuth()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Request)) { return super.equals(obj); } com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Request other = (com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Request) obj; if (!getId().equals(other.getId())) return false; if (!getMethod().equals(other.getMethod())) return false; if (!internalGetHeaders().equals(other.internalGetHeaders())) return false; if (!getPath().equals(other.getPath())) return false; if (!getHost().equals(other.getHost())) return false; if (!getScheme().equals(other.getScheme())) return false; if (!getQuery().equals(other.getQuery())) return false; if (hasTime() != other.hasTime()) return false; if (hasTime()) { if (!getTime().equals(other.getTime())) return false; } if (getSize() != other.getSize()) return false; if (!getProtocol().equals(other.getProtocol())) return false; if (!getReason().equals(other.getReason())) return false; if (hasAuth() != other.hasAuth()) return false; if (hasAuth()) { if (!getAuth().equals(other.getAuth())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ID_FIELD_NUMBER; hash = (53 * hash) + getId().hashCode(); hash = (37 * hash) + METHOD_FIELD_NUMBER; hash = (53 * hash) + getMethod().hashCode(); if (!internalGetHeaders().getMap().isEmpty()) { hash = (37 * hash) + HEADERS_FIELD_NUMBER; hash = (53 * hash) + internalGetHeaders().hashCode(); } hash = (37 * hash) + PATH_FIELD_NUMBER; hash = (53 * hash) + getPath().hashCode(); hash = (37 * hash) + HOST_FIELD_NUMBER; hash = (53 * hash) + getHost().hashCode(); hash = (37 * hash) + SCHEME_FIELD_NUMBER; hash = (53 * hash) + getScheme().hashCode(); hash = (37 * hash) + QUERY_FIELD_NUMBER; hash = (53 * hash) + getQuery().hashCode(); if (hasTime()) { hash = (37 * hash) + TIME_FIELD_NUMBER; hash = (53 * hash) + getTime().hashCode(); } hash = (37 * hash) + SIZE_FIELD_NUMBER; hash = (53 * hash) + com.alibaba.nacos.shaded.com.google.protobuf.Internal.hashLong(getSize()); hash = (37 * hash) + PROTOCOL_FIELD_NUMBER; hash = (53 * hash) + getProtocol().hashCode(); hash = (37 * hash) + REASON_FIELD_NUMBER; hash = (53 * hash) + getReason().hashCode(); if (hasAuth()) { hash = (37 * hash) + AUTH_FIELD_NUMBER; hash = (53 * hash) + getAuth().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Request parseFrom( java.nio.ByteBuffer data) throws com.alibaba.nacos.shaded.com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Request parseFrom( java.nio.ByteBuffer data, com.alibaba.nacos.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.alibaba.nacos.shaded.com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Request parseFrom( com.alibaba.nacos.shaded.com.google.protobuf.ByteString data) throws com.alibaba.nacos.shaded.com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Request parseFrom( com.alibaba.nacos.shaded.com.google.protobuf.ByteString data, com.alibaba.nacos.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.alibaba.nacos.shaded.com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Request parseFrom(byte[] data) throws com.alibaba.nacos.shaded.com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Request parseFrom( byte[] data, com.alibaba.nacos.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.alibaba.nacos.shaded.com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Request parseFrom( java.io.InputStream input) throws java.io.IOException { return com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Request parseFrom( java.io.InputStream input, com.alibaba.nacos.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } public static com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Request parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Request parseDelimitedFrom( java.io.InputStream input, com.alibaba.nacos.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Request parseFrom( com.alibaba.nacos.shaded.com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Request parseFrom( com.alibaba.nacos.shaded.com.google.protobuf.CodedInputStream input, com.alibaba.nacos.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Request prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * * *
     * This message defines attributes for an HTTP request. If the actual
     * request is not an HTTP request, the runtime system should try to map
     * the actual request to an equivalent HTTP request.
     * 
* * Protobuf type {@code google.rpc.context.AttributeContext.Request} */ public static final class Builder extends com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.rpc.context.AttributeContext.Request) com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.RequestOrBuilder { public static final com.alibaba.nacos.shaded.com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContextProto .internal_static_google_rpc_context_AttributeContext_Request_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.alibaba.nacos.shaded.com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 3: return internalGetHeaders(); default: throw new RuntimeException("Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.alibaba.nacos.shaded.com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { case 3: return internalGetMutableHeaders(); default: throw new RuntimeException("Invalid map field number: " + number); } } @java.lang.Override protected com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContextProto .internal_static_google_rpc_context_AttributeContext_Request_fieldAccessorTable .ensureFieldAccessorsInitialized( com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Request.class, com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Request.Builder.class); } // Construct using com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Request.newBuilder() private Builder() {} private Builder(com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; id_ = ""; method_ = ""; internalGetMutableHeaders().clear(); path_ = ""; host_ = ""; scheme_ = ""; query_ = ""; time_ = null; if (timeBuilder_ != null) { timeBuilder_.dispose(); timeBuilder_ = null; } size_ = 0L; protocol_ = ""; reason_ = ""; auth_ = null; if (authBuilder_ != null) { authBuilder_.dispose(); authBuilder_ = null; } return this; } @java.lang.Override public com.alibaba.nacos.shaded.com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContextProto .internal_static_google_rpc_context_AttributeContext_Request_descriptor; } @java.lang.Override public com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Request getDefaultInstanceForType() { return com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Request.getDefaultInstance(); } @java.lang.Override public com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Request build() { com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Request result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Request buildPartial() { com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Request result = new com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Request(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Request result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.id_ = id_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.method_ = method_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.headers_ = internalGetHeaders(); result.headers_.makeImmutable(); } if (((from_bitField0_ & 0x00000008) != 0)) { result.path_ = path_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.host_ = host_; } if (((from_bitField0_ & 0x00000020) != 0)) { result.scheme_ = scheme_; } if (((from_bitField0_ & 0x00000040) != 0)) { result.query_ = query_; } if (((from_bitField0_ & 0x00000080) != 0)) { result.time_ = timeBuilder_ == null ? time_ : timeBuilder_.build(); } if (((from_bitField0_ & 0x00000100) != 0)) { result.size_ = size_; } if (((from_bitField0_ & 0x00000200) != 0)) { result.protocol_ = protocol_; } if (((from_bitField0_ & 0x00000400) != 0)) { result.reason_ = reason_; } if (((from_bitField0_ & 0x00000800) != 0)) { result.auth_ = authBuilder_ == null ? auth_ : authBuilder_.build(); } } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.alibaba.nacos.shaded.com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField(com.alibaba.nacos.shaded.com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.alibaba.nacos.shaded.com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.alibaba.nacos.shaded.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.alibaba.nacos.shaded.com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.alibaba.nacos.shaded.com.google.protobuf.Message other) { if (other instanceof com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Request) { return mergeFrom((com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Request) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Request other) { if (other == com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Request.getDefaultInstance()) return this; if (!other.getId().isEmpty()) { id_ = other.id_; bitField0_ |= 0x00000001; onChanged(); } if (!other.getMethod().isEmpty()) { method_ = other.method_; bitField0_ |= 0x00000002; onChanged(); } internalGetMutableHeaders().mergeFrom(other.internalGetHeaders()); bitField0_ |= 0x00000004; if (!other.getPath().isEmpty()) { path_ = other.path_; bitField0_ |= 0x00000008; onChanged(); } if (!other.getHost().isEmpty()) { host_ = other.host_; bitField0_ |= 0x00000010; onChanged(); } if (!other.getScheme().isEmpty()) { scheme_ = other.scheme_; bitField0_ |= 0x00000020; onChanged(); } if (!other.getQuery().isEmpty()) { query_ = other.query_; bitField0_ |= 0x00000040; onChanged(); } if (other.hasTime()) { mergeTime(other.getTime()); } if (other.getSize() != 0L) { setSize(other.getSize()); } if (!other.getProtocol().isEmpty()) { protocol_ = other.protocol_; bitField0_ |= 0x00000200; onChanged(); } if (!other.getReason().isEmpty()) { reason_ = other.reason_; bitField0_ |= 0x00000400; onChanged(); } if (other.hasAuth()) { mergeAuth(other.getAuth()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.alibaba.nacos.shaded.com.google.protobuf.CodedInputStream input, com.alibaba.nacos.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { id_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { method_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { com.alibaba.nacos.shaded.com.google.protobuf.MapEntry headers__ = input.readMessage( HeadersDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableHeaders() .getMutableMap() .put(headers__.getKey(), headers__.getValue()); bitField0_ |= 0x00000004; break; } // case 26 case 34: { path_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000008; break; } // case 34 case 42: { host_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000010; break; } // case 42 case 50: { scheme_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000020; break; } // case 50 case 58: { query_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000040; break; } // case 58 case 74: { input.readMessage(getTimeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000080; break; } // case 74 case 80: { size_ = input.readInt64(); bitField0_ |= 0x00000100; break; } // case 80 case 90: { protocol_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000200; break; } // case 90 case 98: { reason_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000400; break; } // case 98 case 106: { input.readMessage(getAuthFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000800; break; } // case 106 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.alibaba.nacos.shaded.com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object id_ = ""; /** * * *
       * The unique ID for a request, which can be propagated to downstream
       * systems. The ID should have low probability of collision
       * within a single day for a specific service.
       * 
* * string id = 1; * * @return The id. */ public java.lang.String getId() { java.lang.Object ref = id_; if (!(ref instanceof java.lang.String)) { com.alibaba.nacos.shaded.com.google.protobuf.ByteString bs = (com.alibaba.nacos.shaded.com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); id_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
       * The unique ID for a request, which can be propagated to downstream
       * systems. The ID should have low probability of collision
       * within a single day for a specific service.
       * 
* * string id = 1; * * @return The bytes for id. */ public com.alibaba.nacos.shaded.com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof String) { com.alibaba.nacos.shaded.com.google.protobuf.ByteString b = com.alibaba.nacos.shaded.com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); id_ = b; return b; } else { return (com.alibaba.nacos.shaded.com.google.protobuf.ByteString) ref; } } /** * * *
       * The unique ID for a request, which can be propagated to downstream
       * systems. The ID should have low probability of collision
       * within a single day for a specific service.
       * 
* * string id = 1; * * @param value The id to set. * @return This builder for chaining. */ public Builder setId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } id_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
       * The unique ID for a request, which can be propagated to downstream
       * systems. The ID should have low probability of collision
       * within a single day for a specific service.
       * 
* * string id = 1; * * @return This builder for chaining. */ public Builder clearId() { id_ = getDefaultInstance().getId(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * * *
       * The unique ID for a request, which can be propagated to downstream
       * systems. The ID should have low probability of collision
       * within a single day for a specific service.
       * 
* * string id = 1; * * @param value The bytes for id to set. * @return This builder for chaining. */ public Builder setIdBytes(com.alibaba.nacos.shaded.com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); id_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private java.lang.Object method_ = ""; /** * * *
       * The HTTP request method, such as `GET`, `POST`.
       * 
* * string method = 2; * * @return The method. */ public java.lang.String getMethod() { java.lang.Object ref = method_; if (!(ref instanceof java.lang.String)) { com.alibaba.nacos.shaded.com.google.protobuf.ByteString bs = (com.alibaba.nacos.shaded.com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); method_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
       * The HTTP request method, such as `GET`, `POST`.
       * 
* * string method = 2; * * @return The bytes for method. */ public com.alibaba.nacos.shaded.com.google.protobuf.ByteString getMethodBytes() { java.lang.Object ref = method_; if (ref instanceof String) { com.alibaba.nacos.shaded.com.google.protobuf.ByteString b = com.alibaba.nacos.shaded.com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); method_ = b; return b; } else { return (com.alibaba.nacos.shaded.com.google.protobuf.ByteString) ref; } } /** * * *
       * The HTTP request method, such as `GET`, `POST`.
       * 
* * string method = 2; * * @param value The method to set. * @return This builder for chaining. */ public Builder setMethod(java.lang.String value) { if (value == null) { throw new NullPointerException(); } method_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
       * The HTTP request method, such as `GET`, `POST`.
       * 
* * string method = 2; * * @return This builder for chaining. */ public Builder clearMethod() { method_ = getDefaultInstance().getMethod(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * * *
       * The HTTP request method, such as `GET`, `POST`.
       * 
* * string method = 2; * * @param value The bytes for method to set. * @return This builder for chaining. */ public Builder setMethodBytes(com.alibaba.nacos.shaded.com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); method_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private com.alibaba.nacos.shaded.com.google.protobuf.MapField headers_; private com.alibaba.nacos.shaded.com.google.protobuf.MapField internalGetHeaders() { if (headers_ == null) { return com.alibaba.nacos.shaded.com.google.protobuf.MapField.emptyMapField(HeadersDefaultEntryHolder.defaultEntry); } return headers_; } private com.alibaba.nacos.shaded.com.google.protobuf.MapField internalGetMutableHeaders() { if (headers_ == null) { headers_ = com.alibaba.nacos.shaded.com.google.protobuf.MapField.newMapField(HeadersDefaultEntryHolder.defaultEntry); } if (!headers_.isMutable()) { headers_ = headers_.copy(); } bitField0_ |= 0x00000004; onChanged(); return headers_; } public int getHeadersCount() { return internalGetHeaders().getMap().size(); } /** * * *
       * The HTTP request headers. If multiple headers share the same key, they
       * must be merged according to the HTTP spec. All header keys must be
       * lowercased, because HTTP header keys are case-insensitive.
       * 
* * map<string, string> headers = 3; */ @java.lang.Override public boolean containsHeaders(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetHeaders().getMap().containsKey(key); } /** Use {@link #getHeadersMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getHeaders() { return getHeadersMap(); } /** * * *
       * The HTTP request headers. If multiple headers share the same key, they
       * must be merged according to the HTTP spec. All header keys must be
       * lowercased, because HTTP header keys are case-insensitive.
       * 
* * map<string, string> headers = 3; */ @java.lang.Override public java.util.Map getHeadersMap() { return internalGetHeaders().getMap(); } /** * * *
       * The HTTP request headers. If multiple headers share the same key, they
       * must be merged according to the HTTP spec. All header keys must be
       * lowercased, because HTTP header keys are case-insensitive.
       * 
* * map<string, string> headers = 3; */ @java.lang.Override public /* nullable */ java.lang.String getHeadersOrDefault( java.lang.String key, /* nullable */ java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetHeaders().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * * *
       * The HTTP request headers. If multiple headers share the same key, they
       * must be merged according to the HTTP spec. All header keys must be
       * lowercased, because HTTP header keys are case-insensitive.
       * 
* * map<string, string> headers = 3; */ @java.lang.Override public java.lang.String getHeadersOrThrow(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetHeaders().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearHeaders() { bitField0_ = (bitField0_ & ~0x00000004); internalGetMutableHeaders().getMutableMap().clear(); return this; } /** * * *
       * The HTTP request headers. If multiple headers share the same key, they
       * must be merged according to the HTTP spec. All header keys must be
       * lowercased, because HTTP header keys are case-insensitive.
       * 
* * map<string, string> headers = 3; */ public Builder removeHeaders(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableHeaders().getMutableMap().remove(key); return this; } /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableHeaders() { bitField0_ |= 0x00000004; return internalGetMutableHeaders().getMutableMap(); } /** * * *
       * The HTTP request headers. If multiple headers share the same key, they
       * must be merged according to the HTTP spec. All header keys must be
       * lowercased, because HTTP header keys are case-insensitive.
       * 
* * map<string, string> headers = 3; */ public Builder putHeaders(java.lang.String key, java.lang.String value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableHeaders().getMutableMap().put(key, value); bitField0_ |= 0x00000004; return this; } /** * * *
       * The HTTP request headers. If multiple headers share the same key, they
       * must be merged according to the HTTP spec. All header keys must be
       * lowercased, because HTTP header keys are case-insensitive.
       * 
* * map<string, string> headers = 3; */ public Builder putAllHeaders(java.util.Map values) { internalGetMutableHeaders().getMutableMap().putAll(values); bitField0_ |= 0x00000004; return this; } private java.lang.Object path_ = ""; /** * * *
       * The HTTP URL path, excluding the query parameters.
       * 
* * string path = 4; * * @return The path. */ public java.lang.String getPath() { java.lang.Object ref = path_; if (!(ref instanceof java.lang.String)) { com.alibaba.nacos.shaded.com.google.protobuf.ByteString bs = (com.alibaba.nacos.shaded.com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); path_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
       * The HTTP URL path, excluding the query parameters.
       * 
* * string path = 4; * * @return The bytes for path. */ public com.alibaba.nacos.shaded.com.google.protobuf.ByteString getPathBytes() { java.lang.Object ref = path_; if (ref instanceof String) { com.alibaba.nacos.shaded.com.google.protobuf.ByteString b = com.alibaba.nacos.shaded.com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); path_ = b; return b; } else { return (com.alibaba.nacos.shaded.com.google.protobuf.ByteString) ref; } } /** * * *
       * The HTTP URL path, excluding the query parameters.
       * 
* * string path = 4; * * @param value The path to set. * @return This builder for chaining. */ public Builder setPath(java.lang.String value) { if (value == null) { throw new NullPointerException(); } path_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** * * *
       * The HTTP URL path, excluding the query parameters.
       * 
* * string path = 4; * * @return This builder for chaining. */ public Builder clearPath() { path_ = getDefaultInstance().getPath(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** * * *
       * The HTTP URL path, excluding the query parameters.
       * 
* * string path = 4; * * @param value The bytes for path to set. * @return This builder for chaining. */ public Builder setPathBytes(com.alibaba.nacos.shaded.com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); path_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } private java.lang.Object host_ = ""; /** * * *
       * The HTTP request `Host` header value.
       * 
* * string host = 5; * * @return The host. */ public java.lang.String getHost() { java.lang.Object ref = host_; if (!(ref instanceof java.lang.String)) { com.alibaba.nacos.shaded.com.google.protobuf.ByteString bs = (com.alibaba.nacos.shaded.com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); host_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
       * The HTTP request `Host` header value.
       * 
* * string host = 5; * * @return The bytes for host. */ public com.alibaba.nacos.shaded.com.google.protobuf.ByteString getHostBytes() { java.lang.Object ref = host_; if (ref instanceof String) { com.alibaba.nacos.shaded.com.google.protobuf.ByteString b = com.alibaba.nacos.shaded.com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); host_ = b; return b; } else { return (com.alibaba.nacos.shaded.com.google.protobuf.ByteString) ref; } } /** * * *
       * The HTTP request `Host` header value.
       * 
* * string host = 5; * * @param value The host to set. * @return This builder for chaining. */ public Builder setHost(java.lang.String value) { if (value == null) { throw new NullPointerException(); } host_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** * * *
       * The HTTP request `Host` header value.
       * 
* * string host = 5; * * @return This builder for chaining. */ public Builder clearHost() { host_ = getDefaultInstance().getHost(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } /** * * *
       * The HTTP request `Host` header value.
       * 
* * string host = 5; * * @param value The bytes for host to set. * @return This builder for chaining. */ public Builder setHostBytes(com.alibaba.nacos.shaded.com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); host_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } private java.lang.Object scheme_ = ""; /** * * *
       * The HTTP URL scheme, such as `http` and `https`.
       * 
* * string scheme = 6; * * @return The scheme. */ public java.lang.String getScheme() { java.lang.Object ref = scheme_; if (!(ref instanceof java.lang.String)) { com.alibaba.nacos.shaded.com.google.protobuf.ByteString bs = (com.alibaba.nacos.shaded.com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); scheme_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
       * The HTTP URL scheme, such as `http` and `https`.
       * 
* * string scheme = 6; * * @return The bytes for scheme. */ public com.alibaba.nacos.shaded.com.google.protobuf.ByteString getSchemeBytes() { java.lang.Object ref = scheme_; if (ref instanceof String) { com.alibaba.nacos.shaded.com.google.protobuf.ByteString b = com.alibaba.nacos.shaded.com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); scheme_ = b; return b; } else { return (com.alibaba.nacos.shaded.com.google.protobuf.ByteString) ref; } } /** * * *
       * The HTTP URL scheme, such as `http` and `https`.
       * 
* * string scheme = 6; * * @param value The scheme to set. * @return This builder for chaining. */ public Builder setScheme(java.lang.String value) { if (value == null) { throw new NullPointerException(); } scheme_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** * * *
       * The HTTP URL scheme, such as `http` and `https`.
       * 
* * string scheme = 6; * * @return This builder for chaining. */ public Builder clearScheme() { scheme_ = getDefaultInstance().getScheme(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } /** * * *
       * The HTTP URL scheme, such as `http` and `https`.
       * 
* * string scheme = 6; * * @param value The bytes for scheme to set. * @return This builder for chaining. */ public Builder setSchemeBytes(com.alibaba.nacos.shaded.com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); scheme_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } private java.lang.Object query_ = ""; /** * * *
       * The HTTP URL query in the format of `name1=value1&name2=value2`, as it
       * appears in the first line of the HTTP request. No decoding is performed.
       * 
* * string query = 7; * * @return The query. */ public java.lang.String getQuery() { java.lang.Object ref = query_; if (!(ref instanceof java.lang.String)) { com.alibaba.nacos.shaded.com.google.protobuf.ByteString bs = (com.alibaba.nacos.shaded.com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); query_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
       * The HTTP URL query in the format of `name1=value1&name2=value2`, as it
       * appears in the first line of the HTTP request. No decoding is performed.
       * 
* * string query = 7; * * @return The bytes for query. */ public com.alibaba.nacos.shaded.com.google.protobuf.ByteString getQueryBytes() { java.lang.Object ref = query_; if (ref instanceof String) { com.alibaba.nacos.shaded.com.google.protobuf.ByteString b = com.alibaba.nacos.shaded.com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); query_ = b; return b; } else { return (com.alibaba.nacos.shaded.com.google.protobuf.ByteString) ref; } } /** * * *
       * The HTTP URL query in the format of `name1=value1&name2=value2`, as it
       * appears in the first line of the HTTP request. No decoding is performed.
       * 
* * string query = 7; * * @param value The query to set. * @return This builder for chaining. */ public Builder setQuery(java.lang.String value) { if (value == null) { throw new NullPointerException(); } query_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** * * *
       * The HTTP URL query in the format of `name1=value1&name2=value2`, as it
       * appears in the first line of the HTTP request. No decoding is performed.
       * 
* * string query = 7; * * @return This builder for chaining. */ public Builder clearQuery() { query_ = getDefaultInstance().getQuery(); bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } /** * * *
       * The HTTP URL query in the format of `name1=value1&name2=value2`, as it
       * appears in the first line of the HTTP request. No decoding is performed.
       * 
* * string query = 7; * * @param value The bytes for query to set. * @return This builder for chaining. */ public Builder setQueryBytes(com.alibaba.nacos.shaded.com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); query_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } private com.alibaba.nacos.shaded.com.google.protobuf.Timestamp time_; private com.alibaba.nacos.shaded.com.google.protobuf.SingleFieldBuilderV3< com.alibaba.nacos.shaded.com.google.protobuf.Timestamp, com.alibaba.nacos.shaded.com.google.protobuf.Timestamp.Builder, com.alibaba.nacos.shaded.com.google.protobuf.TimestampOrBuilder> timeBuilder_; /** * * *
       * The timestamp when the `destination` service receives the last byte of
       * the request.
       * 
* * .google.protobuf.Timestamp time = 9; * * @return Whether the time field is set. */ public boolean hasTime() { return ((bitField0_ & 0x00000080) != 0); } /** * * *
       * The timestamp when the `destination` service receives the last byte of
       * the request.
       * 
* * .google.protobuf.Timestamp time = 9; * * @return The time. */ public com.alibaba.nacos.shaded.com.google.protobuf.Timestamp getTime() { if (timeBuilder_ == null) { return time_ == null ? com.alibaba.nacos.shaded.com.google.protobuf.Timestamp.getDefaultInstance() : time_; } else { return timeBuilder_.getMessage(); } } /** * * *
       * The timestamp when the `destination` service receives the last byte of
       * the request.
       * 
* * .google.protobuf.Timestamp time = 9; */ public Builder setTime(com.alibaba.nacos.shaded.com.google.protobuf.Timestamp value) { if (timeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } time_ = value; } else { timeBuilder_.setMessage(value); } bitField0_ |= 0x00000080; onChanged(); return this; } /** * * *
       * The timestamp when the `destination` service receives the last byte of
       * the request.
       * 
* * .google.protobuf.Timestamp time = 9; */ public Builder setTime(com.alibaba.nacos.shaded.com.google.protobuf.Timestamp.Builder builderForValue) { if (timeBuilder_ == null) { time_ = builderForValue.build(); } else { timeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000080; onChanged(); return this; } /** * * *
       * The timestamp when the `destination` service receives the last byte of
       * the request.
       * 
* * .google.protobuf.Timestamp time = 9; */ public Builder mergeTime(com.alibaba.nacos.shaded.com.google.protobuf.Timestamp value) { if (timeBuilder_ == null) { if (((bitField0_ & 0x00000080) != 0) && time_ != null && time_ != com.alibaba.nacos.shaded.com.google.protobuf.Timestamp.getDefaultInstance()) { getTimeBuilder().mergeFrom(value); } else { time_ = value; } } else { timeBuilder_.mergeFrom(value); } bitField0_ |= 0x00000080; onChanged(); return this; } /** * * *
       * The timestamp when the `destination` service receives the last byte of
       * the request.
       * 
* * .google.protobuf.Timestamp time = 9; */ public Builder clearTime() { bitField0_ = (bitField0_ & ~0x00000080); time_ = null; if (timeBuilder_ != null) { timeBuilder_.dispose(); timeBuilder_ = null; } onChanged(); return this; } /** * * *
       * The timestamp when the `destination` service receives the last byte of
       * the request.
       * 
* * .google.protobuf.Timestamp time = 9; */ public com.alibaba.nacos.shaded.com.google.protobuf.Timestamp.Builder getTimeBuilder() { bitField0_ |= 0x00000080; onChanged(); return getTimeFieldBuilder().getBuilder(); } /** * * *
       * The timestamp when the `destination` service receives the last byte of
       * the request.
       * 
* * .google.protobuf.Timestamp time = 9; */ public com.alibaba.nacos.shaded.com.google.protobuf.TimestampOrBuilder getTimeOrBuilder() { if (timeBuilder_ != null) { return timeBuilder_.getMessageOrBuilder(); } else { return time_ == null ? com.alibaba.nacos.shaded.com.google.protobuf.Timestamp.getDefaultInstance() : time_; } } /** * * *
       * The timestamp when the `destination` service receives the last byte of
       * the request.
       * 
* * .google.protobuf.Timestamp time = 9; */ private com.alibaba.nacos.shaded.com.google.protobuf.SingleFieldBuilderV3< com.alibaba.nacos.shaded.com.google.protobuf.Timestamp, com.alibaba.nacos.shaded.com.google.protobuf.Timestamp.Builder, com.alibaba.nacos.shaded.com.google.protobuf.TimestampOrBuilder> getTimeFieldBuilder() { if (timeBuilder_ == null) { timeBuilder_ = new com.alibaba.nacos.shaded.com.google.protobuf.SingleFieldBuilderV3< com.alibaba.nacos.shaded.com.google.protobuf.Timestamp, com.alibaba.nacos.shaded.com.google.protobuf.Timestamp.Builder, com.alibaba.nacos.shaded.com.google.protobuf.TimestampOrBuilder>( getTime(), getParentForChildren(), isClean()); time_ = null; } return timeBuilder_; } private long size_; /** * * *
       * The HTTP request size in bytes. If unknown, it must be -1.
       * 
* * int64 size = 10; * * @return The size. */ @java.lang.Override public long getSize() { return size_; } /** * * *
       * The HTTP request size in bytes. If unknown, it must be -1.
       * 
* * int64 size = 10; * * @param value The size to set. * @return This builder for chaining. */ public Builder setSize(long value) { size_ = value; bitField0_ |= 0x00000100; onChanged(); return this; } /** * * *
       * The HTTP request size in bytes. If unknown, it must be -1.
       * 
* * int64 size = 10; * * @return This builder for chaining. */ public Builder clearSize() { bitField0_ = (bitField0_ & ~0x00000100); size_ = 0L; onChanged(); return this; } private java.lang.Object protocol_ = ""; /** * * *
       * The network protocol used with the request, such as "http/1.1",
       * "spdy/3", "h2", "h2c", "webrtc", "tcp", "udp", "quic". See
       * https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids
       * for details.
       * 
* * string protocol = 11; * * @return The protocol. */ public java.lang.String getProtocol() { java.lang.Object ref = protocol_; if (!(ref instanceof java.lang.String)) { com.alibaba.nacos.shaded.com.google.protobuf.ByteString bs = (com.alibaba.nacos.shaded.com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); protocol_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
       * The network protocol used with the request, such as "http/1.1",
       * "spdy/3", "h2", "h2c", "webrtc", "tcp", "udp", "quic". See
       * https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids
       * for details.
       * 
* * string protocol = 11; * * @return The bytes for protocol. */ public com.alibaba.nacos.shaded.com.google.protobuf.ByteString getProtocolBytes() { java.lang.Object ref = protocol_; if (ref instanceof String) { com.alibaba.nacos.shaded.com.google.protobuf.ByteString b = com.alibaba.nacos.shaded.com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); protocol_ = b; return b; } else { return (com.alibaba.nacos.shaded.com.google.protobuf.ByteString) ref; } } /** * * *
       * The network protocol used with the request, such as "http/1.1",
       * "spdy/3", "h2", "h2c", "webrtc", "tcp", "udp", "quic". See
       * https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids
       * for details.
       * 
* * string protocol = 11; * * @param value The protocol to set. * @return This builder for chaining. */ public Builder setProtocol(java.lang.String value) { if (value == null) { throw new NullPointerException(); } protocol_ = value; bitField0_ |= 0x00000200; onChanged(); return this; } /** * * *
       * The network protocol used with the request, such as "http/1.1",
       * "spdy/3", "h2", "h2c", "webrtc", "tcp", "udp", "quic". See
       * https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids
       * for details.
       * 
* * string protocol = 11; * * @return This builder for chaining. */ public Builder clearProtocol() { protocol_ = getDefaultInstance().getProtocol(); bitField0_ = (bitField0_ & ~0x00000200); onChanged(); return this; } /** * * *
       * The network protocol used with the request, such as "http/1.1",
       * "spdy/3", "h2", "h2c", "webrtc", "tcp", "udp", "quic". See
       * https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids
       * for details.
       * 
* * string protocol = 11; * * @param value The bytes for protocol to set. * @return This builder for chaining. */ public Builder setProtocolBytes(com.alibaba.nacos.shaded.com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); protocol_ = value; bitField0_ |= 0x00000200; onChanged(); return this; } private java.lang.Object reason_ = ""; /** * * *
       * A special parameter for request reason. It is used by security systems
       * to associate auditing information with a request.
       * 
* * string reason = 12; * * @return The reason. */ public java.lang.String getReason() { java.lang.Object ref = reason_; if (!(ref instanceof java.lang.String)) { com.alibaba.nacos.shaded.com.google.protobuf.ByteString bs = (com.alibaba.nacos.shaded.com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); reason_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
       * A special parameter for request reason. It is used by security systems
       * to associate auditing information with a request.
       * 
* * string reason = 12; * * @return The bytes for reason. */ public com.alibaba.nacos.shaded.com.google.protobuf.ByteString getReasonBytes() { java.lang.Object ref = reason_; if (ref instanceof String) { com.alibaba.nacos.shaded.com.google.protobuf.ByteString b = com.alibaba.nacos.shaded.com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); reason_ = b; return b; } else { return (com.alibaba.nacos.shaded.com.google.protobuf.ByteString) ref; } } /** * * *
       * A special parameter for request reason. It is used by security systems
       * to associate auditing information with a request.
       * 
* * string reason = 12; * * @param value The reason to set. * @return This builder for chaining. */ public Builder setReason(java.lang.String value) { if (value == null) { throw new NullPointerException(); } reason_ = value; bitField0_ |= 0x00000400; onChanged(); return this; } /** * * *
       * A special parameter for request reason. It is used by security systems
       * to associate auditing information with a request.
       * 
* * string reason = 12; * * @return This builder for chaining. */ public Builder clearReason() { reason_ = getDefaultInstance().getReason(); bitField0_ = (bitField0_ & ~0x00000400); onChanged(); return this; } /** * * *
       * A special parameter for request reason. It is used by security systems
       * to associate auditing information with a request.
       * 
* * string reason = 12; * * @param value The bytes for reason to set. * @return This builder for chaining. */ public Builder setReasonBytes(com.alibaba.nacos.shaded.com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); reason_ = value; bitField0_ |= 0x00000400; onChanged(); return this; } private com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Auth auth_; private com.alibaba.nacos.shaded.com.google.protobuf.SingleFieldBuilderV3< com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Auth, com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Auth.Builder, com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.AuthOrBuilder> authBuilder_; /** * * *
       * The request authentication. May be absent for unauthenticated requests.
       * Derived from the HTTP request `Authorization` header or equivalent.
       * 
* * .google.rpc.context.AttributeContext.Auth auth = 13; * * @return Whether the auth field is set. */ public boolean hasAuth() { return ((bitField0_ & 0x00000800) != 0); } /** * * *
       * The request authentication. May be absent for unauthenticated requests.
       * Derived from the HTTP request `Authorization` header or equivalent.
       * 
* * .google.rpc.context.AttributeContext.Auth auth = 13; * * @return The auth. */ public com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Auth getAuth() { if (authBuilder_ == null) { return auth_ == null ? com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Auth.getDefaultInstance() : auth_; } else { return authBuilder_.getMessage(); } } /** * * *
       * The request authentication. May be absent for unauthenticated requests.
       * Derived from the HTTP request `Authorization` header or equivalent.
       * 
* * .google.rpc.context.AttributeContext.Auth auth = 13; */ public Builder setAuth(com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Auth value) { if (authBuilder_ == null) { if (value == null) { throw new NullPointerException(); } auth_ = value; } else { authBuilder_.setMessage(value); } bitField0_ |= 0x00000800; onChanged(); return this; } /** * * *
       * The request authentication. May be absent for unauthenticated requests.
       * Derived from the HTTP request `Authorization` header or equivalent.
       * 
* * .google.rpc.context.AttributeContext.Auth auth = 13; */ public Builder setAuth(com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Auth.Builder builderForValue) { if (authBuilder_ == null) { auth_ = builderForValue.build(); } else { authBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000800; onChanged(); return this; } /** * * *
       * The request authentication. May be absent for unauthenticated requests.
       * Derived from the HTTP request `Authorization` header or equivalent.
       * 
* * .google.rpc.context.AttributeContext.Auth auth = 13; */ public Builder mergeAuth(com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Auth value) { if (authBuilder_ == null) { if (((bitField0_ & 0x00000800) != 0) && auth_ != null && auth_ != com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Auth.getDefaultInstance()) { getAuthBuilder().mergeFrom(value); } else { auth_ = value; } } else { authBuilder_.mergeFrom(value); } bitField0_ |= 0x00000800; onChanged(); return this; } /** * * *
       * The request authentication. May be absent for unauthenticated requests.
       * Derived from the HTTP request `Authorization` header or equivalent.
       * 
* * .google.rpc.context.AttributeContext.Auth auth = 13; */ public Builder clearAuth() { bitField0_ = (bitField0_ & ~0x00000800); auth_ = null; if (authBuilder_ != null) { authBuilder_.dispose(); authBuilder_ = null; } onChanged(); return this; } /** * * *
       * The request authentication. May be absent for unauthenticated requests.
       * Derived from the HTTP request `Authorization` header or equivalent.
       * 
* * .google.rpc.context.AttributeContext.Auth auth = 13; */ public com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Auth.Builder getAuthBuilder() { bitField0_ |= 0x00000800; onChanged(); return getAuthFieldBuilder().getBuilder(); } /** * * *
       * The request authentication. May be absent for unauthenticated requests.
       * Derived from the HTTP request `Authorization` header or equivalent.
       * 
* * .google.rpc.context.AttributeContext.Auth auth = 13; */ public com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.AuthOrBuilder getAuthOrBuilder() { if (authBuilder_ != null) { return authBuilder_.getMessageOrBuilder(); } else { return auth_ == null ? com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Auth.getDefaultInstance() : auth_; } } /** * * *
       * The request authentication. May be absent for unauthenticated requests.
       * Derived from the HTTP request `Authorization` header or equivalent.
       * 
* * .google.rpc.context.AttributeContext.Auth auth = 13; */ private com.alibaba.nacos.shaded.com.google.protobuf.SingleFieldBuilderV3< com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Auth, com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Auth.Builder, com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.AuthOrBuilder> getAuthFieldBuilder() { if (authBuilder_ == null) { authBuilder_ = new com.alibaba.nacos.shaded.com.google.protobuf.SingleFieldBuilderV3< com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Auth, com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Auth.Builder, com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.AuthOrBuilder>( getAuth(), getParentForChildren(), isClean()); auth_ = null; } return authBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.alibaba.nacos.shaded.com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.alibaba.nacos.shaded.com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.rpc.context.AttributeContext.Request) } // @@protoc_insertion_point(class_scope:google.rpc.context.AttributeContext.Request) private static final com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Request DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Request(); } public static com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Request getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.alibaba.nacos.shaded.com.google.protobuf.Parser PARSER = new com.alibaba.nacos.shaded.com.google.protobuf.AbstractParser() { @java.lang.Override public Request parsePartialFrom( com.alibaba.nacos.shaded.com.google.protobuf.CodedInputStream input, com.alibaba.nacos.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.alibaba.nacos.shaded.com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.alibaba.nacos.shaded.com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.alibaba.nacos.shaded.com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException() .setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.alibaba.nacos.shaded.com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.alibaba.nacos.shaded.com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.alibaba.nacos.shaded.com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Request getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.rpc.context.AttributeContext.Response) com.alibaba.nacos.shaded.com.google.protobuf.MessageOrBuilder { /** * * *
     * The HTTP response status code, such as `200` and `404`.
     * 
* * int64 code = 1; * * @return The code. */ long getCode(); /** * * *
     * The HTTP response size in bytes. If unknown, it must be -1.
     * 
* * int64 size = 2; * * @return The size. */ long getSize(); /** * * *
     * The HTTP response headers. If multiple headers share the same key, they
     * must be merged according to HTTP spec. All header keys must be
     * lowercased, because HTTP header keys are case-insensitive.
     * 
* * map<string, string> headers = 3; */ int getHeadersCount(); /** * * *
     * The HTTP response headers. If multiple headers share the same key, they
     * must be merged according to HTTP spec. All header keys must be
     * lowercased, because HTTP header keys are case-insensitive.
     * 
* * map<string, string> headers = 3; */ boolean containsHeaders(java.lang.String key); /** Use {@link #getHeadersMap()} instead. */ @java.lang.Deprecated java.util.Map getHeaders(); /** * * *
     * The HTTP response headers. If multiple headers share the same key, they
     * must be merged according to HTTP spec. All header keys must be
     * lowercased, because HTTP header keys are case-insensitive.
     * 
* * map<string, string> headers = 3; */ java.util.Map getHeadersMap(); /** * * *
     * The HTTP response headers. If multiple headers share the same key, they
     * must be merged according to HTTP spec. All header keys must be
     * lowercased, because HTTP header keys are case-insensitive.
     * 
* * map<string, string> headers = 3; */ /* nullable */ java.lang.String getHeadersOrDefault( java.lang.String key, /* nullable */ java.lang.String defaultValue); /** * * *
     * The HTTP response headers. If multiple headers share the same key, they
     * must be merged according to HTTP spec. All header keys must be
     * lowercased, because HTTP header keys are case-insensitive.
     * 
* * map<string, string> headers = 3; */ java.lang.String getHeadersOrThrow(java.lang.String key); /** * * *
     * The timestamp when the `destination` service sends the last byte of
     * the response.
     * 
* * .google.protobuf.Timestamp time = 4; * * @return Whether the time field is set. */ boolean hasTime(); /** * * *
     * The timestamp when the `destination` service sends the last byte of
     * the response.
     * 
* * .google.protobuf.Timestamp time = 4; * * @return The time. */ com.alibaba.nacos.shaded.com.google.protobuf.Timestamp getTime(); /** * * *
     * The timestamp when the `destination` service sends the last byte of
     * the response.
     * 
* * .google.protobuf.Timestamp time = 4; */ com.alibaba.nacos.shaded.com.google.protobuf.TimestampOrBuilder getTimeOrBuilder(); /** * * *
     * The amount 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 amount 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.alibaba.nacos.shaded.com.google.protobuf.Duration getBackendLatency(); /** * * *
     * The amount 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.alibaba.nacos.shaded.com.google.protobuf.DurationOrBuilder getBackendLatencyOrBuilder(); } /** * * *
   * This message defines attributes for a typical network response. It
   * generally models semantics of an HTTP response.
   * 
* * Protobuf type {@code google.rpc.context.AttributeContext.Response} */ public static final class Response extends com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.rpc.context.AttributeContext.Response) ResponseOrBuilder { private static final long serialVersionUID = 0L; // Use Response.newBuilder() to construct. private Response(com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Response() {} @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Response(); } @java.lang.Override public final com.alibaba.nacos.shaded.com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.alibaba.nacos.shaded.com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContextProto .internal_static_google_rpc_context_AttributeContext_Response_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.alibaba.nacos.shaded.com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 3: return internalGetHeaders(); default: throw new RuntimeException("Invalid map field number: " + number); } } @java.lang.Override protected com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContextProto .internal_static_google_rpc_context_AttributeContext_Response_fieldAccessorTable .ensureFieldAccessorsInitialized( com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Response.class, com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Response.Builder.class); } public static final int CODE_FIELD_NUMBER = 1; private long code_ = 0L; /** * * *
     * The HTTP response status code, such as `200` and `404`.
     * 
* * int64 code = 1; * * @return The code. */ @java.lang.Override public long getCode() { return code_; } public static final int SIZE_FIELD_NUMBER = 2; private long size_ = 0L; /** * * *
     * The HTTP response size in bytes. If unknown, it must be -1.
     * 
* * int64 size = 2; * * @return The size. */ @java.lang.Override public long getSize() { return size_; } public static final int HEADERS_FIELD_NUMBER = 3; private static final class HeadersDefaultEntryHolder { static final com.alibaba.nacos.shaded.com.google.protobuf.MapEntry defaultEntry = com.alibaba.nacos.shaded.com.google.protobuf.MapEntry.newDefaultInstance( com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContextProto .internal_static_google_rpc_context_AttributeContext_Response_HeadersEntry_descriptor, com.alibaba.nacos.shaded.com.google.protobuf.WireFormat.FieldType.STRING, "", com.alibaba.nacos.shaded.com.google.protobuf.WireFormat.FieldType.STRING, ""); } @SuppressWarnings("serial") private com.alibaba.nacos.shaded.com.google.protobuf.MapField headers_; private com.alibaba.nacos.shaded.com.google.protobuf.MapField internalGetHeaders() { if (headers_ == null) { return com.alibaba.nacos.shaded.com.google.protobuf.MapField.emptyMapField(HeadersDefaultEntryHolder.defaultEntry); } return headers_; } public int getHeadersCount() { return internalGetHeaders().getMap().size(); } /** * * *
     * The HTTP response headers. If multiple headers share the same key, they
     * must be merged according to HTTP spec. All header keys must be
     * lowercased, because HTTP header keys are case-insensitive.
     * 
* * map<string, string> headers = 3; */ @java.lang.Override public boolean containsHeaders(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetHeaders().getMap().containsKey(key); } /** Use {@link #getHeadersMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getHeaders() { return getHeadersMap(); } /** * * *
     * The HTTP response headers. If multiple headers share the same key, they
     * must be merged according to HTTP spec. All header keys must be
     * lowercased, because HTTP header keys are case-insensitive.
     * 
* * map<string, string> headers = 3; */ @java.lang.Override public java.util.Map getHeadersMap() { return internalGetHeaders().getMap(); } /** * * *
     * The HTTP response headers. If multiple headers share the same key, they
     * must be merged according to HTTP spec. All header keys must be
     * lowercased, because HTTP header keys are case-insensitive.
     * 
* * map<string, string> headers = 3; */ @java.lang.Override public /* nullable */ java.lang.String getHeadersOrDefault( java.lang.String key, /* nullable */ java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetHeaders().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * * *
     * The HTTP response headers. If multiple headers share the same key, they
     * must be merged according to HTTP spec. All header keys must be
     * lowercased, because HTTP header keys are case-insensitive.
     * 
* * map<string, string> headers = 3; */ @java.lang.Override public java.lang.String getHeadersOrThrow(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetHeaders().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int TIME_FIELD_NUMBER = 4; private com.alibaba.nacos.shaded.com.google.protobuf.Timestamp time_; /** * * *
     * The timestamp when the `destination` service sends the last byte of
     * the response.
     * 
* * .google.protobuf.Timestamp time = 4; * * @return Whether the time field is set. */ @java.lang.Override public boolean hasTime() { return time_ != null; } /** * * *
     * The timestamp when the `destination` service sends the last byte of
     * the response.
     * 
* * .google.protobuf.Timestamp time = 4; * * @return The time. */ @java.lang.Override public com.alibaba.nacos.shaded.com.google.protobuf.Timestamp getTime() { return time_ == null ? com.alibaba.nacos.shaded.com.google.protobuf.Timestamp.getDefaultInstance() : time_; } /** * * *
     * The timestamp when the `destination` service sends the last byte of
     * the response.
     * 
* * .google.protobuf.Timestamp time = 4; */ @java.lang.Override public com.alibaba.nacos.shaded.com.google.protobuf.TimestampOrBuilder getTimeOrBuilder() { return time_ == null ? com.alibaba.nacos.shaded.com.google.protobuf.Timestamp.getDefaultInstance() : time_; } public static final int BACKEND_LATENCY_FIELD_NUMBER = 5; private com.alibaba.nacos.shaded.com.google.protobuf.Duration backendLatency_; /** * * *
     * The amount 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 amount 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.alibaba.nacos.shaded.com.google.protobuf.Duration getBackendLatency() { return backendLatency_ == null ? com.alibaba.nacos.shaded.com.google.protobuf.Duration.getDefaultInstance() : backendLatency_; } /** * * *
     * The amount 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.alibaba.nacos.shaded.com.google.protobuf.DurationOrBuilder getBackendLatencyOrBuilder() { return backendLatency_ == null ? com.alibaba.nacos.shaded.com.google.protobuf.Duration.getDefaultInstance() : backendLatency_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.alibaba.nacos.shaded.com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (code_ != 0L) { output.writeInt64(1, code_); } if (size_ != 0L) { output.writeInt64(2, size_); } com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetHeaders(), HeadersDefaultEntryHolder.defaultEntry, 3); if (time_ != null) { output.writeMessage(4, getTime()); } if (backendLatency_ != null) { output.writeMessage(5, getBackendLatency()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (code_ != 0L) { size += com.alibaba.nacos.shaded.com.google.protobuf.CodedOutputStream.computeInt64Size(1, code_); } if (size_ != 0L) { size += com.alibaba.nacos.shaded.com.google.protobuf.CodedOutputStream.computeInt64Size(2, size_); } for (java.util.Map.Entry entry : internalGetHeaders().getMap().entrySet()) { com.alibaba.nacos.shaded.com.google.protobuf.MapEntry headers__ = HeadersDefaultEntryHolder.defaultEntry .newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.alibaba.nacos.shaded.com.google.protobuf.CodedOutputStream.computeMessageSize(3, headers__); } if (time_ != null) { size += com.alibaba.nacos.shaded.com.google.protobuf.CodedOutputStream.computeMessageSize(4, getTime()); } if (backendLatency_ != null) { size += com.alibaba.nacos.shaded.com.google.protobuf.CodedOutputStream.computeMessageSize(5, getBackendLatency()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Response)) { return super.equals(obj); } com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Response other = (com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Response) obj; if (getCode() != other.getCode()) return false; if (getSize() != other.getSize()) return false; if (!internalGetHeaders().equals(other.internalGetHeaders())) return false; if (hasTime() != other.hasTime()) return false; 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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + CODE_FIELD_NUMBER; hash = (53 * hash) + com.alibaba.nacos.shaded.com.google.protobuf.Internal.hashLong(getCode()); hash = (37 * hash) + SIZE_FIELD_NUMBER; hash = (53 * hash) + com.alibaba.nacos.shaded.com.google.protobuf.Internal.hashLong(getSize()); if (!internalGetHeaders().getMap().isEmpty()) { hash = (37 * hash) + HEADERS_FIELD_NUMBER; hash = (53 * hash) + internalGetHeaders().hashCode(); } if (hasTime()) { 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) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Response parseFrom( java.nio.ByteBuffer data) throws com.alibaba.nacos.shaded.com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Response parseFrom( java.nio.ByteBuffer data, com.alibaba.nacos.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.alibaba.nacos.shaded.com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Response parseFrom( com.alibaba.nacos.shaded.com.google.protobuf.ByteString data) throws com.alibaba.nacos.shaded.com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Response parseFrom( com.alibaba.nacos.shaded.com.google.protobuf.ByteString data, com.alibaba.nacos.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.alibaba.nacos.shaded.com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Response parseFrom(byte[] data) throws com.alibaba.nacos.shaded.com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Response parseFrom( byte[] data, com.alibaba.nacos.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.alibaba.nacos.shaded.com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Response parseFrom( java.io.InputStream input) throws java.io.IOException { return com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Response parseFrom( java.io.InputStream input, com.alibaba.nacos.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } public static com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Response parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Response parseDelimitedFrom( java.io.InputStream input, com.alibaba.nacos.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Response parseFrom( com.alibaba.nacos.shaded.com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Response parseFrom( com.alibaba.nacos.shaded.com.google.protobuf.CodedInputStream input, com.alibaba.nacos.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Response prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * * *
     * This message defines attributes for a typical network response. It
     * generally models semantics of an HTTP response.
     * 
* * Protobuf type {@code google.rpc.context.AttributeContext.Response} */ public static final class Builder extends com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.rpc.context.AttributeContext.Response) com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.ResponseOrBuilder { public static final com.alibaba.nacos.shaded.com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContextProto .internal_static_google_rpc_context_AttributeContext_Response_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.alibaba.nacos.shaded.com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 3: return internalGetHeaders(); default: throw new RuntimeException("Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.alibaba.nacos.shaded.com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { case 3: return internalGetMutableHeaders(); default: throw new RuntimeException("Invalid map field number: " + number); } } @java.lang.Override protected com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContextProto .internal_static_google_rpc_context_AttributeContext_Response_fieldAccessorTable .ensureFieldAccessorsInitialized( com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Response.class, com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Response.Builder.class); } // Construct using com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Response.newBuilder() private Builder() {} private Builder(com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; code_ = 0L; size_ = 0L; internalGetMutableHeaders().clear(); time_ = null; if (timeBuilder_ != null) { timeBuilder_.dispose(); timeBuilder_ = null; } backendLatency_ = null; if (backendLatencyBuilder_ != null) { backendLatencyBuilder_.dispose(); backendLatencyBuilder_ = null; } return this; } @java.lang.Override public com.alibaba.nacos.shaded.com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContextProto .internal_static_google_rpc_context_AttributeContext_Response_descriptor; } @java.lang.Override public com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Response getDefaultInstanceForType() { return com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Response.getDefaultInstance(); } @java.lang.Override public com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Response build() { com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Response result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Response buildPartial() { com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Response result = new com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Response(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Response result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.code_ = code_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.size_ = size_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.headers_ = internalGetHeaders(); result.headers_.makeImmutable(); } if (((from_bitField0_ & 0x00000008) != 0)) { result.time_ = timeBuilder_ == null ? time_ : timeBuilder_.build(); } if (((from_bitField0_ & 0x00000010) != 0)) { result.backendLatency_ = backendLatencyBuilder_ == null ? backendLatency_ : backendLatencyBuilder_.build(); } } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.alibaba.nacos.shaded.com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField(com.alibaba.nacos.shaded.com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.alibaba.nacos.shaded.com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.alibaba.nacos.shaded.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.alibaba.nacos.shaded.com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.alibaba.nacos.shaded.com.google.protobuf.Message other) { if (other instanceof com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Response) { return mergeFrom((com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Response) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Response other) { if (other == com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Response.getDefaultInstance()) return this; if (other.getCode() != 0L) { setCode(other.getCode()); } if (other.getSize() != 0L) { setSize(other.getSize()); } internalGetMutableHeaders().mergeFrom(other.internalGetHeaders()); bitField0_ |= 0x00000004; if (other.hasTime()) { mergeTime(other.getTime()); } if (other.hasBackendLatency()) { mergeBackendLatency(other.getBackendLatency()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.alibaba.nacos.shaded.com.google.protobuf.CodedInputStream input, com.alibaba.nacos.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { code_ = input.readInt64(); bitField0_ |= 0x00000001; break; } // case 8 case 16: { size_ = input.readInt64(); bitField0_ |= 0x00000002; break; } // case 16 case 26: { com.alibaba.nacos.shaded.com.google.protobuf.MapEntry headers__ = input.readMessage( HeadersDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableHeaders() .getMutableMap() .put(headers__.getKey(), headers__.getValue()); bitField0_ |= 0x00000004; break; } // case 26 case 34: { input.readMessage(getTimeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000008; break; } // case 34 case 42: { input.readMessage( getBackendLatencyFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000010; break; } // case 42 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.alibaba.nacos.shaded.com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private long code_; /** * * *
       * The HTTP response status code, such as `200` and `404`.
       * 
* * int64 code = 1; * * @return The code. */ @java.lang.Override public long getCode() { return code_; } /** * * *
       * The HTTP response status code, such as `200` and `404`.
       * 
* * int64 code = 1; * * @param value The code to set. * @return This builder for chaining. */ public Builder setCode(long value) { code_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
       * The HTTP response status code, such as `200` and `404`.
       * 
* * int64 code = 1; * * @return This builder for chaining. */ public Builder clearCode() { bitField0_ = (bitField0_ & ~0x00000001); code_ = 0L; onChanged(); return this; } private long size_; /** * * *
       * The HTTP response size in bytes. If unknown, it must be -1.
       * 
* * int64 size = 2; * * @return The size. */ @java.lang.Override public long getSize() { return size_; } /** * * *
       * The HTTP response size in bytes. If unknown, it must be -1.
       * 
* * int64 size = 2; * * @param value The size to set. * @return This builder for chaining. */ public Builder setSize(long value) { size_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
       * The HTTP response size in bytes. If unknown, it must be -1.
       * 
* * int64 size = 2; * * @return This builder for chaining. */ public Builder clearSize() { bitField0_ = (bitField0_ & ~0x00000002); size_ = 0L; onChanged(); return this; } private com.alibaba.nacos.shaded.com.google.protobuf.MapField headers_; private com.alibaba.nacos.shaded.com.google.protobuf.MapField internalGetHeaders() { if (headers_ == null) { return com.alibaba.nacos.shaded.com.google.protobuf.MapField.emptyMapField(HeadersDefaultEntryHolder.defaultEntry); } return headers_; } private com.alibaba.nacos.shaded.com.google.protobuf.MapField internalGetMutableHeaders() { if (headers_ == null) { headers_ = com.alibaba.nacos.shaded.com.google.protobuf.MapField.newMapField(HeadersDefaultEntryHolder.defaultEntry); } if (!headers_.isMutable()) { headers_ = headers_.copy(); } bitField0_ |= 0x00000004; onChanged(); return headers_; } public int getHeadersCount() { return internalGetHeaders().getMap().size(); } /** * * *
       * The HTTP response headers. If multiple headers share the same key, they
       * must be merged according to HTTP spec. All header keys must be
       * lowercased, because HTTP header keys are case-insensitive.
       * 
* * map<string, string> headers = 3; */ @java.lang.Override public boolean containsHeaders(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetHeaders().getMap().containsKey(key); } /** Use {@link #getHeadersMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getHeaders() { return getHeadersMap(); } /** * * *
       * The HTTP response headers. If multiple headers share the same key, they
       * must be merged according to HTTP spec. All header keys must be
       * lowercased, because HTTP header keys are case-insensitive.
       * 
* * map<string, string> headers = 3; */ @java.lang.Override public java.util.Map getHeadersMap() { return internalGetHeaders().getMap(); } /** * * *
       * The HTTP response headers. If multiple headers share the same key, they
       * must be merged according to HTTP spec. All header keys must be
       * lowercased, because HTTP header keys are case-insensitive.
       * 
* * map<string, string> headers = 3; */ @java.lang.Override public /* nullable */ java.lang.String getHeadersOrDefault( java.lang.String key, /* nullable */ java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetHeaders().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * * *
       * The HTTP response headers. If multiple headers share the same key, they
       * must be merged according to HTTP spec. All header keys must be
       * lowercased, because HTTP header keys are case-insensitive.
       * 
* * map<string, string> headers = 3; */ @java.lang.Override public java.lang.String getHeadersOrThrow(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetHeaders().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearHeaders() { bitField0_ = (bitField0_ & ~0x00000004); internalGetMutableHeaders().getMutableMap().clear(); return this; } /** * * *
       * The HTTP response headers. If multiple headers share the same key, they
       * must be merged according to HTTP spec. All header keys must be
       * lowercased, because HTTP header keys are case-insensitive.
       * 
* * map<string, string> headers = 3; */ public Builder removeHeaders(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableHeaders().getMutableMap().remove(key); return this; } /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableHeaders() { bitField0_ |= 0x00000004; return internalGetMutableHeaders().getMutableMap(); } /** * * *
       * The HTTP response headers. If multiple headers share the same key, they
       * must be merged according to HTTP spec. All header keys must be
       * lowercased, because HTTP header keys are case-insensitive.
       * 
* * map<string, string> headers = 3; */ public Builder putHeaders(java.lang.String key, java.lang.String value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableHeaders().getMutableMap().put(key, value); bitField0_ |= 0x00000004; return this; } /** * * *
       * The HTTP response headers. If multiple headers share the same key, they
       * must be merged according to HTTP spec. All header keys must be
       * lowercased, because HTTP header keys are case-insensitive.
       * 
* * map<string, string> headers = 3; */ public Builder putAllHeaders(java.util.Map values) { internalGetMutableHeaders().getMutableMap().putAll(values); bitField0_ |= 0x00000004; return this; } private com.alibaba.nacos.shaded.com.google.protobuf.Timestamp time_; private com.alibaba.nacos.shaded.com.google.protobuf.SingleFieldBuilderV3< com.alibaba.nacos.shaded.com.google.protobuf.Timestamp, com.alibaba.nacos.shaded.com.google.protobuf.Timestamp.Builder, com.alibaba.nacos.shaded.com.google.protobuf.TimestampOrBuilder> timeBuilder_; /** * * *
       * The timestamp when the `destination` service sends the last byte of
       * the response.
       * 
* * .google.protobuf.Timestamp time = 4; * * @return Whether the time field is set. */ public boolean hasTime() { return ((bitField0_ & 0x00000008) != 0); } /** * * *
       * The timestamp when the `destination` service sends the last byte of
       * the response.
       * 
* * .google.protobuf.Timestamp time = 4; * * @return The time. */ public com.alibaba.nacos.shaded.com.google.protobuf.Timestamp getTime() { if (timeBuilder_ == null) { return time_ == null ? com.alibaba.nacos.shaded.com.google.protobuf.Timestamp.getDefaultInstance() : time_; } else { return timeBuilder_.getMessage(); } } /** * * *
       * The timestamp when the `destination` service sends the last byte of
       * the response.
       * 
* * .google.protobuf.Timestamp time = 4; */ public Builder setTime(com.alibaba.nacos.shaded.com.google.protobuf.Timestamp value) { if (timeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } time_ = value; } else { timeBuilder_.setMessage(value); } bitField0_ |= 0x00000008; onChanged(); return this; } /** * * *
       * The timestamp when the `destination` service sends the last byte of
       * the response.
       * 
* * .google.protobuf.Timestamp time = 4; */ public Builder setTime(com.alibaba.nacos.shaded.com.google.protobuf.Timestamp.Builder builderForValue) { if (timeBuilder_ == null) { time_ = builderForValue.build(); } else { timeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; onChanged(); return this; } /** * * *
       * The timestamp when the `destination` service sends the last byte of
       * the response.
       * 
* * .google.protobuf.Timestamp time = 4; */ public Builder mergeTime(com.alibaba.nacos.shaded.com.google.protobuf.Timestamp value) { if (timeBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0) && time_ != null && time_ != com.alibaba.nacos.shaded.com.google.protobuf.Timestamp.getDefaultInstance()) { getTimeBuilder().mergeFrom(value); } else { time_ = value; } } else { timeBuilder_.mergeFrom(value); } bitField0_ |= 0x00000008; onChanged(); return this; } /** * * *
       * The timestamp when the `destination` service sends the last byte of
       * the response.
       * 
* * .google.protobuf.Timestamp time = 4; */ public Builder clearTime() { bitField0_ = (bitField0_ & ~0x00000008); time_ = null; if (timeBuilder_ != null) { timeBuilder_.dispose(); timeBuilder_ = null; } onChanged(); return this; } /** * * *
       * The timestamp when the `destination` service sends the last byte of
       * the response.
       * 
* * .google.protobuf.Timestamp time = 4; */ public com.alibaba.nacos.shaded.com.google.protobuf.Timestamp.Builder getTimeBuilder() { bitField0_ |= 0x00000008; onChanged(); return getTimeFieldBuilder().getBuilder(); } /** * * *
       * The timestamp when the `destination` service sends the last byte of
       * the response.
       * 
* * .google.protobuf.Timestamp time = 4; */ public com.alibaba.nacos.shaded.com.google.protobuf.TimestampOrBuilder getTimeOrBuilder() { if (timeBuilder_ != null) { return timeBuilder_.getMessageOrBuilder(); } else { return time_ == null ? com.alibaba.nacos.shaded.com.google.protobuf.Timestamp.getDefaultInstance() : time_; } } /** * * *
       * The timestamp when the `destination` service sends the last byte of
       * the response.
       * 
* * .google.protobuf.Timestamp time = 4; */ private com.alibaba.nacos.shaded.com.google.protobuf.SingleFieldBuilderV3< com.alibaba.nacos.shaded.com.google.protobuf.Timestamp, com.alibaba.nacos.shaded.com.google.protobuf.Timestamp.Builder, com.alibaba.nacos.shaded.com.google.protobuf.TimestampOrBuilder> getTimeFieldBuilder() { if (timeBuilder_ == null) { timeBuilder_ = new com.alibaba.nacos.shaded.com.google.protobuf.SingleFieldBuilderV3< com.alibaba.nacos.shaded.com.google.protobuf.Timestamp, com.alibaba.nacos.shaded.com.google.protobuf.Timestamp.Builder, com.alibaba.nacos.shaded.com.google.protobuf.TimestampOrBuilder>( getTime(), getParentForChildren(), isClean()); time_ = null; } return timeBuilder_; } private com.alibaba.nacos.shaded.com.google.protobuf.Duration backendLatency_; private com.alibaba.nacos.shaded.com.google.protobuf.SingleFieldBuilderV3< com.alibaba.nacos.shaded.com.google.protobuf.Duration, com.alibaba.nacos.shaded.com.google.protobuf.Duration.Builder, com.alibaba.nacos.shaded.com.google.protobuf.DurationOrBuilder> backendLatencyBuilder_; /** * * *
       * The amount 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 ((bitField0_ & 0x00000010) != 0); } /** * * *
       * The amount 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.alibaba.nacos.shaded.com.google.protobuf.Duration getBackendLatency() { if (backendLatencyBuilder_ == null) { return backendLatency_ == null ? com.alibaba.nacos.shaded.com.google.protobuf.Duration.getDefaultInstance() : backendLatency_; } else { return backendLatencyBuilder_.getMessage(); } } /** * * *
       * The amount 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.alibaba.nacos.shaded.com.google.protobuf.Duration value) { if (backendLatencyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } backendLatency_ = value; } else { backendLatencyBuilder_.setMessage(value); } bitField0_ |= 0x00000010; onChanged(); return this; } /** * * *
       * The amount 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.alibaba.nacos.shaded.com.google.protobuf.Duration.Builder builderForValue) { if (backendLatencyBuilder_ == null) { backendLatency_ = builderForValue.build(); } else { backendLatencyBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; onChanged(); return this; } /** * * *
       * The amount 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.alibaba.nacos.shaded.com.google.protobuf.Duration value) { if (backendLatencyBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0) && backendLatency_ != null && backendLatency_ != com.alibaba.nacos.shaded.com.google.protobuf.Duration.getDefaultInstance()) { getBackendLatencyBuilder().mergeFrom(value); } else { backendLatency_ = value; } } else { backendLatencyBuilder_.mergeFrom(value); } bitField0_ |= 0x00000010; onChanged(); return this; } /** * * *
       * The amount 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() { bitField0_ = (bitField0_ & ~0x00000010); backendLatency_ = null; if (backendLatencyBuilder_ != null) { backendLatencyBuilder_.dispose(); backendLatencyBuilder_ = null; } onChanged(); return this; } /** * * *
       * The amount 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.alibaba.nacos.shaded.com.google.protobuf.Duration.Builder getBackendLatencyBuilder() { bitField0_ |= 0x00000010; onChanged(); return getBackendLatencyFieldBuilder().getBuilder(); } /** * * *
       * The amount 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.alibaba.nacos.shaded.com.google.protobuf.DurationOrBuilder getBackendLatencyOrBuilder() { if (backendLatencyBuilder_ != null) { return backendLatencyBuilder_.getMessageOrBuilder(); } else { return backendLatency_ == null ? com.alibaba.nacos.shaded.com.google.protobuf.Duration.getDefaultInstance() : backendLatency_; } } /** * * *
       * The amount 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.alibaba.nacos.shaded.com.google.protobuf.SingleFieldBuilderV3< com.alibaba.nacos.shaded.com.google.protobuf.Duration, com.alibaba.nacos.shaded.com.google.protobuf.Duration.Builder, com.alibaba.nacos.shaded.com.google.protobuf.DurationOrBuilder> getBackendLatencyFieldBuilder() { if (backendLatencyBuilder_ == null) { backendLatencyBuilder_ = new com.alibaba.nacos.shaded.com.google.protobuf.SingleFieldBuilderV3< com.alibaba.nacos.shaded.com.google.protobuf.Duration, com.alibaba.nacos.shaded.com.google.protobuf.Duration.Builder, com.alibaba.nacos.shaded.com.google.protobuf.DurationOrBuilder>( getBackendLatency(), getParentForChildren(), isClean()); backendLatency_ = null; } return backendLatencyBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.alibaba.nacos.shaded.com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.alibaba.nacos.shaded.com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.rpc.context.AttributeContext.Response) } // @@protoc_insertion_point(class_scope:google.rpc.context.AttributeContext.Response) private static final com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Response DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Response(); } public static com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Response getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.alibaba.nacos.shaded.com.google.protobuf.Parser PARSER = new com.alibaba.nacos.shaded.com.google.protobuf.AbstractParser() { @java.lang.Override public Response parsePartialFrom( com.alibaba.nacos.shaded.com.google.protobuf.CodedInputStream input, com.alibaba.nacos.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.alibaba.nacos.shaded.com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.alibaba.nacos.shaded.com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.alibaba.nacos.shaded.com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException() .setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.alibaba.nacos.shaded.com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.alibaba.nacos.shaded.com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.alibaba.nacos.shaded.com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Response getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ResourceOrBuilder extends // @@protoc_insertion_point(interface_extends:google.rpc.context.AttributeContext.Resource) com.alibaba.nacos.shaded.com.google.protobuf.MessageOrBuilder { /** * * *
     * 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.String getService(); /** * * *
     * 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. */ com.alibaba.nacos.shaded.com.google.protobuf.ByteString getServiceBytes(); /** * * *
     * 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.String getName(); /** * * *
     * 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. */ com.alibaba.nacos.shaded.com.google.protobuf.ByteString getNameBytes(); /** * * *
     * 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}", such as
     * "pubsub.googleapis.com/Topic".
     * 
* * string type = 3; * * @return The type. */ 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}", such as
     * "pubsub.googleapis.com/Topic".
     * 
* * string type = 3; * * @return The bytes for type. */ com.alibaba.nacos.shaded.com.google.protobuf.ByteString getTypeBytes(); /** * * *
     * The labels or tags on the resource, such as AWS resource tags and
     * Kubernetes resource labels.
     * 
* * map<string, string> labels = 4; */ int getLabelsCount(); /** * * *
     * The labels or tags on the resource, such as AWS resource tags and
     * Kubernetes resource labels.
     * 
* * map<string, string> labels = 4; */ boolean containsLabels(java.lang.String key); /** Use {@link #getLabelsMap()} instead. */ @java.lang.Deprecated java.util.Map getLabels(); /** * * *
     * The labels or tags on the resource, such as AWS resource tags and
     * Kubernetes resource labels.
     * 
* * map<string, string> labels = 4; */ java.util.Map getLabelsMap(); /** * * *
     * The labels or tags on the resource, such as AWS resource tags and
     * Kubernetes resource labels.
     * 
* * map<string, string> labels = 4; */ /* nullable */ java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ java.lang.String defaultValue); /** * * *
     * The labels or tags on the resource, such as AWS resource tags and
     * Kubernetes resource labels.
     * 
* * map<string, string> labels = 4; */ java.lang.String getLabelsOrThrow(java.lang.String key); /** * * *
     * 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.alibaba.nacos.shaded.com.google.protobuf.ByteString getUidBytes(); /** * * *
     * 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; */ int getAnnotationsCount(); /** * * *
     * 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; */ boolean containsAnnotations(java.lang.String key); /** Use {@link #getAnnotationsMap()} instead. */ @java.lang.Deprecated java.util.Map getAnnotations(); /** * * *
     * 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.util.Map 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; */ /* nullable */ java.lang.String getAnnotationsOrDefault( java.lang.String key, /* nullable */ java.lang.String 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.String getAnnotationsOrThrow(java.lang.String key); /** * * *
     * Mutable. The display name set by clients. Must be <= 63 characters.
     * 
* * string display_name = 7; * * @return The displayName. */ java.lang.String getDisplayName(); /** * * *
     * Mutable. The display name set by clients. Must be <= 63 characters.
     * 
* * string display_name = 7; * * @return The bytes for displayName. */ com.alibaba.nacos.shaded.com.google.protobuf.ByteString getDisplayNameBytes(); /** * * *
     * 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. */ boolean hasCreateTime(); /** * * *
     * 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. */ com.alibaba.nacos.shaded.com.google.protobuf.Timestamp getCreateTime(); /** * * *
     * 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; */ com.alibaba.nacos.shaded.com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** * * *
     * 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. */ 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.alibaba.nacos.shaded.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.alibaba.nacos.shaded.com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** * * *
     * 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.alibaba.nacos.shaded.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.alibaba.nacos.shaded.com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder(); /** * * *
     * 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.alibaba.nacos.shaded.com.google.protobuf.ByteString getEtagBytes(); /** * * *
     * 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.alibaba.nacos.shaded.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.alibaba.nacos.shaded.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.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Resource() { service_ = ""; name_ = ""; type_ = ""; uid_ = ""; displayName_ = ""; etag_ = ""; location_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Resource(); } @java.lang.Override public final com.alibaba.nacos.shaded.com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.alibaba.nacos.shaded.com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContextProto .internal_static_google_rpc_context_AttributeContext_Resource_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.alibaba.nacos.shaded.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 protected com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContextProto .internal_static_google_rpc_context_AttributeContext_Resource_fieldAccessorTable .ensureFieldAccessorsInitialized( com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Resource.class, com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Resource.Builder.class); } public static final int SERVICE_FIELD_NUMBER = 1; @SuppressWarnings("serial") 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 public java.lang.String getService() { java.lang.Object ref = service_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.alibaba.nacos.shaded.com.google.protobuf.ByteString bs = (com.alibaba.nacos.shaded.com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); service_ = s; return s; } } /** * * *
     * 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. */ @java.lang.Override public com.alibaba.nacos.shaded.com.google.protobuf.ByteString getServiceBytes() { java.lang.Object ref = service_; if (ref instanceof java.lang.String) { com.alibaba.nacos.shaded.com.google.protobuf.ByteString b = com.alibaba.nacos.shaded.com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); service_ = b; return b; } else { return (com.alibaba.nacos.shaded.com.google.protobuf.ByteString) ref; } } public static final int NAME_FIELD_NUMBER = 2; @SuppressWarnings("serial") 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.alibaba.nacos.shaded.com.google.protobuf.ByteString bs = (com.alibaba.nacos.shaded.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.alibaba.nacos.shaded.com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.alibaba.nacos.shaded.com.google.protobuf.ByteString b = com.alibaba.nacos.shaded.com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { return (com.alibaba.nacos.shaded.com.google.protobuf.ByteString) ref; } } public static final int TYPE_FIELD_NUMBER = 3; @SuppressWarnings("serial") 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}", such as
     * "pubsub.googleapis.com/Topic".
     * 
* * 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.alibaba.nacos.shaded.com.google.protobuf.ByteString bs = (com.alibaba.nacos.shaded.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}", such as
     * "pubsub.googleapis.com/Topic".
     * 
* * string type = 3; * * @return The bytes for type. */ @java.lang.Override public com.alibaba.nacos.shaded.com.google.protobuf.ByteString getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof java.lang.String) { com.alibaba.nacos.shaded.com.google.protobuf.ByteString b = com.alibaba.nacos.shaded.com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); type_ = b; return b; } else { return (com.alibaba.nacos.shaded.com.google.protobuf.ByteString) ref; } } public static final int LABELS_FIELD_NUMBER = 4; private static final class LabelsDefaultEntryHolder { static final com.alibaba.nacos.shaded.com.google.protobuf.MapEntry defaultEntry = com.alibaba.nacos.shaded.com.google.protobuf.MapEntry.newDefaultInstance( com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContextProto .internal_static_google_rpc_context_AttributeContext_Resource_LabelsEntry_descriptor, com.alibaba.nacos.shaded.com.google.protobuf.WireFormat.FieldType.STRING, "", com.alibaba.nacos.shaded.com.google.protobuf.WireFormat.FieldType.STRING, ""); } @SuppressWarnings("serial") private com.alibaba.nacos.shaded.com.google.protobuf.MapField labels_; private com.alibaba.nacos.shaded.com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { return com.alibaba.nacos.shaded.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 NullPointerException("map key"); } 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 /* nullable */ java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } 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 NullPointerException("map key"); } 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; @SuppressWarnings("serial") 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.alibaba.nacos.shaded.com.google.protobuf.ByteString bs = (com.alibaba.nacos.shaded.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.alibaba.nacos.shaded.com.google.protobuf.ByteString getUidBytes() { java.lang.Object ref = uid_; if (ref instanceof java.lang.String) { com.alibaba.nacos.shaded.com.google.protobuf.ByteString b = com.alibaba.nacos.shaded.com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uid_ = b; return b; } else { return (com.alibaba.nacos.shaded.com.google.protobuf.ByteString) ref; } } public static final int ANNOTATIONS_FIELD_NUMBER = 6; private static final class AnnotationsDefaultEntryHolder { static final com.alibaba.nacos.shaded.com.google.protobuf.MapEntry defaultEntry = com.alibaba.nacos.shaded.com.google.protobuf.MapEntry.newDefaultInstance( com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContextProto .internal_static_google_rpc_context_AttributeContext_Resource_AnnotationsEntry_descriptor, com.alibaba.nacos.shaded.com.google.protobuf.WireFormat.FieldType.STRING, "", com.alibaba.nacos.shaded.com.google.protobuf.WireFormat.FieldType.STRING, ""); } @SuppressWarnings("serial") private com.alibaba.nacos.shaded.com.google.protobuf.MapField annotations_; private com.alibaba.nacos.shaded.com.google.protobuf.MapField internalGetAnnotations() { if (annotations_ == null) { return com.alibaba.nacos.shaded.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 NullPointerException("map key"); } 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 /* nullable */ java.lang.String getAnnotationsOrDefault( java.lang.String key, /* nullable */ java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } 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 NullPointerException("map key"); } 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; @SuppressWarnings("serial") 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.alibaba.nacos.shaded.com.google.protobuf.ByteString bs = (com.alibaba.nacos.shaded.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.alibaba.nacos.shaded.com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { com.alibaba.nacos.shaded.com.google.protobuf.ByteString b = com.alibaba.nacos.shaded.com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { return (com.alibaba.nacos.shaded.com.google.protobuf.ByteString) ref; } } public static final int CREATE_TIME_FIELD_NUMBER = 8; private com.alibaba.nacos.shaded.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.alibaba.nacos.shaded.com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.alibaba.nacos.shaded.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.alibaba.nacos.shaded.com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { return createTime_ == null ? com.alibaba.nacos.shaded.com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } public static final int UPDATE_TIME_FIELD_NUMBER = 9; private com.alibaba.nacos.shaded.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.alibaba.nacos.shaded.com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.alibaba.nacos.shaded.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.alibaba.nacos.shaded.com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { return updateTime_ == null ? com.alibaba.nacos.shaded.com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } public static final int DELETE_TIME_FIELD_NUMBER = 10; private com.alibaba.nacos.shaded.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.alibaba.nacos.shaded.com.google.protobuf.Timestamp getDeleteTime() { return deleteTime_ == null ? com.alibaba.nacos.shaded.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.alibaba.nacos.shaded.com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { return deleteTime_ == null ? com.alibaba.nacos.shaded.com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; } public static final int ETAG_FIELD_NUMBER = 11; @SuppressWarnings("serial") 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.alibaba.nacos.shaded.com.google.protobuf.ByteString bs = (com.alibaba.nacos.shaded.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.alibaba.nacos.shaded.com.google.protobuf.ByteString getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof java.lang.String) { com.alibaba.nacos.shaded.com.google.protobuf.ByteString b = com.alibaba.nacos.shaded.com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); etag_ = b; return b; } else { return (com.alibaba.nacos.shaded.com.google.protobuf.ByteString) ref; } } public static final int LOCATION_FIELD_NUMBER = 12; @SuppressWarnings("serial") 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.alibaba.nacos.shaded.com.google.protobuf.ByteString bs = (com.alibaba.nacos.shaded.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.alibaba.nacos.shaded.com.google.protobuf.ByteString getLocationBytes() { java.lang.Object ref = location_; if (ref instanceof java.lang.String) { com.alibaba.nacos.shaded.com.google.protobuf.ByteString b = com.alibaba.nacos.shaded.com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); location_ = b; return b; } else { return (com.alibaba.nacos.shaded.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.alibaba.nacos.shaded.com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.isStringEmpty(service_)) { com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.writeString(output, 1, service_); } if (!com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); } if (!com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) { com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.writeString(output, 3, type_); } com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 4); if (!com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) { com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.writeString(output, 5, uid_); } com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetAnnotations(), AnnotationsDefaultEntryHolder.defaultEntry, 6); if (!com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { com.alibaba.nacos.shaded.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 (!com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.writeString(output, 11, etag_); } if (!com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.isStringEmpty(location_)) { com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.writeString(output, 12, location_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.isStringEmpty(service_)) { size += com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.computeStringSize(1, service_); } if (!com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); } if (!com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) { size += com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.computeStringSize(3, type_); } for (java.util.Map.Entry entry : internalGetLabels().getMap().entrySet()) { com.alibaba.nacos.shaded.com.google.protobuf.MapEntry labels__ = LabelsDefaultEntryHolder.defaultEntry .newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.alibaba.nacos.shaded.com.google.protobuf.CodedOutputStream.computeMessageSize(4, labels__); } if (!com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) { size += com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.computeStringSize(5, uid_); } for (java.util.Map.Entry entry : internalGetAnnotations().getMap().entrySet()) { com.alibaba.nacos.shaded.com.google.protobuf.MapEntry annotations__ = AnnotationsDefaultEntryHolder.defaultEntry .newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.alibaba.nacos.shaded.com.google.protobuf.CodedOutputStream.computeMessageSize(6, annotations__); } if (!com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.computeStringSize(7, displayName_); } if (createTime_ != null) { size += com.alibaba.nacos.shaded.com.google.protobuf.CodedOutputStream.computeMessageSize(8, getCreateTime()); } if (updateTime_ != null) { size += com.alibaba.nacos.shaded.com.google.protobuf.CodedOutputStream.computeMessageSize(9, getUpdateTime()); } if (deleteTime_ != null) { size += com.alibaba.nacos.shaded.com.google.protobuf.CodedOutputStream.computeMessageSize(10, getDeleteTime()); } if (!com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.computeStringSize(11, etag_); } if (!com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.isStringEmpty(location_)) { size += com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.computeStringSize(12, location_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Resource)) { return super.equals(obj); } com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Resource other = (com.alibaba.nacos.shaded.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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + 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) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Resource parseFrom( java.nio.ByteBuffer data) throws com.alibaba.nacos.shaded.com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Resource parseFrom( java.nio.ByteBuffer data, com.alibaba.nacos.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.alibaba.nacos.shaded.com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Resource parseFrom( com.alibaba.nacos.shaded.com.google.protobuf.ByteString data) throws com.alibaba.nacos.shaded.com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Resource parseFrom( com.alibaba.nacos.shaded.com.google.protobuf.ByteString data, com.alibaba.nacos.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.alibaba.nacos.shaded.com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Resource parseFrom(byte[] data) throws com.alibaba.nacos.shaded.com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Resource parseFrom( byte[] data, com.alibaba.nacos.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.alibaba.nacos.shaded.com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Resource parseFrom( java.io.InputStream input) throws java.io.IOException { return com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Resource parseFrom( java.io.InputStream input, com.alibaba.nacos.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } public static com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Resource parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Resource parseDelimitedFrom( java.io.InputStream input, com.alibaba.nacos.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Resource parseFrom( com.alibaba.nacos.shaded.com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Resource parseFrom( com.alibaba.nacos.shaded.com.google.protobuf.CodedInputStream input, com.alibaba.nacos.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.alibaba.nacos.shaded.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.alibaba.nacos.shaded.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.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.rpc.context.AttributeContext.Resource) com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.ResourceOrBuilder { public static final com.alibaba.nacos.shaded.com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContextProto .internal_static_google_rpc_context_AttributeContext_Resource_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.alibaba.nacos.shaded.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.alibaba.nacos.shaded.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.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContextProto .internal_static_google_rpc_context_AttributeContext_Resource_fieldAccessorTable .ensureFieldAccessorsInitialized( com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Resource.class, com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Resource.Builder.class); } // Construct using com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Resource.newBuilder() private Builder() {} private Builder(com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; service_ = ""; name_ = ""; type_ = ""; internalGetMutableLabels().clear(); uid_ = ""; internalGetMutableAnnotations().clear(); displayName_ = ""; createTime_ = null; if (createTimeBuilder_ != null) { createTimeBuilder_.dispose(); createTimeBuilder_ = null; } updateTime_ = null; if (updateTimeBuilder_ != null) { updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } deleteTime_ = null; if (deleteTimeBuilder_ != null) { deleteTimeBuilder_.dispose(); deleteTimeBuilder_ = null; } etag_ = ""; location_ = ""; return this; } @java.lang.Override public com.alibaba.nacos.shaded.com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContextProto .internal_static_google_rpc_context_AttributeContext_Resource_descriptor; } @java.lang.Override public com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Resource getDefaultInstanceForType() { return com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Resource.getDefaultInstance(); } @java.lang.Override public com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Resource build() { com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Resource result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Resource buildPartial() { com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Resource result = new com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Resource(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Resource result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.service_ = service_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.name_ = name_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.type_ = type_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.labels_ = internalGetLabels(); result.labels_.makeImmutable(); } if (((from_bitField0_ & 0x00000010) != 0)) { result.uid_ = uid_; } if (((from_bitField0_ & 0x00000020) != 0)) { result.annotations_ = internalGetAnnotations(); result.annotations_.makeImmutable(); } if (((from_bitField0_ & 0x00000040) != 0)) { result.displayName_ = displayName_; } if (((from_bitField0_ & 0x00000080) != 0)) { result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000100) != 0)) { result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000200) != 0)) { result.deleteTime_ = deleteTimeBuilder_ == null ? deleteTime_ : deleteTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000400) != 0)) { result.etag_ = etag_; } if (((from_bitField0_ & 0x00000800) != 0)) { result.location_ = location_; } } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.alibaba.nacos.shaded.com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField(com.alibaba.nacos.shaded.com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.alibaba.nacos.shaded.com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.alibaba.nacos.shaded.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.alibaba.nacos.shaded.com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.alibaba.nacos.shaded.com.google.protobuf.Message other) { if (other instanceof com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Resource) { return mergeFrom((com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Resource) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Resource other) { if (other == com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Resource.getDefaultInstance()) return this; if (!other.getService().isEmpty()) { service_ = other.service_; bitField0_ |= 0x00000001; onChanged(); } if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000002; onChanged(); } if (!other.getType().isEmpty()) { type_ = other.type_; bitField0_ |= 0x00000004; onChanged(); } internalGetMutableLabels().mergeFrom(other.internalGetLabels()); bitField0_ |= 0x00000008; if (!other.getUid().isEmpty()) { uid_ = other.uid_; bitField0_ |= 0x00000010; onChanged(); } internalGetMutableAnnotations().mergeFrom(other.internalGetAnnotations()); bitField0_ |= 0x00000020; if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; bitField0_ |= 0x00000040; 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_; bitField0_ |= 0x00000400; onChanged(); } if (!other.getLocation().isEmpty()) { location_ = other.location_; bitField0_ |= 0x00000800; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.alibaba.nacos.shaded.com.google.protobuf.CodedInputStream input, com.alibaba.nacos.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { service_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { name_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { type_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; } // case 26 case 34: { com.alibaba.nacos.shaded.com.google.protobuf.MapEntry labels__ = input.readMessage( LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableLabels() .getMutableMap() .put(labels__.getKey(), labels__.getValue()); bitField0_ |= 0x00000008; break; } // case 34 case 42: { uid_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000010; break; } // case 42 case 50: { com.alibaba.nacos.shaded.com.google.protobuf.MapEntry annotations__ = input.readMessage( AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableAnnotations() .getMutableMap() .put(annotations__.getKey(), annotations__.getValue()); bitField0_ |= 0x00000020; break; } // case 50 case 58: { displayName_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000040; break; } // case 58 case 66: { input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000080; break; } // case 66 case 74: { input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000100; break; } // case 74 case 82: { input.readMessage(getDeleteTimeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000200; break; } // case 82 case 90: { etag_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000400; break; } // case 90 case 98: { location_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000800; break; } // case 98 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.alibaba.nacos.shaded.com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally 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.alibaba.nacos.shaded.com.google.protobuf.ByteString bs = (com.alibaba.nacos.shaded.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.alibaba.nacos.shaded.com.google.protobuf.ByteString getServiceBytes() { java.lang.Object ref = service_; if (ref instanceof String) { com.alibaba.nacos.shaded.com.google.protobuf.ByteString b = com.alibaba.nacos.shaded.com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); service_ = b; return b; } else { return (com.alibaba.nacos.shaded.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; bitField0_ |= 0x00000001; 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(); bitField0_ = (bitField0_ & ~0x00000001); 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.alibaba.nacos.shaded.com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); service_ = value; bitField0_ |= 0x00000001; 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.alibaba.nacos.shaded.com.google.protobuf.ByteString bs = (com.alibaba.nacos.shaded.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.alibaba.nacos.shaded.com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.alibaba.nacos.shaded.com.google.protobuf.ByteString b = com.alibaba.nacos.shaded.com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { return (com.alibaba.nacos.shaded.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; bitField0_ |= 0x00000002; 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(); bitField0_ = (bitField0_ & ~0x00000002); 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.alibaba.nacos.shaded.com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000002; 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}", such as
       * "pubsub.googleapis.com/Topic".
       * 
* * string type = 3; * * @return The type. */ public java.lang.String getType() { java.lang.Object ref = type_; if (!(ref instanceof java.lang.String)) { com.alibaba.nacos.shaded.com.google.protobuf.ByteString bs = (com.alibaba.nacos.shaded.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}", such as
       * "pubsub.googleapis.com/Topic".
       * 
* * string type = 3; * * @return The bytes for type. */ public com.alibaba.nacos.shaded.com.google.protobuf.ByteString getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof String) { com.alibaba.nacos.shaded.com.google.protobuf.ByteString b = com.alibaba.nacos.shaded.com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); type_ = b; return b; } else { return (com.alibaba.nacos.shaded.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}", such as
       * "pubsub.googleapis.com/Topic".
       * 
* * 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; bitField0_ |= 0x00000004; 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}", such as
       * "pubsub.googleapis.com/Topic".
       * 
* * string type = 3; * * @return This builder for chaining. */ public Builder clearType() { type_ = getDefaultInstance().getType(); bitField0_ = (bitField0_ & ~0x00000004); 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}", such as
       * "pubsub.googleapis.com/Topic".
       * 
* * string type = 3; * * @param value The bytes for type to set. * @return This builder for chaining. */ public Builder setTypeBytes(com.alibaba.nacos.shaded.com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); type_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } private com.alibaba.nacos.shaded.com.google.protobuf.MapField labels_; private com.alibaba.nacos.shaded.com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { return com.alibaba.nacos.shaded.com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } private com.alibaba.nacos.shaded.com.google.protobuf.MapField internalGetMutableLabels() { if (labels_ == null) { labels_ = com.alibaba.nacos.shaded.com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); } bitField0_ |= 0x00000008; onChanged(); 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 NullPointerException("map key"); } 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 /* nullable */ java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } 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 NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearLabels() { bitField0_ = (bitField0_ & ~0x00000008); 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 NullPointerException("map key"); } internalGetMutableLabels().getMutableMap().remove(key); return this; } /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableLabels() { bitField0_ |= 0x00000008; 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 NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableLabels().getMutableMap().put(key, value); bitField0_ |= 0x00000008; 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); bitField0_ |= 0x00000008; 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.alibaba.nacos.shaded.com.google.protobuf.ByteString bs = (com.alibaba.nacos.shaded.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.alibaba.nacos.shaded.com.google.protobuf.ByteString getUidBytes() { java.lang.Object ref = uid_; if (ref instanceof String) { com.alibaba.nacos.shaded.com.google.protobuf.ByteString b = com.alibaba.nacos.shaded.com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uid_ = b; return b; } else { return (com.alibaba.nacos.shaded.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; bitField0_ |= 0x00000010; 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(); bitField0_ = (bitField0_ & ~0x00000010); 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.alibaba.nacos.shaded.com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); uid_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } private com.alibaba.nacos.shaded.com.google.protobuf.MapField annotations_; private com.alibaba.nacos.shaded.com.google.protobuf.MapField internalGetAnnotations() { if (annotations_ == null) { return com.alibaba.nacos.shaded.com.google.protobuf.MapField.emptyMapField( AnnotationsDefaultEntryHolder.defaultEntry); } return annotations_; } private com.alibaba.nacos.shaded.com.google.protobuf.MapField internalGetMutableAnnotations() { if (annotations_ == null) { annotations_ = com.alibaba.nacos.shaded.com.google.protobuf.MapField.newMapField(AnnotationsDefaultEntryHolder.defaultEntry); } if (!annotations_.isMutable()) { annotations_ = annotations_.copy(); } bitField0_ |= 0x00000020; onChanged(); 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 NullPointerException("map key"); } 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 /* nullable */ java.lang.String getAnnotationsOrDefault( java.lang.String key, /* nullable */ java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } 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 NullPointerException("map key"); } java.util.Map map = internalGetAnnotations().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearAnnotations() { bitField0_ = (bitField0_ & ~0x00000020); 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 NullPointerException("map key"); } internalGetMutableAnnotations().getMutableMap().remove(key); return this; } /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableAnnotations() { bitField0_ |= 0x00000020; 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 NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableAnnotations().getMutableMap().put(key, value); bitField0_ |= 0x00000020; 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); bitField0_ |= 0x00000020; return this; } 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.alibaba.nacos.shaded.com.google.protobuf.ByteString bs = (com.alibaba.nacos.shaded.com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
       * Mutable. The display name set by clients. Must be <= 63 characters.
       * 
* * string display_name = 7; * * @return The bytes for displayName. */ public com.alibaba.nacos.shaded.com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { com.alibaba.nacos.shaded.com.google.protobuf.ByteString b = com.alibaba.nacos.shaded.com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { return (com.alibaba.nacos.shaded.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(); } displayName_ = value; bitField0_ |= 0x00000040; 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() { displayName_ = getDefaultInstance().getDisplayName(); bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } /** * * *
       * 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.alibaba.nacos.shaded.com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); displayName_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } private com.alibaba.nacos.shaded.com.google.protobuf.Timestamp createTime_; private com.alibaba.nacos.shaded.com.google.protobuf.SingleFieldBuilderV3< com.alibaba.nacos.shaded.com.google.protobuf.Timestamp, com.alibaba.nacos.shaded.com.google.protobuf.Timestamp.Builder, com.alibaba.nacos.shaded.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 ((bitField0_ & 0x00000080) != 0); } /** * * *
       * 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.alibaba.nacos.shaded.com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { return createTime_ == null ? com.alibaba.nacos.shaded.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.alibaba.nacos.shaded.com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } createTime_ = value; } else { createTimeBuilder_.setMessage(value); } bitField0_ |= 0x00000080; onChanged(); 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.alibaba.nacos.shaded.com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { createTimeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000080; onChanged(); 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.alibaba.nacos.shaded.com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (((bitField0_ & 0x00000080) != 0) && createTime_ != null && createTime_ != com.alibaba.nacos.shaded.com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; } } else { createTimeBuilder_.mergeFrom(value); } bitField0_ |= 0x00000080; onChanged(); 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() { bitField0_ = (bitField0_ & ~0x00000080); createTime_ = null; if (createTimeBuilder_ != null) { createTimeBuilder_.dispose(); createTimeBuilder_ = null; } onChanged(); 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.alibaba.nacos.shaded.com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000080; 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.alibaba.nacos.shaded.com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { return createTime_ == null ? com.alibaba.nacos.shaded.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.alibaba.nacos.shaded.com.google.protobuf.SingleFieldBuilderV3< com.alibaba.nacos.shaded.com.google.protobuf.Timestamp, com.alibaba.nacos.shaded.com.google.protobuf.Timestamp.Builder, com.alibaba.nacos.shaded.com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { createTimeBuilder_ = new com.alibaba.nacos.shaded.com.google.protobuf.SingleFieldBuilderV3< com.alibaba.nacos.shaded.com.google.protobuf.Timestamp, com.alibaba.nacos.shaded.com.google.protobuf.Timestamp.Builder, com.alibaba.nacos.shaded.com.google.protobuf.TimestampOrBuilder>( getCreateTime(), getParentForChildren(), isClean()); createTime_ = null; } return createTimeBuilder_; } private com.alibaba.nacos.shaded.com.google.protobuf.Timestamp updateTime_; private com.alibaba.nacos.shaded.com.google.protobuf.SingleFieldBuilderV3< com.alibaba.nacos.shaded.com.google.protobuf.Timestamp, com.alibaba.nacos.shaded.com.google.protobuf.Timestamp.Builder, com.alibaba.nacos.shaded.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 ((bitField0_ & 0x00000100) != 0); } /** * * *
       * 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.alibaba.nacos.shaded.com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { return updateTime_ == null ? com.alibaba.nacos.shaded.com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** * * *
       * 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.alibaba.nacos.shaded.com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } updateTime_ = value; } else { updateTimeBuilder_.setMessage(value); } bitField0_ |= 0x00000100; 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.alibaba.nacos.shaded.com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); } else { updateTimeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000100; 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 mergeUpdateTime(com.alibaba.nacos.shaded.com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (((bitField0_ & 0x00000100) != 0) && updateTime_ != null && updateTime_ != com.alibaba.nacos.shaded.com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; } } else { updateTimeBuilder_.mergeFrom(value); } bitField0_ |= 0x00000100; 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 clearUpdateTime() { bitField0_ = (bitField0_ & ~0x00000100); updateTime_ = null; if (updateTimeBuilder_ != null) { updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } 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 com.alibaba.nacos.shaded.com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { bitField0_ |= 0x00000100; onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** * * *
       * 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.alibaba.nacos.shaded.com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { return updateTime_ == null ? com.alibaba.nacos.shaded.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; */ private com.alibaba.nacos.shaded.com.google.protobuf.SingleFieldBuilderV3< com.alibaba.nacos.shaded.com.google.protobuf.Timestamp, com.alibaba.nacos.shaded.com.google.protobuf.Timestamp.Builder, com.alibaba.nacos.shaded.com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { updateTimeBuilder_ = new com.alibaba.nacos.shaded.com.google.protobuf.SingleFieldBuilderV3< com.alibaba.nacos.shaded.com.google.protobuf.Timestamp, com.alibaba.nacos.shaded.com.google.protobuf.Timestamp.Builder, com.alibaba.nacos.shaded.com.google.protobuf.TimestampOrBuilder>( getUpdateTime(), getParentForChildren(), isClean()); updateTime_ = null; } return updateTimeBuilder_; } private com.alibaba.nacos.shaded.com.google.protobuf.Timestamp deleteTime_; private com.alibaba.nacos.shaded.com.google.protobuf.SingleFieldBuilderV3< com.alibaba.nacos.shaded.com.google.protobuf.Timestamp, com.alibaba.nacos.shaded.com.google.protobuf.Timestamp.Builder, com.alibaba.nacos.shaded.com.google.protobuf.TimestampOrBuilder> deleteTimeBuilder_; /** * * *
       * 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. */ public boolean hasDeleteTime() { return ((bitField0_ & 0x00000200) != 0); } /** * * *
       * 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. */ public com.alibaba.nacos.shaded.com.google.protobuf.Timestamp getDeleteTime() { if (deleteTimeBuilder_ == null) { return deleteTime_ == null ? com.alibaba.nacos.shaded.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.alibaba.nacos.shaded.com.google.protobuf.Timestamp value) { if (deleteTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } deleteTime_ = value; } else { deleteTimeBuilder_.setMessage(value); } bitField0_ |= 0x00000200; onChanged(); return this; } /** * * *
       * 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.alibaba.nacos.shaded.com.google.protobuf.Timestamp.Builder builderForValue) { if (deleteTimeBuilder_ == null) { deleteTime_ = builderForValue.build(); } else { deleteTimeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000200; onChanged(); return this; } /** * * *
       * 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 mergeDeleteTime(com.alibaba.nacos.shaded.com.google.protobuf.Timestamp value) { if (deleteTimeBuilder_ == null) { if (((bitField0_ & 0x00000200) != 0) && deleteTime_ != null && deleteTime_ != com.alibaba.nacos.shaded.com.google.protobuf.Timestamp.getDefaultInstance()) { getDeleteTimeBuilder().mergeFrom(value); } else { deleteTime_ = value; } } else { deleteTimeBuilder_.mergeFrom(value); } bitField0_ |= 0x00000200; onChanged(); return this; } /** * * *
       * 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 clearDeleteTime() { bitField0_ = (bitField0_ & ~0x00000200); deleteTime_ = null; if (deleteTimeBuilder_ != null) { deleteTimeBuilder_.dispose(); deleteTimeBuilder_ = null; } onChanged(); return this; } /** * * *
       * 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 com.alibaba.nacos.shaded.com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() { bitField0_ |= 0x00000200; onChanged(); return getDeleteTimeFieldBuilder().getBuilder(); } /** * * *
       * 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 com.alibaba.nacos.shaded.com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { if (deleteTimeBuilder_ != null) { return deleteTimeBuilder_.getMessageOrBuilder(); } else { return deleteTime_ == null ? com.alibaba.nacos.shaded.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; */ private com.alibaba.nacos.shaded.com.google.protobuf.SingleFieldBuilderV3< com.alibaba.nacos.shaded.com.google.protobuf.Timestamp, com.alibaba.nacos.shaded.com.google.protobuf.Timestamp.Builder, com.alibaba.nacos.shaded.com.google.protobuf.TimestampOrBuilder> getDeleteTimeFieldBuilder() { if (deleteTimeBuilder_ == null) { deleteTimeBuilder_ = new com.alibaba.nacos.shaded.com.google.protobuf.SingleFieldBuilderV3< com.alibaba.nacos.shaded.com.google.protobuf.Timestamp, com.alibaba.nacos.shaded.com.google.protobuf.Timestamp.Builder, com.alibaba.nacos.shaded.com.google.protobuf.TimestampOrBuilder>( getDeleteTime(), getParentForChildren(), isClean()); deleteTime_ = null; } return deleteTimeBuilder_; } private 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. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; if (!(ref instanceof java.lang.String)) { com.alibaba.nacos.shaded.com.google.protobuf.ByteString bs = (com.alibaba.nacos.shaded.com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
       * 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. */ public com.alibaba.nacos.shaded.com.google.protobuf.ByteString getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof String) { com.alibaba.nacos.shaded.com.google.protobuf.ByteString b = com.alibaba.nacos.shaded.com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); etag_ = b; return b; } else { return (com.alibaba.nacos.shaded.com.google.protobuf.ByteString) ref; } } /** * * *
       * 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; * * @param value The etag to set. * @return This builder for chaining. */ public Builder setEtag(java.lang.String value) { if (value == null) { throw new NullPointerException(); } etag_ = value; bitField0_ |= 0x00000400; onChanged(); return this; } /** * * *
       * 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 This builder for chaining. */ public Builder clearEtag() { etag_ = getDefaultInstance().getEtag(); bitField0_ = (bitField0_ & ~0x00000400); onChanged(); return this; } /** * * *
       * 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; * * @param value The bytes for etag to set. * @return This builder for chaining. */ public Builder setEtagBytes(com.alibaba.nacos.shaded.com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); etag_ = value; bitField0_ |= 0x00000400; onChanged(); return this; } private 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. */ public java.lang.String getLocation() { java.lang.Object ref = location_; if (!(ref instanceof java.lang.String)) { com.alibaba.nacos.shaded.com.google.protobuf.ByteString bs = (com.alibaba.nacos.shaded.com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); location_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
       * 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. */ public com.alibaba.nacos.shaded.com.google.protobuf.ByteString getLocationBytes() { java.lang.Object ref = location_; if (ref instanceof String) { com.alibaba.nacos.shaded.com.google.protobuf.ByteString b = com.alibaba.nacos.shaded.com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); location_ = b; return b; } else { return (com.alibaba.nacos.shaded.com.google.protobuf.ByteString) ref; } } /** * * *
       * 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; * * @param value The location to set. * @return This builder for chaining. */ public Builder setLocation(java.lang.String value) { if (value == null) { throw new NullPointerException(); } location_ = value; bitField0_ |= 0x00000800; onChanged(); return this; } /** * * *
       * 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 This builder for chaining. */ public Builder clearLocation() { location_ = getDefaultInstance().getLocation(); bitField0_ = (bitField0_ & ~0x00000800); onChanged(); return this; } /** * * *
       * 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; * * @param value The bytes for location to set. * @return This builder for chaining. */ public Builder setLocationBytes(com.alibaba.nacos.shaded.com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); location_ = value; bitField0_ |= 0x00000800; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.alibaba.nacos.shaded.com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.alibaba.nacos.shaded.com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.rpc.context.AttributeContext.Resource) } // @@protoc_insertion_point(class_scope:google.rpc.context.AttributeContext.Resource) private static final com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Resource DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Resource(); } public static com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Resource getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.alibaba.nacos.shaded.com.google.protobuf.Parser PARSER = new com.alibaba.nacos.shaded.com.google.protobuf.AbstractParser() { @java.lang.Override public Resource parsePartialFrom( com.alibaba.nacos.shaded.com.google.protobuf.CodedInputStream input, com.alibaba.nacos.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.alibaba.nacos.shaded.com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.alibaba.nacos.shaded.com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.alibaba.nacos.shaded.com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException() .setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.alibaba.nacos.shaded.com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.alibaba.nacos.shaded.com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.alibaba.nacos.shaded.com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Resource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int ORIGIN_FIELD_NUMBER = 7; private com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Peer origin_; /** * * *
   * The origin of a network activity. In a multi hop network activity,
   * the origin represents the sender of the first hop. For the first hop,
   * the `source` and the `origin` must have the same content.
   * 
* * .google.rpc.context.AttributeContext.Peer origin = 7; * * @return Whether the origin field is set. */ @java.lang.Override public boolean hasOrigin() { return origin_ != null; } /** * * *
   * The origin of a network activity. In a multi hop network activity,
   * the origin represents the sender of the first hop. For the first hop,
   * the `source` and the `origin` must have the same content.
   * 
* * .google.rpc.context.AttributeContext.Peer origin = 7; * * @return The origin. */ @java.lang.Override public com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Peer getOrigin() { return origin_ == null ? com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Peer.getDefaultInstance() : origin_; } /** * * *
   * The origin of a network activity. In a multi hop network activity,
   * the origin represents the sender of the first hop. For the first hop,
   * the `source` and the `origin` must have the same content.
   * 
* * .google.rpc.context.AttributeContext.Peer origin = 7; */ @java.lang.Override public com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.PeerOrBuilder getOriginOrBuilder() { return origin_ == null ? com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Peer.getDefaultInstance() : origin_; } public static final int SOURCE_FIELD_NUMBER = 1; private com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Peer source_; /** * * *
   * The source of a network activity, such as starting a TCP connection.
   * In a multi hop network activity, the source represents the sender of the
   * last hop.
   * 
* * .google.rpc.context.AttributeContext.Peer source = 1; * * @return Whether the source field is set. */ @java.lang.Override public boolean hasSource() { return source_ != null; } /** * * *
   * The source of a network activity, such as starting a TCP connection.
   * In a multi hop network activity, the source represents the sender of the
   * last hop.
   * 
* * .google.rpc.context.AttributeContext.Peer source = 1; * * @return The source. */ @java.lang.Override public com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Peer getSource() { return source_ == null ? com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Peer.getDefaultInstance() : source_; } /** * * *
   * The source of a network activity, such as starting a TCP connection.
   * In a multi hop network activity, the source represents the sender of the
   * last hop.
   * 
* * .google.rpc.context.AttributeContext.Peer source = 1; */ @java.lang.Override public com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.PeerOrBuilder getSourceOrBuilder() { return source_ == null ? com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Peer.getDefaultInstance() : source_; } public static final int DESTINATION_FIELD_NUMBER = 2; private com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Peer destination_; /** * * *
   * The destination of a network activity, such as accepting a TCP connection.
   * In a multi hop network activity, the destination represents the receiver of
   * the last hop.
   * 
* * .google.rpc.context.AttributeContext.Peer destination = 2; * * @return Whether the destination field is set. */ @java.lang.Override public boolean hasDestination() { return destination_ != null; } /** * * *
   * The destination of a network activity, such as accepting a TCP connection.
   * In a multi hop network activity, the destination represents the receiver of
   * the last hop.
   * 
* * .google.rpc.context.AttributeContext.Peer destination = 2; * * @return The destination. */ @java.lang.Override public com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Peer getDestination() { return destination_ == null ? com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Peer.getDefaultInstance() : destination_; } /** * * *
   * The destination of a network activity, such as accepting a TCP connection.
   * In a multi hop network activity, the destination represents the receiver of
   * the last hop.
   * 
* * .google.rpc.context.AttributeContext.Peer destination = 2; */ @java.lang.Override public com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.PeerOrBuilder getDestinationOrBuilder() { return destination_ == null ? com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Peer.getDefaultInstance() : destination_; } public static final int REQUEST_FIELD_NUMBER = 3; private com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Request request_; /** * * *
   * Represents a network request, such as an HTTP request.
   * 
* * .google.rpc.context.AttributeContext.Request request = 3; * * @return Whether the request field is set. */ @java.lang.Override public boolean hasRequest() { return request_ != null; } /** * * *
   * Represents a network request, such as an HTTP request.
   * 
* * .google.rpc.context.AttributeContext.Request request = 3; * * @return The request. */ @java.lang.Override public com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Request getRequest() { return request_ == null ? com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Request.getDefaultInstance() : request_; } /** * * *
   * Represents a network request, such as an HTTP request.
   * 
* * .google.rpc.context.AttributeContext.Request request = 3; */ @java.lang.Override public com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.RequestOrBuilder getRequestOrBuilder() { return request_ == null ? com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Request.getDefaultInstance() : request_; } public static final int RESPONSE_FIELD_NUMBER = 4; private com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Response response_; /** * * *
   * Represents a network response, such as an HTTP response.
   * 
* * .google.rpc.context.AttributeContext.Response response = 4; * * @return Whether the response field is set. */ @java.lang.Override public boolean hasResponse() { return response_ != null; } /** * * *
   * Represents a network response, such as an HTTP response.
   * 
* * .google.rpc.context.AttributeContext.Response response = 4; * * @return The response. */ @java.lang.Override public com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Response getResponse() { return response_ == null ? com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Response.getDefaultInstance() : response_; } /** * * *
   * Represents a network response, such as an HTTP response.
   * 
* * .google.rpc.context.AttributeContext.Response response = 4; */ @java.lang.Override public com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.ResponseOrBuilder getResponseOrBuilder() { return response_ == null ? com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Response.getDefaultInstance() : response_; } public static final int RESOURCE_FIELD_NUMBER = 5; private com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Resource resource_; /** * * *
   * Represents a target resource that is involved with a network activity.
   * If multiple resources are involved with an activity, this must be the
   * primary one.
   * 
* * .google.rpc.context.AttributeContext.Resource resource = 5; * * @return Whether the resource field is set. */ @java.lang.Override public boolean hasResource() { return resource_ != null; } /** * * *
   * Represents a target resource that is involved with a network activity.
   * If multiple resources are involved with an activity, this must be the
   * primary one.
   * 
* * .google.rpc.context.AttributeContext.Resource resource = 5; * * @return The resource. */ @java.lang.Override public com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Resource getResource() { return resource_ == null ? com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Resource.getDefaultInstance() : resource_; } /** * * *
   * Represents a target resource that is involved with a network activity.
   * If multiple resources are involved with an activity, this must be the
   * primary one.
   * 
* * .google.rpc.context.AttributeContext.Resource resource = 5; */ @java.lang.Override public com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.ResourceOrBuilder getResourceOrBuilder() { return resource_ == null ? com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Resource.getDefaultInstance() : resource_; } public static final int API_FIELD_NUMBER = 6; private com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Api api_; /** * * *
   * Represents an API operation that is involved to a network activity.
   * 
* * .google.rpc.context.AttributeContext.Api api = 6; * * @return Whether the api field is set. */ @java.lang.Override public boolean hasApi() { return api_ != null; } /** * * *
   * Represents an API operation that is involved to a network activity.
   * 
* * .google.rpc.context.AttributeContext.Api api = 6; * * @return The api. */ @java.lang.Override public com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Api getApi() { return api_ == null ? com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Api.getDefaultInstance() : api_; } /** * * *
   * Represents an API operation that is involved to a network activity.
   * 
* * .google.rpc.context.AttributeContext.Api api = 6; */ @java.lang.Override public com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.ApiOrBuilder getApiOrBuilder() { return api_ == null ? com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Api.getDefaultInstance() : api_; } public static final int EXTENSIONS_FIELD_NUMBER = 8; @SuppressWarnings("serial") private java.util.List extensions_; /** * * *
   * Supports extensions for advanced use cases, such as logs and metrics.
   * 
* * repeated .google.protobuf.Any extensions = 8; */ @java.lang.Override public java.util.List getExtensionsList() { return extensions_; } /** * * *
   * Supports extensions for advanced use cases, such as logs and metrics.
   * 
* * repeated .google.protobuf.Any extensions = 8; */ @java.lang.Override public java.util.List getExtensionsOrBuilderList() { return extensions_; } /** * * *
   * Supports extensions for advanced use cases, such as logs and metrics.
   * 
* * repeated .google.protobuf.Any extensions = 8; */ @java.lang.Override public int getExtensionsCount() { return extensions_.size(); } /** * * *
   * Supports extensions for advanced use cases, such as logs and metrics.
   * 
* * repeated .google.protobuf.Any extensions = 8; */ @java.lang.Override public com.alibaba.nacos.shaded.com.google.protobuf.Any getExtensions(int index) { return extensions_.get(index); } /** * * *
   * Supports extensions for advanced use cases, such as logs and metrics.
   * 
* * repeated .google.protobuf.Any extensions = 8; */ @java.lang.Override public com.alibaba.nacos.shaded.com.google.protobuf.AnyOrBuilder getExtensionsOrBuilder(int index) { return extensions_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.alibaba.nacos.shaded.com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (source_ != null) { output.writeMessage(1, getSource()); } if (destination_ != null) { output.writeMessage(2, getDestination()); } if (request_ != null) { output.writeMessage(3, getRequest()); } if (response_ != null) { output.writeMessage(4, getResponse()); } if (resource_ != null) { output.writeMessage(5, getResource()); } if (api_ != null) { output.writeMessage(6, getApi()); } if (origin_ != null) { output.writeMessage(7, getOrigin()); } for (int i = 0; i < extensions_.size(); i++) { output.writeMessage(8, extensions_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (source_ != null) { size += com.alibaba.nacos.shaded.com.google.protobuf.CodedOutputStream.computeMessageSize(1, getSource()); } if (destination_ != null) { size += com.alibaba.nacos.shaded.com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDestination()); } if (request_ != null) { size += com.alibaba.nacos.shaded.com.google.protobuf.CodedOutputStream.computeMessageSize(3, getRequest()); } if (response_ != null) { size += com.alibaba.nacos.shaded.com.google.protobuf.CodedOutputStream.computeMessageSize(4, getResponse()); } if (resource_ != null) { size += com.alibaba.nacos.shaded.com.google.protobuf.CodedOutputStream.computeMessageSize(5, getResource()); } if (api_ != null) { size += com.alibaba.nacos.shaded.com.google.protobuf.CodedOutputStream.computeMessageSize(6, getApi()); } if (origin_ != null) { size += com.alibaba.nacos.shaded.com.google.protobuf.CodedOutputStream.computeMessageSize(7, getOrigin()); } for (int i = 0; i < extensions_.size(); i++) { size += com.alibaba.nacos.shaded.com.google.protobuf.CodedOutputStream.computeMessageSize(8, extensions_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext)) { return super.equals(obj); } com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext other = (com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext) obj; if (hasOrigin() != other.hasOrigin()) return false; if (hasOrigin()) { if (!getOrigin().equals(other.getOrigin())) return false; } if (hasSource() != other.hasSource()) return false; if (hasSource()) { if (!getSource().equals(other.getSource())) return false; } if (hasDestination() != other.hasDestination()) return false; if (hasDestination()) { if (!getDestination().equals(other.getDestination())) return false; } if (hasRequest() != other.hasRequest()) return false; if (hasRequest()) { if (!getRequest().equals(other.getRequest())) return false; } if (hasResponse() != other.hasResponse()) return false; if (hasResponse()) { if (!getResponse().equals(other.getResponse())) return false; } if (hasResource() != other.hasResource()) return false; if (hasResource()) { if (!getResource().equals(other.getResource())) return false; } if (hasApi() != other.hasApi()) return false; if (hasApi()) { if (!getApi().equals(other.getApi())) return false; } if (!getExtensionsList().equals(other.getExtensionsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasOrigin()) { hash = (37 * hash) + ORIGIN_FIELD_NUMBER; hash = (53 * hash) + getOrigin().hashCode(); } if (hasSource()) { hash = (37 * hash) + SOURCE_FIELD_NUMBER; hash = (53 * hash) + getSource().hashCode(); } if (hasDestination()) { hash = (37 * hash) + DESTINATION_FIELD_NUMBER; hash = (53 * hash) + getDestination().hashCode(); } if (hasRequest()) { hash = (37 * hash) + REQUEST_FIELD_NUMBER; hash = (53 * hash) + getRequest().hashCode(); } if (hasResponse()) { hash = (37 * hash) + RESPONSE_FIELD_NUMBER; hash = (53 * hash) + getResponse().hashCode(); } if (hasResource()) { hash = (37 * hash) + RESOURCE_FIELD_NUMBER; hash = (53 * hash) + getResource().hashCode(); } if (hasApi()) { hash = (37 * hash) + API_FIELD_NUMBER; hash = (53 * hash) + getApi().hashCode(); } if (getExtensionsCount() > 0) { hash = (37 * hash) + EXTENSIONS_FIELD_NUMBER; hash = (53 * hash) + getExtensionsList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext parseFrom(java.nio.ByteBuffer data) throws com.alibaba.nacos.shaded.com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext parseFrom( java.nio.ByteBuffer data, com.alibaba.nacos.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.alibaba.nacos.shaded.com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext parseFrom( com.alibaba.nacos.shaded.com.google.protobuf.ByteString data) throws com.alibaba.nacos.shaded.com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext parseFrom( com.alibaba.nacos.shaded.com.google.protobuf.ByteString data, com.alibaba.nacos.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.alibaba.nacos.shaded.com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext parseFrom(byte[] data) throws com.alibaba.nacos.shaded.com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext parseFrom( byte[] data, com.alibaba.nacos.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.alibaba.nacos.shaded.com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext parseFrom(java.io.InputStream input) throws java.io.IOException { return com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext parseFrom( java.io.InputStream input, com.alibaba.nacos.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } public static com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext parseDelimitedFrom( java.io.InputStream input, com.alibaba.nacos.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext parseFrom( com.alibaba.nacos.shaded.com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext parseFrom( com.alibaba.nacos.shaded.com.google.protobuf.CodedInputStream input, com.alibaba.nacos.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType(com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * * *
   * This message defines the standard attribute vocabulary for Google APIs.
   * An attribute is a piece of metadata that describes an activity on a network
   * service. For example, the size of an HTTP request, or the status code of
   * an HTTP response.
   * Each attribute has a type and a name, which is logically defined as
   * a proto message field in `AttributeContext`. The field type becomes the
   * attribute type, and the field path becomes the attribute name. For example,
   * the attribute `source.ip` maps to field `AttributeContext.source.ip`.
   * This message definition is guaranteed not to have any wire breaking change.
   * So you can use it directly for passing attributes across different systems.
   * NOTE: Different system may generate different subset of attributes. Please
   * verify the system specification before relying on an attribute generated
   * a system.
   * 
* * Protobuf type {@code google.rpc.context.AttributeContext} */ public static final class Builder extends com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.rpc.context.AttributeContext) com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContextOrBuilder { public static final com.alibaba.nacos.shaded.com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContextProto .internal_static_google_rpc_context_AttributeContext_descriptor; } @java.lang.Override protected com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContextProto .internal_static_google_rpc_context_AttributeContext_fieldAccessorTable .ensureFieldAccessorsInitialized( com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.class, com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Builder.class); } // Construct using com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.newBuilder() private Builder() {} private Builder(com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; origin_ = null; if (originBuilder_ != null) { originBuilder_.dispose(); originBuilder_ = null; } source_ = null; if (sourceBuilder_ != null) { sourceBuilder_.dispose(); sourceBuilder_ = null; } destination_ = null; if (destinationBuilder_ != null) { destinationBuilder_.dispose(); destinationBuilder_ = null; } request_ = null; if (requestBuilder_ != null) { requestBuilder_.dispose(); requestBuilder_ = null; } response_ = null; if (responseBuilder_ != null) { responseBuilder_.dispose(); responseBuilder_ = null; } resource_ = null; if (resourceBuilder_ != null) { resourceBuilder_.dispose(); resourceBuilder_ = null; } api_ = null; if (apiBuilder_ != null) { apiBuilder_.dispose(); apiBuilder_ = null; } if (extensionsBuilder_ == null) { extensions_ = java.util.Collections.emptyList(); } else { extensions_ = null; extensionsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000080); return this; } @java.lang.Override public com.alibaba.nacos.shaded.com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContextProto .internal_static_google_rpc_context_AttributeContext_descriptor; } @java.lang.Override public com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext getDefaultInstanceForType() { return com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.getDefaultInstance(); } @java.lang.Override public com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext build() { com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext buildPartial() { com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext result = new com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext result) { if (extensionsBuilder_ == null) { if (((bitField0_ & 0x00000080) != 0)) { extensions_ = java.util.Collections.unmodifiableList(extensions_); bitField0_ = (bitField0_ & ~0x00000080); } result.extensions_ = extensions_; } else { result.extensions_ = extensionsBuilder_.build(); } } private void buildPartial0(com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.origin_ = originBuilder_ == null ? origin_ : originBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { result.source_ = sourceBuilder_ == null ? source_ : sourceBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.destination_ = destinationBuilder_ == null ? destination_ : destinationBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { result.request_ = requestBuilder_ == null ? request_ : requestBuilder_.build(); } if (((from_bitField0_ & 0x00000010) != 0)) { result.response_ = responseBuilder_ == null ? response_ : responseBuilder_.build(); } if (((from_bitField0_ & 0x00000020) != 0)) { result.resource_ = resourceBuilder_ == null ? resource_ : resourceBuilder_.build(); } if (((from_bitField0_ & 0x00000040) != 0)) { result.api_ = apiBuilder_ == null ? api_ : apiBuilder_.build(); } } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.alibaba.nacos.shaded.com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField(com.alibaba.nacos.shaded.com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.alibaba.nacos.shaded.com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.alibaba.nacos.shaded.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.alibaba.nacos.shaded.com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.alibaba.nacos.shaded.com.google.protobuf.Message other) { if (other instanceof com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext) { return mergeFrom((com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext other) { if (other == com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.getDefaultInstance()) return this; if (other.hasOrigin()) { mergeOrigin(other.getOrigin()); } if (other.hasSource()) { mergeSource(other.getSource()); } if (other.hasDestination()) { mergeDestination(other.getDestination()); } if (other.hasRequest()) { mergeRequest(other.getRequest()); } if (other.hasResponse()) { mergeResponse(other.getResponse()); } if (other.hasResource()) { mergeResource(other.getResource()); } if (other.hasApi()) { mergeApi(other.getApi()); } if (extensionsBuilder_ == null) { if (!other.extensions_.isEmpty()) { if (extensions_.isEmpty()) { extensions_ = other.extensions_; bitField0_ = (bitField0_ & ~0x00000080); } else { ensureExtensionsIsMutable(); extensions_.addAll(other.extensions_); } onChanged(); } } else { if (!other.extensions_.isEmpty()) { if (extensionsBuilder_.isEmpty()) { extensionsBuilder_.dispose(); extensionsBuilder_ = null; extensions_ = other.extensions_; bitField0_ = (bitField0_ & ~0x00000080); extensionsBuilder_ = com.alibaba.nacos.shaded.com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getExtensionsFieldBuilder() : null; } else { extensionsBuilder_.addAllMessages(other.extensions_); } } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.alibaba.nacos.shaded.com.google.protobuf.CodedInputStream input, com.alibaba.nacos.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage(getSourceFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 10 case 18: { input.readMessage(getDestinationFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 18 case 26: { input.readMessage(getRequestFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000008; break; } // case 26 case 34: { input.readMessage(getResponseFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000010; break; } // case 34 case 42: { input.readMessage(getResourceFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000020; break; } // case 42 case 50: { input.readMessage(getApiFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000040; break; } // case 50 case 58: { input.readMessage(getOriginFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 58 case 66: { com.alibaba.nacos.shaded.com.google.protobuf.Any m = input.readMessage(com.alibaba.nacos.shaded.com.google.protobuf.Any.parser(), extensionRegistry); if (extensionsBuilder_ == null) { ensureExtensionsIsMutable(); extensions_.add(m); } else { extensionsBuilder_.addMessage(m); } break; } // case 66 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.alibaba.nacos.shaded.com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Peer origin_; private com.alibaba.nacos.shaded.com.google.protobuf.SingleFieldBuilderV3< com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Peer, com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Peer.Builder, com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.PeerOrBuilder> originBuilder_; /** * * *
     * The origin of a network activity. In a multi hop network activity,
     * the origin represents the sender of the first hop. For the first hop,
     * the `source` and the `origin` must have the same content.
     * 
* * .google.rpc.context.AttributeContext.Peer origin = 7; * * @return Whether the origin field is set. */ public boolean hasOrigin() { return ((bitField0_ & 0x00000001) != 0); } /** * * *
     * The origin of a network activity. In a multi hop network activity,
     * the origin represents the sender of the first hop. For the first hop,
     * the `source` and the `origin` must have the same content.
     * 
* * .google.rpc.context.AttributeContext.Peer origin = 7; * * @return The origin. */ public com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Peer getOrigin() { if (originBuilder_ == null) { return origin_ == null ? com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Peer.getDefaultInstance() : origin_; } else { return originBuilder_.getMessage(); } } /** * * *
     * The origin of a network activity. In a multi hop network activity,
     * the origin represents the sender of the first hop. For the first hop,
     * the `source` and the `origin` must have the same content.
     * 
* * .google.rpc.context.AttributeContext.Peer origin = 7; */ public Builder setOrigin(com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Peer value) { if (originBuilder_ == null) { if (value == null) { throw new NullPointerException(); } origin_ = value; } else { originBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
     * The origin of a network activity. In a multi hop network activity,
     * the origin represents the sender of the first hop. For the first hop,
     * the `source` and the `origin` must have the same content.
     * 
* * .google.rpc.context.AttributeContext.Peer origin = 7; */ public Builder setOrigin(com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Peer.Builder builderForValue) { if (originBuilder_ == null) { origin_ = builderForValue.build(); } else { originBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
     * The origin of a network activity. In a multi hop network activity,
     * the origin represents the sender of the first hop. For the first hop,
     * the `source` and the `origin` must have the same content.
     * 
* * .google.rpc.context.AttributeContext.Peer origin = 7; */ public Builder mergeOrigin(com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Peer value) { if (originBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && origin_ != null && origin_ != com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Peer.getDefaultInstance()) { getOriginBuilder().mergeFrom(value); } else { origin_ = value; } } else { originBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
     * The origin of a network activity. In a multi hop network activity,
     * the origin represents the sender of the first hop. For the first hop,
     * the `source` and the `origin` must have the same content.
     * 
* * .google.rpc.context.AttributeContext.Peer origin = 7; */ public Builder clearOrigin() { bitField0_ = (bitField0_ & ~0x00000001); origin_ = null; if (originBuilder_ != null) { originBuilder_.dispose(); originBuilder_ = null; } onChanged(); return this; } /** * * *
     * The origin of a network activity. In a multi hop network activity,
     * the origin represents the sender of the first hop. For the first hop,
     * the `source` and the `origin` must have the same content.
     * 
* * .google.rpc.context.AttributeContext.Peer origin = 7; */ public com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Peer.Builder getOriginBuilder() { bitField0_ |= 0x00000001; onChanged(); return getOriginFieldBuilder().getBuilder(); } /** * * *
     * The origin of a network activity. In a multi hop network activity,
     * the origin represents the sender of the first hop. For the first hop,
     * the `source` and the `origin` must have the same content.
     * 
* * .google.rpc.context.AttributeContext.Peer origin = 7; */ public com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.PeerOrBuilder getOriginOrBuilder() { if (originBuilder_ != null) { return originBuilder_.getMessageOrBuilder(); } else { return origin_ == null ? com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Peer.getDefaultInstance() : origin_; } } /** * * *
     * The origin of a network activity. In a multi hop network activity,
     * the origin represents the sender of the first hop. For the first hop,
     * the `source` and the `origin` must have the same content.
     * 
* * .google.rpc.context.AttributeContext.Peer origin = 7; */ private com.alibaba.nacos.shaded.com.google.protobuf.SingleFieldBuilderV3< com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Peer, com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Peer.Builder, com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.PeerOrBuilder> getOriginFieldBuilder() { if (originBuilder_ == null) { originBuilder_ = new com.alibaba.nacos.shaded.com.google.protobuf.SingleFieldBuilderV3< com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Peer, com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Peer.Builder, com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.PeerOrBuilder>( getOrigin(), getParentForChildren(), isClean()); origin_ = null; } return originBuilder_; } private com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Peer source_; private com.alibaba.nacos.shaded.com.google.protobuf.SingleFieldBuilderV3< com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Peer, com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Peer.Builder, com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.PeerOrBuilder> sourceBuilder_; /** * * *
     * The source of a network activity, such as starting a TCP connection.
     * In a multi hop network activity, the source represents the sender of the
     * last hop.
     * 
* * .google.rpc.context.AttributeContext.Peer source = 1; * * @return Whether the source field is set. */ public boolean hasSource() { return ((bitField0_ & 0x00000002) != 0); } /** * * *
     * The source of a network activity, such as starting a TCP connection.
     * In a multi hop network activity, the source represents the sender of the
     * last hop.
     * 
* * .google.rpc.context.AttributeContext.Peer source = 1; * * @return The source. */ public com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Peer getSource() { if (sourceBuilder_ == null) { return source_ == null ? com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Peer.getDefaultInstance() : source_; } else { return sourceBuilder_.getMessage(); } } /** * * *
     * The source of a network activity, such as starting a TCP connection.
     * In a multi hop network activity, the source represents the sender of the
     * last hop.
     * 
* * .google.rpc.context.AttributeContext.Peer source = 1; */ public Builder setSource(com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Peer value) { if (sourceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } source_ = value; } else { sourceBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
     * The source of a network activity, such as starting a TCP connection.
     * In a multi hop network activity, the source represents the sender of the
     * last hop.
     * 
* * .google.rpc.context.AttributeContext.Peer source = 1; */ public Builder setSource(com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Peer.Builder builderForValue) { if (sourceBuilder_ == null) { source_ = builderForValue.build(); } else { sourceBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
     * The source of a network activity, such as starting a TCP connection.
     * In a multi hop network activity, the source represents the sender of the
     * last hop.
     * 
* * .google.rpc.context.AttributeContext.Peer source = 1; */ public Builder mergeSource(com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Peer value) { if (sourceBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && source_ != null && source_ != com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Peer.getDefaultInstance()) { getSourceBuilder().mergeFrom(value); } else { source_ = value; } } else { sourceBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
     * The source of a network activity, such as starting a TCP connection.
     * In a multi hop network activity, the source represents the sender of the
     * last hop.
     * 
* * .google.rpc.context.AttributeContext.Peer source = 1; */ public Builder clearSource() { bitField0_ = (bitField0_ & ~0x00000002); source_ = null; if (sourceBuilder_ != null) { sourceBuilder_.dispose(); sourceBuilder_ = null; } onChanged(); return this; } /** * * *
     * The source of a network activity, such as starting a TCP connection.
     * In a multi hop network activity, the source represents the sender of the
     * last hop.
     * 
* * .google.rpc.context.AttributeContext.Peer source = 1; */ public com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Peer.Builder getSourceBuilder() { bitField0_ |= 0x00000002; onChanged(); return getSourceFieldBuilder().getBuilder(); } /** * * *
     * The source of a network activity, such as starting a TCP connection.
     * In a multi hop network activity, the source represents the sender of the
     * last hop.
     * 
* * .google.rpc.context.AttributeContext.Peer source = 1; */ public com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.PeerOrBuilder getSourceOrBuilder() { if (sourceBuilder_ != null) { return sourceBuilder_.getMessageOrBuilder(); } else { return source_ == null ? com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Peer.getDefaultInstance() : source_; } } /** * * *
     * The source of a network activity, such as starting a TCP connection.
     * In a multi hop network activity, the source represents the sender of the
     * last hop.
     * 
* * .google.rpc.context.AttributeContext.Peer source = 1; */ private com.alibaba.nacos.shaded.com.google.protobuf.SingleFieldBuilderV3< com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Peer, com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Peer.Builder, com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.PeerOrBuilder> getSourceFieldBuilder() { if (sourceBuilder_ == null) { sourceBuilder_ = new com.alibaba.nacos.shaded.com.google.protobuf.SingleFieldBuilderV3< com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Peer, com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Peer.Builder, com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.PeerOrBuilder>( getSource(), getParentForChildren(), isClean()); source_ = null; } return sourceBuilder_; } private com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Peer destination_; private com.alibaba.nacos.shaded.com.google.protobuf.SingleFieldBuilderV3< com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Peer, com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Peer.Builder, com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.PeerOrBuilder> destinationBuilder_; /** * * *
     * The destination of a network activity, such as accepting a TCP connection.
     * In a multi hop network activity, the destination represents the receiver of
     * the last hop.
     * 
* * .google.rpc.context.AttributeContext.Peer destination = 2; * * @return Whether the destination field is set. */ public boolean hasDestination() { return ((bitField0_ & 0x00000004) != 0); } /** * * *
     * The destination of a network activity, such as accepting a TCP connection.
     * In a multi hop network activity, the destination represents the receiver of
     * the last hop.
     * 
* * .google.rpc.context.AttributeContext.Peer destination = 2; * * @return The destination. */ public com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Peer getDestination() { if (destinationBuilder_ == null) { return destination_ == null ? com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Peer.getDefaultInstance() : destination_; } else { return destinationBuilder_.getMessage(); } } /** * * *
     * The destination of a network activity, such as accepting a TCP connection.
     * In a multi hop network activity, the destination represents the receiver of
     * the last hop.
     * 
* * .google.rpc.context.AttributeContext.Peer destination = 2; */ public Builder setDestination(com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Peer value) { if (destinationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } destination_ = value; } else { destinationBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * * *
     * The destination of a network activity, such as accepting a TCP connection.
     * In a multi hop network activity, the destination represents the receiver of
     * the last hop.
     * 
* * .google.rpc.context.AttributeContext.Peer destination = 2; */ public Builder setDestination( com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Peer.Builder builderForValue) { if (destinationBuilder_ == null) { destination_ = builderForValue.build(); } else { destinationBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * * *
     * The destination of a network activity, such as accepting a TCP connection.
     * In a multi hop network activity, the destination represents the receiver of
     * the last hop.
     * 
* * .google.rpc.context.AttributeContext.Peer destination = 2; */ public Builder mergeDestination(com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Peer value) { if (destinationBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && destination_ != null && destination_ != com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Peer.getDefaultInstance()) { getDestinationBuilder().mergeFrom(value); } else { destination_ = value; } } else { destinationBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * * *
     * The destination of a network activity, such as accepting a TCP connection.
     * In a multi hop network activity, the destination represents the receiver of
     * the last hop.
     * 
* * .google.rpc.context.AttributeContext.Peer destination = 2; */ public Builder clearDestination() { bitField0_ = (bitField0_ & ~0x00000004); destination_ = null; if (destinationBuilder_ != null) { destinationBuilder_.dispose(); destinationBuilder_ = null; } onChanged(); return this; } /** * * *
     * The destination of a network activity, such as accepting a TCP connection.
     * In a multi hop network activity, the destination represents the receiver of
     * the last hop.
     * 
* * .google.rpc.context.AttributeContext.Peer destination = 2; */ public com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Peer.Builder getDestinationBuilder() { bitField0_ |= 0x00000004; onChanged(); return getDestinationFieldBuilder().getBuilder(); } /** * * *
     * The destination of a network activity, such as accepting a TCP connection.
     * In a multi hop network activity, the destination represents the receiver of
     * the last hop.
     * 
* * .google.rpc.context.AttributeContext.Peer destination = 2; */ public com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.PeerOrBuilder getDestinationOrBuilder() { if (destinationBuilder_ != null) { return destinationBuilder_.getMessageOrBuilder(); } else { return destination_ == null ? com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Peer.getDefaultInstance() : destination_; } } /** * * *
     * The destination of a network activity, such as accepting a TCP connection.
     * In a multi hop network activity, the destination represents the receiver of
     * the last hop.
     * 
* * .google.rpc.context.AttributeContext.Peer destination = 2; */ private com.alibaba.nacos.shaded.com.google.protobuf.SingleFieldBuilderV3< com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Peer, com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Peer.Builder, com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.PeerOrBuilder> getDestinationFieldBuilder() { if (destinationBuilder_ == null) { destinationBuilder_ = new com.alibaba.nacos.shaded.com.google.protobuf.SingleFieldBuilderV3< com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Peer, com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Peer.Builder, com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.PeerOrBuilder>( getDestination(), getParentForChildren(), isClean()); destination_ = null; } return destinationBuilder_; } private com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Request request_; private com.alibaba.nacos.shaded.com.google.protobuf.SingleFieldBuilderV3< com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Request, com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Request.Builder, com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.RequestOrBuilder> requestBuilder_; /** * * *
     * Represents a network request, such as an HTTP request.
     * 
* * .google.rpc.context.AttributeContext.Request request = 3; * * @return Whether the request field is set. */ public boolean hasRequest() { return ((bitField0_ & 0x00000008) != 0); } /** * * *
     * Represents a network request, such as an HTTP request.
     * 
* * .google.rpc.context.AttributeContext.Request request = 3; * * @return The request. */ public com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Request getRequest() { if (requestBuilder_ == null) { return request_ == null ? com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Request.getDefaultInstance() : request_; } else { return requestBuilder_.getMessage(); } } /** * * *
     * Represents a network request, such as an HTTP request.
     * 
* * .google.rpc.context.AttributeContext.Request request = 3; */ public Builder setRequest(com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Request value) { if (requestBuilder_ == null) { if (value == null) { throw new NullPointerException(); } request_ = value; } else { requestBuilder_.setMessage(value); } bitField0_ |= 0x00000008; onChanged(); return this; } /** * * *
     * Represents a network request, such as an HTTP request.
     * 
* * .google.rpc.context.AttributeContext.Request request = 3; */ public Builder setRequest( com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Request.Builder builderForValue) { if (requestBuilder_ == null) { request_ = builderForValue.build(); } else { requestBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; onChanged(); return this; } /** * * *
     * Represents a network request, such as an HTTP request.
     * 
* * .google.rpc.context.AttributeContext.Request request = 3; */ public Builder mergeRequest(com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Request value) { if (requestBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0) && request_ != null && request_ != com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Request.getDefaultInstance()) { getRequestBuilder().mergeFrom(value); } else { request_ = value; } } else { requestBuilder_.mergeFrom(value); } bitField0_ |= 0x00000008; onChanged(); return this; } /** * * *
     * Represents a network request, such as an HTTP request.
     * 
* * .google.rpc.context.AttributeContext.Request request = 3; */ public Builder clearRequest() { bitField0_ = (bitField0_ & ~0x00000008); request_ = null; if (requestBuilder_ != null) { requestBuilder_.dispose(); requestBuilder_ = null; } onChanged(); return this; } /** * * *
     * Represents a network request, such as an HTTP request.
     * 
* * .google.rpc.context.AttributeContext.Request request = 3; */ public com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Request.Builder getRequestBuilder() { bitField0_ |= 0x00000008; onChanged(); return getRequestFieldBuilder().getBuilder(); } /** * * *
     * Represents a network request, such as an HTTP request.
     * 
* * .google.rpc.context.AttributeContext.Request request = 3; */ public com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.RequestOrBuilder getRequestOrBuilder() { if (requestBuilder_ != null) { return requestBuilder_.getMessageOrBuilder(); } else { return request_ == null ? com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Request.getDefaultInstance() : request_; } } /** * * *
     * Represents a network request, such as an HTTP request.
     * 
* * .google.rpc.context.AttributeContext.Request request = 3; */ private com.alibaba.nacos.shaded.com.google.protobuf.SingleFieldBuilderV3< com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Request, com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Request.Builder, com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.RequestOrBuilder> getRequestFieldBuilder() { if (requestBuilder_ == null) { requestBuilder_ = new com.alibaba.nacos.shaded.com.google.protobuf.SingleFieldBuilderV3< com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Request, com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Request.Builder, com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.RequestOrBuilder>( getRequest(), getParentForChildren(), isClean()); request_ = null; } return requestBuilder_; } private com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Response response_; private com.alibaba.nacos.shaded.com.google.protobuf.SingleFieldBuilderV3< com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Response, com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Response.Builder, com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.ResponseOrBuilder> responseBuilder_; /** * * *
     * Represents a network response, such as an HTTP response.
     * 
* * .google.rpc.context.AttributeContext.Response response = 4; * * @return Whether the response field is set. */ public boolean hasResponse() { return ((bitField0_ & 0x00000010) != 0); } /** * * *
     * Represents a network response, such as an HTTP response.
     * 
* * .google.rpc.context.AttributeContext.Response response = 4; * * @return The response. */ public com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Response getResponse() { if (responseBuilder_ == null) { return response_ == null ? com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Response.getDefaultInstance() : response_; } else { return responseBuilder_.getMessage(); } } /** * * *
     * Represents a network response, such as an HTTP response.
     * 
* * .google.rpc.context.AttributeContext.Response response = 4; */ public Builder setResponse(com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Response value) { if (responseBuilder_ == null) { if (value == null) { throw new NullPointerException(); } response_ = value; } else { responseBuilder_.setMessage(value); } bitField0_ |= 0x00000010; onChanged(); return this; } /** * * *
     * Represents a network response, such as an HTTP response.
     * 
* * .google.rpc.context.AttributeContext.Response response = 4; */ public Builder setResponse( com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Response.Builder builderForValue) { if (responseBuilder_ == null) { response_ = builderForValue.build(); } else { responseBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; onChanged(); return this; } /** * * *
     * Represents a network response, such as an HTTP response.
     * 
* * .google.rpc.context.AttributeContext.Response response = 4; */ public Builder mergeResponse(com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Response value) { if (responseBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0) && response_ != null && response_ != com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Response.getDefaultInstance()) { getResponseBuilder().mergeFrom(value); } else { response_ = value; } } else { responseBuilder_.mergeFrom(value); } bitField0_ |= 0x00000010; onChanged(); return this; } /** * * *
     * Represents a network response, such as an HTTP response.
     * 
* * .google.rpc.context.AttributeContext.Response response = 4; */ public Builder clearResponse() { bitField0_ = (bitField0_ & ~0x00000010); response_ = null; if (responseBuilder_ != null) { responseBuilder_.dispose(); responseBuilder_ = null; } onChanged(); return this; } /** * * *
     * Represents a network response, such as an HTTP response.
     * 
* * .google.rpc.context.AttributeContext.Response response = 4; */ public com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Response.Builder getResponseBuilder() { bitField0_ |= 0x00000010; onChanged(); return getResponseFieldBuilder().getBuilder(); } /** * * *
     * Represents a network response, such as an HTTP response.
     * 
* * .google.rpc.context.AttributeContext.Response response = 4; */ public com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.ResponseOrBuilder getResponseOrBuilder() { if (responseBuilder_ != null) { return responseBuilder_.getMessageOrBuilder(); } else { return response_ == null ? com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Response.getDefaultInstance() : response_; } } /** * * *
     * Represents a network response, such as an HTTP response.
     * 
* * .google.rpc.context.AttributeContext.Response response = 4; */ private com.alibaba.nacos.shaded.com.google.protobuf.SingleFieldBuilderV3< com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Response, com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Response.Builder, com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.ResponseOrBuilder> getResponseFieldBuilder() { if (responseBuilder_ == null) { responseBuilder_ = new com.alibaba.nacos.shaded.com.google.protobuf.SingleFieldBuilderV3< com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Response, com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Response.Builder, com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.ResponseOrBuilder>( getResponse(), getParentForChildren(), isClean()); response_ = null; } return responseBuilder_; } private com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Resource resource_; private com.alibaba.nacos.shaded.com.google.protobuf.SingleFieldBuilderV3< com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Resource, com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Resource.Builder, com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.ResourceOrBuilder> resourceBuilder_; /** * * *
     * Represents a target resource that is involved with a network activity.
     * If multiple resources are involved with an activity, this must be the
     * primary one.
     * 
* * .google.rpc.context.AttributeContext.Resource resource = 5; * * @return Whether the resource field is set. */ public boolean hasResource() { return ((bitField0_ & 0x00000020) != 0); } /** * * *
     * Represents a target resource that is involved with a network activity.
     * If multiple resources are involved with an activity, this must be the
     * primary one.
     * 
* * .google.rpc.context.AttributeContext.Resource resource = 5; * * @return The resource. */ public com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Resource getResource() { if (resourceBuilder_ == null) { return resource_ == null ? com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Resource.getDefaultInstance() : resource_; } else { return resourceBuilder_.getMessage(); } } /** * * *
     * Represents a target resource that is involved with a network activity.
     * If multiple resources are involved with an activity, this must be the
     * primary one.
     * 
* * .google.rpc.context.AttributeContext.Resource resource = 5; */ public Builder setResource(com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Resource value) { if (resourceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } resource_ = value; } else { resourceBuilder_.setMessage(value); } bitField0_ |= 0x00000020; onChanged(); return this; } /** * * *
     * Represents a target resource that is involved with a network activity.
     * If multiple resources are involved with an activity, this must be the
     * primary one.
     * 
* * .google.rpc.context.AttributeContext.Resource resource = 5; */ public Builder setResource( com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Resource.Builder builderForValue) { if (resourceBuilder_ == null) { resource_ = builderForValue.build(); } else { resourceBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000020; onChanged(); return this; } /** * * *
     * Represents a target resource that is involved with a network activity.
     * If multiple resources are involved with an activity, this must be the
     * primary one.
     * 
* * .google.rpc.context.AttributeContext.Resource resource = 5; */ public Builder mergeResource(com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Resource value) { if (resourceBuilder_ == null) { if (((bitField0_ & 0x00000020) != 0) && resource_ != null && resource_ != com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Resource.getDefaultInstance()) { getResourceBuilder().mergeFrom(value); } else { resource_ = value; } } else { resourceBuilder_.mergeFrom(value); } bitField0_ |= 0x00000020; onChanged(); return this; } /** * * *
     * Represents a target resource that is involved with a network activity.
     * If multiple resources are involved with an activity, this must be the
     * primary one.
     * 
* * .google.rpc.context.AttributeContext.Resource resource = 5; */ public Builder clearResource() { bitField0_ = (bitField0_ & ~0x00000020); resource_ = null; if (resourceBuilder_ != null) { resourceBuilder_.dispose(); resourceBuilder_ = null; } onChanged(); return this; } /** * * *
     * Represents a target resource that is involved with a network activity.
     * If multiple resources are involved with an activity, this must be the
     * primary one.
     * 
* * .google.rpc.context.AttributeContext.Resource resource = 5; */ public com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Resource.Builder getResourceBuilder() { bitField0_ |= 0x00000020; onChanged(); return getResourceFieldBuilder().getBuilder(); } /** * * *
     * Represents a target resource that is involved with a network activity.
     * If multiple resources are involved with an activity, this must be the
     * primary one.
     * 
* * .google.rpc.context.AttributeContext.Resource resource = 5; */ public com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.ResourceOrBuilder getResourceOrBuilder() { if (resourceBuilder_ != null) { return resourceBuilder_.getMessageOrBuilder(); } else { return resource_ == null ? com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Resource.getDefaultInstance() : resource_; } } /** * * *
     * Represents a target resource that is involved with a network activity.
     * If multiple resources are involved with an activity, this must be the
     * primary one.
     * 
* * .google.rpc.context.AttributeContext.Resource resource = 5; */ private com.alibaba.nacos.shaded.com.google.protobuf.SingleFieldBuilderV3< com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Resource, com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Resource.Builder, com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.ResourceOrBuilder> getResourceFieldBuilder() { if (resourceBuilder_ == null) { resourceBuilder_ = new com.alibaba.nacos.shaded.com.google.protobuf.SingleFieldBuilderV3< com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Resource, com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Resource.Builder, com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.ResourceOrBuilder>( getResource(), getParentForChildren(), isClean()); resource_ = null; } return resourceBuilder_; } private com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Api api_; private com.alibaba.nacos.shaded.com.google.protobuf.SingleFieldBuilderV3< com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Api, com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Api.Builder, com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.ApiOrBuilder> apiBuilder_; /** * * *
     * Represents an API operation that is involved to a network activity.
     * 
* * .google.rpc.context.AttributeContext.Api api = 6; * * @return Whether the api field is set. */ public boolean hasApi() { return ((bitField0_ & 0x00000040) != 0); } /** * * *
     * Represents an API operation that is involved to a network activity.
     * 
* * .google.rpc.context.AttributeContext.Api api = 6; * * @return The api. */ public com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Api getApi() { if (apiBuilder_ == null) { return api_ == null ? com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Api.getDefaultInstance() : api_; } else { return apiBuilder_.getMessage(); } } /** * * *
     * Represents an API operation that is involved to a network activity.
     * 
* * .google.rpc.context.AttributeContext.Api api = 6; */ public Builder setApi(com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Api value) { if (apiBuilder_ == null) { if (value == null) { throw new NullPointerException(); } api_ = value; } else { apiBuilder_.setMessage(value); } bitField0_ |= 0x00000040; onChanged(); return this; } /** * * *
     * Represents an API operation that is involved to a network activity.
     * 
* * .google.rpc.context.AttributeContext.Api api = 6; */ public Builder setApi(com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Api.Builder builderForValue) { if (apiBuilder_ == null) { api_ = builderForValue.build(); } else { apiBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000040; onChanged(); return this; } /** * * *
     * Represents an API operation that is involved to a network activity.
     * 
* * .google.rpc.context.AttributeContext.Api api = 6; */ public Builder mergeApi(com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Api value) { if (apiBuilder_ == null) { if (((bitField0_ & 0x00000040) != 0) && api_ != null && api_ != com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Api.getDefaultInstance()) { getApiBuilder().mergeFrom(value); } else { api_ = value; } } else { apiBuilder_.mergeFrom(value); } bitField0_ |= 0x00000040; onChanged(); return this; } /** * * *
     * Represents an API operation that is involved to a network activity.
     * 
* * .google.rpc.context.AttributeContext.Api api = 6; */ public Builder clearApi() { bitField0_ = (bitField0_ & ~0x00000040); api_ = null; if (apiBuilder_ != null) { apiBuilder_.dispose(); apiBuilder_ = null; } onChanged(); return this; } /** * * *
     * Represents an API operation that is involved to a network activity.
     * 
* * .google.rpc.context.AttributeContext.Api api = 6; */ public com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Api.Builder getApiBuilder() { bitField0_ |= 0x00000040; onChanged(); return getApiFieldBuilder().getBuilder(); } /** * * *
     * Represents an API operation that is involved to a network activity.
     * 
* * .google.rpc.context.AttributeContext.Api api = 6; */ public com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.ApiOrBuilder getApiOrBuilder() { if (apiBuilder_ != null) { return apiBuilder_.getMessageOrBuilder(); } else { return api_ == null ? com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Api.getDefaultInstance() : api_; } } /** * * *
     * Represents an API operation that is involved to a network activity.
     * 
* * .google.rpc.context.AttributeContext.Api api = 6; */ private com.alibaba.nacos.shaded.com.google.protobuf.SingleFieldBuilderV3< com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Api, com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Api.Builder, com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.ApiOrBuilder> getApiFieldBuilder() { if (apiBuilder_ == null) { apiBuilder_ = new com.alibaba.nacos.shaded.com.google.protobuf.SingleFieldBuilderV3< com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Api, com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.Api.Builder, com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext.ApiOrBuilder>( getApi(), getParentForChildren(), isClean()); api_ = null; } return apiBuilder_; } private java.util.List extensions_ = java.util.Collections.emptyList(); private void ensureExtensionsIsMutable() { if (!((bitField0_ & 0x00000080) != 0)) { extensions_ = new java.util.ArrayList(extensions_); bitField0_ |= 0x00000080; } } private com.alibaba.nacos.shaded.com.google.protobuf.RepeatedFieldBuilderV3< com.alibaba.nacos.shaded.com.google.protobuf.Any, com.alibaba.nacos.shaded.com.google.protobuf.Any.Builder, com.alibaba.nacos.shaded.com.google.protobuf.AnyOrBuilder> extensionsBuilder_; /** * * *
     * Supports extensions for advanced use cases, such as logs and metrics.
     * 
* * repeated .google.protobuf.Any extensions = 8; */ public java.util.List getExtensionsList() { if (extensionsBuilder_ == null) { return java.util.Collections.unmodifiableList(extensions_); } else { return extensionsBuilder_.getMessageList(); } } /** * * *
     * Supports extensions for advanced use cases, such as logs and metrics.
     * 
* * repeated .google.protobuf.Any extensions = 8; */ public int getExtensionsCount() { if (extensionsBuilder_ == null) { return extensions_.size(); } else { return extensionsBuilder_.getCount(); } } /** * * *
     * Supports extensions for advanced use cases, such as logs and metrics.
     * 
* * repeated .google.protobuf.Any extensions = 8; */ public com.alibaba.nacos.shaded.com.google.protobuf.Any getExtensions(int index) { if (extensionsBuilder_ == null) { return extensions_.get(index); } else { return extensionsBuilder_.getMessage(index); } } /** * * *
     * Supports extensions for advanced use cases, such as logs and metrics.
     * 
* * repeated .google.protobuf.Any extensions = 8; */ public Builder setExtensions(int index, com.alibaba.nacos.shaded.com.google.protobuf.Any value) { if (extensionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureExtensionsIsMutable(); extensions_.set(index, value); onChanged(); } else { extensionsBuilder_.setMessage(index, value); } return this; } /** * * *
     * Supports extensions for advanced use cases, such as logs and metrics.
     * 
* * repeated .google.protobuf.Any extensions = 8; */ public Builder setExtensions(int index, com.alibaba.nacos.shaded.com.google.protobuf.Any.Builder builderForValue) { if (extensionsBuilder_ == null) { ensureExtensionsIsMutable(); extensions_.set(index, builderForValue.build()); onChanged(); } else { extensionsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
     * Supports extensions for advanced use cases, such as logs and metrics.
     * 
* * repeated .google.protobuf.Any extensions = 8; */ public Builder addExtensions(com.alibaba.nacos.shaded.com.google.protobuf.Any value) { if (extensionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureExtensionsIsMutable(); extensions_.add(value); onChanged(); } else { extensionsBuilder_.addMessage(value); } return this; } /** * * *
     * Supports extensions for advanced use cases, such as logs and metrics.
     * 
* * repeated .google.protobuf.Any extensions = 8; */ public Builder addExtensions(int index, com.alibaba.nacos.shaded.com.google.protobuf.Any value) { if (extensionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureExtensionsIsMutable(); extensions_.add(index, value); onChanged(); } else { extensionsBuilder_.addMessage(index, value); } return this; } /** * * *
     * Supports extensions for advanced use cases, such as logs and metrics.
     * 
* * repeated .google.protobuf.Any extensions = 8; */ public Builder addExtensions(com.alibaba.nacos.shaded.com.google.protobuf.Any.Builder builderForValue) { if (extensionsBuilder_ == null) { ensureExtensionsIsMutable(); extensions_.add(builderForValue.build()); onChanged(); } else { extensionsBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
     * Supports extensions for advanced use cases, such as logs and metrics.
     * 
* * repeated .google.protobuf.Any extensions = 8; */ public Builder addExtensions(int index, com.alibaba.nacos.shaded.com.google.protobuf.Any.Builder builderForValue) { if (extensionsBuilder_ == null) { ensureExtensionsIsMutable(); extensions_.add(index, builderForValue.build()); onChanged(); } else { extensionsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
     * Supports extensions for advanced use cases, such as logs and metrics.
     * 
* * repeated .google.protobuf.Any extensions = 8; */ public Builder addAllExtensions(java.lang.Iterable values) { if (extensionsBuilder_ == null) { ensureExtensionsIsMutable(); com.alibaba.nacos.shaded.com.google.protobuf.AbstractMessageLite.Builder.addAll(values, extensions_); onChanged(); } else { extensionsBuilder_.addAllMessages(values); } return this; } /** * * *
     * Supports extensions for advanced use cases, such as logs and metrics.
     * 
* * repeated .google.protobuf.Any extensions = 8; */ public Builder clearExtensions() { if (extensionsBuilder_ == null) { extensions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000080); onChanged(); } else { extensionsBuilder_.clear(); } return this; } /** * * *
     * Supports extensions for advanced use cases, such as logs and metrics.
     * 
* * repeated .google.protobuf.Any extensions = 8; */ public Builder removeExtensions(int index) { if (extensionsBuilder_ == null) { ensureExtensionsIsMutable(); extensions_.remove(index); onChanged(); } else { extensionsBuilder_.remove(index); } return this; } /** * * *
     * Supports extensions for advanced use cases, such as logs and metrics.
     * 
* * repeated .google.protobuf.Any extensions = 8; */ public com.alibaba.nacos.shaded.com.google.protobuf.Any.Builder getExtensionsBuilder(int index) { return getExtensionsFieldBuilder().getBuilder(index); } /** * * *
     * Supports extensions for advanced use cases, such as logs and metrics.
     * 
* * repeated .google.protobuf.Any extensions = 8; */ public com.alibaba.nacos.shaded.com.google.protobuf.AnyOrBuilder getExtensionsOrBuilder(int index) { if (extensionsBuilder_ == null) { return extensions_.get(index); } else { return extensionsBuilder_.getMessageOrBuilder(index); } } /** * * *
     * Supports extensions for advanced use cases, such as logs and metrics.
     * 
* * repeated .google.protobuf.Any extensions = 8; */ public java.util.List getExtensionsOrBuilderList() { if (extensionsBuilder_ != null) { return extensionsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(extensions_); } } /** * * *
     * Supports extensions for advanced use cases, such as logs and metrics.
     * 
* * repeated .google.protobuf.Any extensions = 8; */ public com.alibaba.nacos.shaded.com.google.protobuf.Any.Builder addExtensionsBuilder() { return getExtensionsFieldBuilder().addBuilder(com.alibaba.nacos.shaded.com.google.protobuf.Any.getDefaultInstance()); } /** * * *
     * Supports extensions for advanced use cases, such as logs and metrics.
     * 
* * repeated .google.protobuf.Any extensions = 8; */ public com.alibaba.nacos.shaded.com.google.protobuf.Any.Builder addExtensionsBuilder(int index) { return getExtensionsFieldBuilder() .addBuilder(index, com.alibaba.nacos.shaded.com.google.protobuf.Any.getDefaultInstance()); } /** * * *
     * Supports extensions for advanced use cases, such as logs and metrics.
     * 
* * repeated .google.protobuf.Any extensions = 8; */ public java.util.List getExtensionsBuilderList() { return getExtensionsFieldBuilder().getBuilderList(); } private com.alibaba.nacos.shaded.com.google.protobuf.RepeatedFieldBuilderV3< com.alibaba.nacos.shaded.com.google.protobuf.Any, com.alibaba.nacos.shaded.com.google.protobuf.Any.Builder, com.alibaba.nacos.shaded.com.google.protobuf.AnyOrBuilder> getExtensionsFieldBuilder() { if (extensionsBuilder_ == null) { extensionsBuilder_ = new com.alibaba.nacos.shaded.com.google.protobuf.RepeatedFieldBuilderV3< com.alibaba.nacos.shaded.com.google.protobuf.Any, com.alibaba.nacos.shaded.com.google.protobuf.Any.Builder, com.alibaba.nacos.shaded.com.google.protobuf.AnyOrBuilder>( extensions_, ((bitField0_ & 0x00000080) != 0), getParentForChildren(), isClean()); extensions_ = null; } return extensionsBuilder_; } @java.lang.Override public final Builder setUnknownFields(final com.alibaba.nacos.shaded.com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.alibaba.nacos.shaded.com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.rpc.context.AttributeContext) } // @@protoc_insertion_point(class_scope:google.rpc.context.AttributeContext) private static final com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext(); } public static com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.alibaba.nacos.shaded.com.google.protobuf.Parser PARSER = new com.alibaba.nacos.shaded.com.google.protobuf.AbstractParser() { @java.lang.Override public AttributeContext parsePartialFrom( com.alibaba.nacos.shaded.com.google.protobuf.CodedInputStream input, com.alibaba.nacos.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.alibaba.nacos.shaded.com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.alibaba.nacos.shaded.com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.alibaba.nacos.shaded.com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.alibaba.nacos.shaded.com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.alibaba.nacos.shaded.com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.alibaba.nacos.shaded.com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.alibaba.nacos.shaded.com.google.rpc.context.AttributeContext getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy