Package com.google.rpc.context
Class AttributeContext
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
com.google.rpc.context.AttributeContext
- All Implemented Interfaces:
com.google.protobuf.Message
,com.google.protobuf.MessageLite
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,AttributeContextOrBuilder
,Serializable
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
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
This message defines attributes associated with API operations, such as a network API request.static interface
static final class
This message defines request authentication attributes.static interface
static final class
This message defines the standard attribute vocabulary for Google APIs.static final class
This message defines attributes for a node that handles a network request.static interface
static final class
This message defines attributes for an HTTP request.static interface
static final class
This message defines core attributes for a resource.static interface
static final class
This message defines attributes for a typical network response.static interface
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
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 Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
Fields inherited from class com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFields
Fields inherited from class com.google.protobuf.AbstractMessage
memoizedSize
Fields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getApi()
Represents an API operation that is involved to a network activity.Represents an API operation that is involved to a network activity.static AttributeContext
static final com.google.protobuf.Descriptors.Descriptor
The destination of a network activity, such as accepting a TCP connection.The destination of a network activity, such as accepting a TCP connection.getExtensions
(int index) Supports extensions for advanced use cases, such as logs and metrics.int
Supports extensions for advanced use cases, such as logs and metrics.Supports extensions for advanced use cases, such as logs and metrics.getExtensionsOrBuilder
(int index) Supports extensions for advanced use cases, such as logs and metrics.List<? extends AnyOrBuilder>
Supports extensions for advanced use cases, such as logs and metrics.The origin of a network activity.The origin of a network activity.com.google.protobuf.Parser<AttributeContext>
Represents a network request, such as an HTTP request.Represents a network request, such as an HTTP request.Represents a target resource that is involved with a network activity.Represents a target resource that is involved with a network activity.Represents a network response, such as an HTTP response.Represents a network response, such as an HTTP response.int
The source of a network activity, such as starting a TCP connection.The source of a network activity, such as starting a TCP connection.final com.google.protobuf.UnknownFieldSet
boolean
hasApi()
Represents an API operation that is involved to a network activity.boolean
The destination of a network activity, such as accepting a TCP connection.int
hashCode()
boolean
The origin of a network activity.boolean
Represents a network request, such as an HTTP request.boolean
Represents a target resource that is involved with a network activity.boolean
Represents a network response, such as an HTTP response.boolean
The source of a network activity, such as starting a TCP connection.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
final boolean
static AttributeContext.Builder
static AttributeContext.Builder
newBuilder
(AttributeContext prototype) 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
(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 AttributeContext
parseFrom
(ByteBuffer data) static AttributeContext
parseFrom
(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<AttributeContext>
parser()
void
writeTo
(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, 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, writeStringNoTag
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeTo
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
-
Field Details
-
ORIGIN_FIELD_NUMBER
public static final int ORIGIN_FIELD_NUMBER- See Also:
-
SOURCE_FIELD_NUMBER
public static final int SOURCE_FIELD_NUMBER- See Also:
-
DESTINATION_FIELD_NUMBER
public static final int DESTINATION_FIELD_NUMBER- See Also:
-
REQUEST_FIELD_NUMBER
public static final int REQUEST_FIELD_NUMBER- See Also:
-
RESPONSE_FIELD_NUMBER
public static final int RESPONSE_FIELD_NUMBER- See Also:
-
RESOURCE_FIELD_NUMBER
public static final int RESOURCE_FIELD_NUMBER- See Also:
-
API_FIELD_NUMBER
public static final int API_FIELD_NUMBER- See Also:
-
EXTENSIONS_FIELD_NUMBER
public static final int EXTENSIONS_FIELD_NUMBER- See Also:
-
-
Method Details
-
newInstance
- Overrides:
newInstance
in classcom.google.protobuf.GeneratedMessageV3
-
getUnknownFields
public final com.google.protobuf.UnknownFieldSet getUnknownFields()- Specified by:
getUnknownFields
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getUnknownFields
in classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3
-
hasOrigin
public 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;
- Specified by:
hasOrigin
in interfaceAttributeContextOrBuilder
- Returns:
- Whether the origin field is set.
-
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;
- Specified by:
getOrigin
in interfaceAttributeContextOrBuilder
- Returns:
- The origin.
-
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;
- Specified by:
getOriginOrBuilder
in interfaceAttributeContextOrBuilder
-
hasSource
public 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;
- Specified by:
hasSource
in interfaceAttributeContextOrBuilder
- Returns:
- Whether the source field is set.
-
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;
- Specified by:
getSource
in interfaceAttributeContextOrBuilder
- Returns:
- The source.
-
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;
- Specified by:
getSourceOrBuilder
in interfaceAttributeContextOrBuilder
-
hasDestination
public 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;
- Specified by:
hasDestination
in interfaceAttributeContextOrBuilder
- Returns:
- Whether the destination field is set.
-
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;
- Specified by:
getDestination
in interfaceAttributeContextOrBuilder
- Returns:
- The destination.
-
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;
- Specified by:
getDestinationOrBuilder
in interfaceAttributeContextOrBuilder
-
hasRequest
public boolean hasRequest()Represents a network request, such as an HTTP request.
.google.rpc.context.AttributeContext.Request request = 3;
- Specified by:
hasRequest
in interfaceAttributeContextOrBuilder
- Returns:
- Whether the request field is set.
-
getRequest
Represents a network request, such as an HTTP request.
.google.rpc.context.AttributeContext.Request request = 3;
- Specified by:
getRequest
in interfaceAttributeContextOrBuilder
- Returns:
- The request.
-
getRequestOrBuilder
Represents a network request, such as an HTTP request.
.google.rpc.context.AttributeContext.Request request = 3;
- Specified by:
getRequestOrBuilder
in interfaceAttributeContextOrBuilder
-
hasResponse
public boolean hasResponse()Represents a network response, such as an HTTP response.
.google.rpc.context.AttributeContext.Response response = 4;
- Specified by:
hasResponse
in interfaceAttributeContextOrBuilder
- Returns:
- Whether the response field is set.
-
getResponse
Represents a network response, such as an HTTP response.
.google.rpc.context.AttributeContext.Response response = 4;
- Specified by:
getResponse
in interfaceAttributeContextOrBuilder
- Returns:
- The response.
-
getResponseOrBuilder
Represents a network response, such as an HTTP response.
.google.rpc.context.AttributeContext.Response response = 4;
- Specified by:
getResponseOrBuilder
in interfaceAttributeContextOrBuilder
-
hasResource
public 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;
- Specified by:
hasResource
in interfaceAttributeContextOrBuilder
- Returns:
- Whether the resource field is set.
-
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;
- Specified by:
getResource
in interfaceAttributeContextOrBuilder
- Returns:
- The resource.
-
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;
- Specified by:
getResourceOrBuilder
in interfaceAttributeContextOrBuilder
-
hasApi
public boolean hasApi()Represents an API operation that is involved to a network activity.
.google.rpc.context.AttributeContext.Api api = 6;
- Specified by:
hasApi
in interfaceAttributeContextOrBuilder
- Returns:
- Whether the api field is set.
-
getApi
Represents an API operation that is involved to a network activity.
.google.rpc.context.AttributeContext.Api api = 6;
- Specified by:
getApi
in interfaceAttributeContextOrBuilder
- Returns:
- The api.
-
getApiOrBuilder
Represents an API operation that is involved to a network activity.
.google.rpc.context.AttributeContext.Api api = 6;
- Specified by:
getApiOrBuilder
in interfaceAttributeContextOrBuilder
-
getExtensionsList
Supports extensions for advanced use cases, such as logs and metrics.
repeated .google.protobuf.Any extensions = 8;
- Specified by:
getExtensionsList
in interfaceAttributeContextOrBuilder
-
getExtensionsOrBuilderList
Supports extensions for advanced use cases, such as logs and metrics.
repeated .google.protobuf.Any extensions = 8;
- Specified by:
getExtensionsOrBuilderList
in interfaceAttributeContextOrBuilder
-
getExtensionsCount
public int getExtensionsCount()Supports extensions for advanced use cases, such as logs and metrics.
repeated .google.protobuf.Any extensions = 8;
- Specified by:
getExtensionsCount
in interfaceAttributeContextOrBuilder
-
getExtensions
Supports extensions for advanced use cases, such as logs and metrics.
repeated .google.protobuf.Any extensions = 8;
- Specified by:
getExtensions
in interfaceAttributeContextOrBuilder
-
getExtensionsOrBuilder
Supports extensions for advanced use cases, such as logs and metrics.
repeated .google.protobuf.Any extensions = 8;
- Specified by:
getExtensionsOrBuilder
in interfaceAttributeContextOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in classcom.google.protobuf.AbstractMessage
-
parseFrom
public static AttributeContext parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AttributeContext parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AttributeContext parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AttributeContext parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AttributeContext parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AttributeContext parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static AttributeContext parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static AttributeContext parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static AttributeContext parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static AttributeContext parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected AttributeContext.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) - Specified by:
newBuilderForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-