public static final class AttributesOuterClass.Attributes extends com.google.protobuf.GeneratedMessageV3 implements AttributesOuterClass.AttributesOrBuilder
Attributes represents a set of typed name/value pairs. Many of Mixer's API either consume and/or return attributes. Istio uses attributes to control the runtime behavior of services running in the service mesh. Attributes are named and typed pieces of metadata describing ingress and egress traffic and the environment this traffic occurs in. An Istio attribute carries a specific piece of information such as the error code of an API request, the latency of an API request, or the original IP address of a TCP connection. For example: ``` request.path: xyz/abc request.size: 234 request.time: 12:34:56.789 04/17/2017 source.ip: 192.168.0.1 target.service: example ``` A given Istio deployment has a fixed vocabulary of attributes that it understands. The specific vocabulary is determined by the set of attribute producers being used in the deployment. The primary attribute producer in Istio is Envoy, although specialized Mixer adapters and services can also generate attributes. The common baseline set of attributes available in most Istio deployments is defined [here](https://istio.io/docs/reference/config/mixer/attribute-vocabulary.html). Attributes are strongly typed. The supported attribute types are defined by [ValueType](https://github.com/istio/api/blob/master/policy/v1beta1/value_type.proto). Each type of value is encoded into one of the so-called transport types present in this message. Defines a map of attributes in uncompressed format. Following places may use this message: 1) Configure Istio/Proxy with static per-proxy attributes, such as source.uid. 2) Service IDL definition to extract api attributes for active requests. 3) Forward attributes from client proxy to server proxy for HTTP requests.Protobuf type
istio.mixer.v1.Attributes| Modifier and Type | Class and Description |
|---|---|
static class |
AttributesOuterClass.Attributes.AttributeValue
Specifies one attribute value with different type.
|
static interface |
AttributesOuterClass.Attributes.AttributeValueOrBuilder |
static class |
AttributesOuterClass.Attributes.Builder
Attributes represents a set of typed name/value pairs.
|
static class |
AttributesOuterClass.Attributes.StringMap
Defines a string map.
|
static interface |
AttributesOuterClass.Attributes.StringMapOrBuilder |
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable| Modifier and Type | Field and Description |
|---|---|
static int |
ATTRIBUTES_FIELD_NUMBER |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, makeExtensionsImmutable, newBuilderForType, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int ATTRIBUTES_FIELD_NUMBER
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField in class com.google.protobuf.GeneratedMessageV3protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public int getAttributesCount()
AttributesOuterClass.AttributesOrBuilderA map of attribute name to its value.
map<string, .istio.mixer.v1.Attributes.AttributeValue> attributes = 1;getAttributesCount in interface AttributesOuterClass.AttributesOrBuilderpublic boolean containsAttributes(String key)
A map of attribute name to its value.
map<string, .istio.mixer.v1.Attributes.AttributeValue> attributes = 1;containsAttributes in interface AttributesOuterClass.AttributesOrBuilder@Deprecated public Map<String,AttributesOuterClass.Attributes.AttributeValue> getAttributes()
getAttributesMap() instead.getAttributes in interface AttributesOuterClass.AttributesOrBuilderpublic Map<String,AttributesOuterClass.Attributes.AttributeValue> getAttributesMap()
A map of attribute name to its value.
map<string, .istio.mixer.v1.Attributes.AttributeValue> attributes = 1;getAttributesMap in interface AttributesOuterClass.AttributesOrBuilderpublic AttributesOuterClass.Attributes.AttributeValue getAttributesOrDefault(String key, AttributesOuterClass.Attributes.AttributeValue defaultValue)
A map of attribute name to its value.
map<string, .istio.mixer.v1.Attributes.AttributeValue> attributes = 1;getAttributesOrDefault in interface AttributesOuterClass.AttributesOrBuilderpublic AttributesOuterClass.Attributes.AttributeValue getAttributesOrThrow(String key)
A map of attribute name to its value.
map<string, .istio.mixer.v1.Attributes.AttributeValue> attributes = 1;getAttributesOrThrow in interface AttributesOuterClass.AttributesOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static AttributesOuterClass.Attributes parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AttributesOuterClass.Attributes parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AttributesOuterClass.Attributes parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AttributesOuterClass.Attributes parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AttributesOuterClass.Attributes parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AttributesOuterClass.Attributes parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AttributesOuterClass.Attributes parseFrom(InputStream input) throws IOException
IOExceptionpublic static AttributesOuterClass.Attributes parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static AttributesOuterClass.Attributes parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static AttributesOuterClass.Attributes parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static AttributesOuterClass.Attributes parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static AttributesOuterClass.Attributes parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic AttributesOuterClass.Attributes.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static AttributesOuterClass.Attributes.Builder newBuilder()
public static AttributesOuterClass.Attributes.Builder newBuilder(AttributesOuterClass.Attributes prototype)
public AttributesOuterClass.Attributes.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected AttributesOuterClass.Attributes.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static AttributesOuterClass.Attributes getDefaultInstance()
public static com.google.protobuf.Parser<AttributesOuterClass.Attributes> parser()
public com.google.protobuf.Parser<AttributesOuterClass.Attributes> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public AttributesOuterClass.Attributes getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2019 WSO2. All rights reserved.