public final class AttributeContext extends com.google.protobuf.GeneratedMessageV3 implements AttributeContextOrBuilder
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
google.rpc.context.AttributeContext| Modifier and Type | Class and Description |
|---|---|
static class |
AttributeContext.Api
This message defines attributes associated with API operations, such as
a network API request.
|
static interface |
AttributeContext.ApiOrBuilder |
static class |
AttributeContext.Auth
This message defines request authentication attributes.
|
static interface |
AttributeContext.AuthOrBuilder |
static class |
AttributeContext.Builder
This message defines the standard attribute vocabulary for Google APIs.
|
static class |
AttributeContext.Peer
This message defines attributes for a node that handles a network request.
|
static interface |
AttributeContext.PeerOrBuilder |
static class |
AttributeContext.Request
This message defines attributes for an HTTP request.
|
static interface |
AttributeContext.RequestOrBuilder |
static class |
AttributeContext.Resource
This message defines core attributes for a resource.
|
static interface |
AttributeContext.ResourceOrBuilder |
static class |
AttributeContext.Response
This message defines attributes for a typical network response.
|
static interface |
AttributeContext.ResponseOrBuilder |
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, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
API_FIELD_NUMBER |
static int |
DESTINATION_FIELD_NUMBER |
static int |
EXTENSIONS_FIELD_NUMBER |
static int |
ORIGIN_FIELD_NUMBER |
static int |
REQUEST_FIELD_NUMBER |
static int |
RESOURCE_FIELD_NUMBER |
static int |
RESPONSE_FIELD_NUMBER |
static int |
SOURCE_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
AttributeContext.Api |
getApi()
Represents an API operation that is involved to a network activity.
|
AttributeContext.ApiOrBuilder |
getApiOrBuilder()
Represents an API operation that is involved to a network activity.
|
static AttributeContext |
getDefaultInstance() |
AttributeContext |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
AttributeContext.Peer |
getDestination()
The destination of a network activity, such as accepting a TCP connection.
|
AttributeContext.PeerOrBuilder |
getDestinationOrBuilder()
The destination of a network activity, such as accepting a TCP connection.
|
com.google.protobuf.Any |
getExtensions(int index)
Supports extensions for advanced use cases, such as logs and metrics.
|
int |
getExtensionsCount()
Supports extensions for advanced use cases, such as logs and metrics.
|
List<com.google.protobuf.Any> |
getExtensionsList()
Supports extensions for advanced use cases, such as logs and metrics.
|
com.google.protobuf.AnyOrBuilder |
getExtensionsOrBuilder(int index)
Supports extensions for advanced use cases, such as logs and metrics.
|
List<? extends com.google.protobuf.AnyOrBuilder> |
getExtensionsOrBuilderList()
Supports extensions for advanced use cases, such as logs and metrics.
|
AttributeContext.Peer |
getOrigin()
The origin of a network activity.
|
AttributeContext.PeerOrBuilder |
getOriginOrBuilder()
The origin of a network activity.
|
com.google.protobuf.Parser<AttributeContext> |
getParserForType() |
AttributeContext.Request |
getRequest()
Represents a network request, such as an HTTP request.
|
AttributeContext.RequestOrBuilder |
getRequestOrBuilder()
Represents a network request, such as an HTTP request.
|
AttributeContext.Resource |
getResource()
Represents a target resource that is involved with a network activity.
|
AttributeContext.ResourceOrBuilder |
getResourceOrBuilder()
Represents a target resource that is involved with a network activity.
|
AttributeContext.Response |
getResponse()
Represents a network response, such as an HTTP response.
|
AttributeContext.ResponseOrBuilder |
getResponseOrBuilder()
Represents a network response, such as an HTTP response.
|
int |
getSerializedSize() |
AttributeContext.Peer |
getSource()
The source of a network activity, such as starting a TCP connection.
|
AttributeContext.PeerOrBuilder |
getSourceOrBuilder()
The source of a network activity, such as starting a TCP connection.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
boolean |
hasApi()
Represents an API operation that is involved to a network activity.
|
boolean |
hasDestination()
The destination of a network activity, such as accepting a TCP connection.
|
int |
hashCode() |
boolean |
hasOrigin()
The origin of a network activity.
|
boolean |
hasRequest()
Represents a network request, such as an HTTP request.
|
boolean |
hasResource()
Represents a target resource that is involved with a network activity.
|
boolean |
hasResponse()
Represents a network response, such as an HTTP response.
|
boolean |
hasSource()
The source of a network activity, such as starting a TCP connection.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static AttributeContext.Builder |
newBuilder() |
static AttributeContext.Builder |
newBuilder(AttributeContext prototype) |
AttributeContext.Builder |
newBuilderForType() |
protected AttributeContext.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static AttributeContext |
parseDelimitedFrom(InputStream input) |
static AttributeContext |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AttributeContext |
parseFrom(byte[] data) |
static AttributeContext |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AttributeContext |
parseFrom(ByteBuffer data) |
static AttributeContext |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AttributeContext |
parseFrom(com.google.protobuf.ByteString data) |
static AttributeContext |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AttributeContext |
parseFrom(com.google.protobuf.CodedInputStream input) |
static AttributeContext |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AttributeContext |
parseFrom(InputStream input) |
static AttributeContext |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<AttributeContext> |
parser() |
AttributeContext.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, 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 ORIGIN_FIELD_NUMBER
public static final int SOURCE_FIELD_NUMBER
public static final int DESTINATION_FIELD_NUMBER
public static final int REQUEST_FIELD_NUMBER
public static final int RESPONSE_FIELD_NUMBER
public static final int RESOURCE_FIELD_NUMBER
public static final int API_FIELD_NUMBER
public static final int EXTENSIONS_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public 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.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public boolean hasOrigin()
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;hasOrigin in interface AttributeContextOrBuilderpublic AttributeContext.Peer getOrigin()
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;getOrigin in interface AttributeContextOrBuilderpublic AttributeContext.PeerOrBuilder getOriginOrBuilder()
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;getOriginOrBuilder in interface AttributeContextOrBuilderpublic boolean hasSource()
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;hasSource in interface AttributeContextOrBuilderpublic AttributeContext.Peer getSource()
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;getSource in interface AttributeContextOrBuilderpublic AttributeContext.PeerOrBuilder getSourceOrBuilder()
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;getSourceOrBuilder in interface AttributeContextOrBuilderpublic boolean hasDestination()
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;hasDestination in interface AttributeContextOrBuilderpublic AttributeContext.Peer getDestination()
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;getDestination in interface AttributeContextOrBuilderpublic AttributeContext.PeerOrBuilder getDestinationOrBuilder()
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;getDestinationOrBuilder in interface AttributeContextOrBuilderpublic boolean hasRequest()
Represents a network request, such as an HTTP request.
.google.rpc.context.AttributeContext.Request request = 3;hasRequest in interface AttributeContextOrBuilderpublic AttributeContext.Request getRequest()
Represents a network request, such as an HTTP request.
.google.rpc.context.AttributeContext.Request request = 3;getRequest in interface AttributeContextOrBuilderpublic AttributeContext.RequestOrBuilder getRequestOrBuilder()
Represents a network request, such as an HTTP request.
.google.rpc.context.AttributeContext.Request request = 3;getRequestOrBuilder in interface AttributeContextOrBuilderpublic boolean hasResponse()
Represents a network response, such as an HTTP response.
.google.rpc.context.AttributeContext.Response response = 4;hasResponse in interface AttributeContextOrBuilderpublic AttributeContext.Response getResponse()
Represents a network response, such as an HTTP response.
.google.rpc.context.AttributeContext.Response response = 4;getResponse in interface AttributeContextOrBuilderpublic AttributeContext.ResponseOrBuilder getResponseOrBuilder()
Represents a network response, such as an HTTP response.
.google.rpc.context.AttributeContext.Response response = 4;getResponseOrBuilder in interface AttributeContextOrBuilderpublic boolean hasResource()
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;hasResource in interface AttributeContextOrBuilderpublic AttributeContext.Resource getResource()
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;getResource in interface AttributeContextOrBuilderpublic AttributeContext.ResourceOrBuilder getResourceOrBuilder()
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;getResourceOrBuilder in interface AttributeContextOrBuilderpublic boolean hasApi()
Represents an API operation that is involved to a network activity.
.google.rpc.context.AttributeContext.Api api = 6;hasApi in interface AttributeContextOrBuilderpublic AttributeContext.Api getApi()
Represents an API operation that is involved to a network activity.
.google.rpc.context.AttributeContext.Api api = 6;getApi in interface AttributeContextOrBuilderpublic AttributeContext.ApiOrBuilder getApiOrBuilder()
Represents an API operation that is involved to a network activity.
.google.rpc.context.AttributeContext.Api api = 6;getApiOrBuilder in interface AttributeContextOrBuilderpublic List<com.google.protobuf.Any> getExtensionsList()
Supports extensions for advanced use cases, such as logs and metrics.
repeated .google.protobuf.Any extensions = 8;getExtensionsList in interface AttributeContextOrBuilderpublic List<? extends com.google.protobuf.AnyOrBuilder> getExtensionsOrBuilderList()
Supports extensions for advanced use cases, such as logs and metrics.
repeated .google.protobuf.Any extensions = 8;getExtensionsOrBuilderList in interface AttributeContextOrBuilderpublic int getExtensionsCount()
Supports extensions for advanced use cases, such as logs and metrics.
repeated .google.protobuf.Any extensions = 8;getExtensionsCount in interface AttributeContextOrBuilderpublic com.google.protobuf.Any getExtensions(int index)
Supports extensions for advanced use cases, such as logs and metrics.
repeated .google.protobuf.Any extensions = 8;getExtensions in interface AttributeContextOrBuilderpublic com.google.protobuf.AnyOrBuilder getExtensionsOrBuilder(int index)
Supports extensions for advanced use cases, such as logs and metrics.
repeated .google.protobuf.Any extensions = 8;getExtensionsOrBuilder in interface AttributeContextOrBuilderpublic 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 AttributeContext parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AttributeContext parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AttributeContext parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AttributeContext parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AttributeContext parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AttributeContext parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AttributeContext parseFrom(InputStream input) throws IOException
IOExceptionpublic static AttributeContext parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static AttributeContext parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static AttributeContext parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static AttributeContext parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static AttributeContext parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic AttributeContext.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static AttributeContext.Builder newBuilder()
public static AttributeContext.Builder newBuilder(AttributeContext prototype)
public AttributeContext.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected AttributeContext.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static AttributeContext getDefaultInstance()
public static com.google.protobuf.Parser<AttributeContext> parser()
public com.google.protobuf.Parser<AttributeContext> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public AttributeContext getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2021 Google LLC. All rights reserved.