Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
/*
* 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 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.
*
* 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.
*
* 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_ = "";
/**
*
*
*
*
* 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.
*
* 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.
*
* 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.
*
* 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_ = "";
/**
*
*
*
*
* 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 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.
*
* 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.
*
* 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.
*
* 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".
*
* 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".
*
* 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.
*
* 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".
*
* 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".
*
* 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.
*
* 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".
*
* 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".
*
* 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".
*
* 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".
*
* 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.
*
* 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.
*
* 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}"
*
* 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".
*
* 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.
*
* 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}"
*
* 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.
*
* 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".
*
* 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".
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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"
*
* 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`.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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`.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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`.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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".
*
* 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.
*
* 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.
*
* 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
*
* 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
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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".
*
* 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.
*
* 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.
*
* 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.
*
* 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
*
* 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
*
* 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
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*