public static final class AttributesOuterClass.Attributes.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<AttributesOuterClass.Attributes.Builder> 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.AttributesgetAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField in class com.google.protobuf.GeneratedMessageV3.Builder<AttributesOuterClass.Attributes.Builder>protected com.google.protobuf.MapField internalGetMutableMapField(int number)
internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<AttributesOuterClass.Attributes.Builder>protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<AttributesOuterClass.Attributes.Builder>public AttributesOuterClass.Attributes.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<AttributesOuterClass.Attributes.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<AttributesOuterClass.Attributes.Builder>public AttributesOuterClass.Attributes getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic AttributesOuterClass.Attributes build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic AttributesOuterClass.Attributes buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic AttributesOuterClass.Attributes.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<AttributesOuterClass.Attributes.Builder>public AttributesOuterClass.Attributes.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<AttributesOuterClass.Attributes.Builder>public AttributesOuterClass.Attributes.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<AttributesOuterClass.Attributes.Builder>public AttributesOuterClass.Attributes.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<AttributesOuterClass.Attributes.Builder>public AttributesOuterClass.Attributes.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AttributesOuterClass.Attributes.Builder>public AttributesOuterClass.Attributes.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AttributesOuterClass.Attributes.Builder>public AttributesOuterClass.Attributes.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<AttributesOuterClass.Attributes.Builder>public AttributesOuterClass.Attributes.Builder mergeFrom(AttributesOuterClass.Attributes other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<AttributesOuterClass.Attributes.Builder>public AttributesOuterClass.Attributes.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<AttributesOuterClass.Attributes.Builder>IOExceptionpublic 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 AttributesOuterClass.Attributes.Builder clearAttributes()
public AttributesOuterClass.Attributes.Builder removeAttributes(String key)
A map of attribute name to its value.
map<string, .istio.mixer.v1.Attributes.AttributeValue> attributes = 1;@Deprecated public Map<String,AttributesOuterClass.Attributes.AttributeValue> getMutableAttributes()
public AttributesOuterClass.Attributes.Builder putAttributes(String key, AttributesOuterClass.Attributes.AttributeValue value)
A map of attribute name to its value.
map<string, .istio.mixer.v1.Attributes.AttributeValue> attributes = 1;public AttributesOuterClass.Attributes.Builder putAllAttributes(Map<String,AttributesOuterClass.Attributes.AttributeValue> values)
A map of attribute name to its value.
map<string, .istio.mixer.v1.Attributes.AttributeValue> attributes = 1;public final AttributesOuterClass.Attributes.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AttributesOuterClass.Attributes.Builder>public final AttributesOuterClass.Attributes.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AttributesOuterClass.Attributes.Builder>Copyright © 2019 WSO2. All rights reserved.