Package com.google.rpc.context
Class AttributeContext
java.lang.Object
com.google.protobuf.AbstractMessageLite<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite<AttributeContext,AttributeContext.Builder>
com.google.rpc.context.AttributeContext
- All Implemented Interfaces:
com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,AttributeContextOrBuilder
public final class AttributeContext
extends com.google.protobuf.GeneratedMessageLite<AttributeContext,AttributeContext.Builder>
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-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classThis message defines attributes associated with API operations, such as a network API request.static interfacestatic final classThis message defines request authentication attributes.static interfacestatic final classThis message defines the standard attribute vocabulary for Google APIs.static final classThis message defines attributes for a node that handles a network request.static interfacestatic final classThis message defines attributes for an HTTP request.static interfacestatic final classThis message defines core attributes for a resource.static interfacestatic final classThis message defines attributes for a typical network response.static interfaceNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageLite
com.google.protobuf.GeneratedMessageLite.DefaultInstanceBasedParser<T extends com.google.protobuf.GeneratedMessageLite<T,?>>, com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType, BuilderType>, BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType, BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType, BuilderType>, BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType, BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType, BuilderType>, BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType, BuilderType>>, com.google.protobuf.GeneratedMessageLite.GeneratedExtension<ContainingType extends com.google.protobuf.MessageLite, Type extends Object>, com.google.protobuf.GeneratedMessageLite.MethodToInvoke, com.google.protobuf.GeneratedMessageLite.SerializedForm Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageLite
unknownFieldsFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionprotected final ObjectdynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1) getApi()Represents an API operation that is involved to a network activity.static AttributeContextThe destination of a network activity, such as accepting a TCP connection.com.google.protobuf.AnygetExtensions(int index) Supports extensions for advanced use cases, such as logs and metrics.intSupports extensions for advanced use cases, such as logs and metrics.List<com.google.protobuf.Any>Supports extensions for advanced use cases, such as logs and metrics.com.google.protobuf.AnyOrBuildergetExtensionsOrBuilder(int index) Supports extensions for advanced use cases, such as logs and metrics.List<? extends com.google.protobuf.AnyOrBuilder>Supports extensions for advanced use cases, such as logs and metrics.The origin of a network activity.Represents a network request, such as an HTTP request.Represents a target resource that is involved with a network activity.Represents a network response, such as an HTTP response.The source of a network activity, such as starting a TCP connection.booleanhasApi()Represents an API operation that is involved to a network activity.booleanThe destination of a network activity, such as accepting a TCP connection.booleanThe origin of a network activity.booleanRepresents a network request, such as an HTTP request.booleanRepresents a target resource that is involved with a network activity.booleanRepresents a network response, such as an HTTP response.booleanThe source of a network activity, such as starting a TCP connection.static AttributeContext.Builderstatic AttributeContext.BuildernewBuilder(AttributeContext prototype) static AttributeContextparseDelimitedFrom(InputStream input) static AttributeContextparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AttributeContextparseFrom(byte[] data) static AttributeContextparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AttributeContextparseFrom(com.google.protobuf.ByteString data) static AttributeContextparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AttributeContextparseFrom(com.google.protobuf.CodedInputStream input) static AttributeContextparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AttributeContextparseFrom(InputStream input) static AttributeContextparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AttributeContextparseFrom(ByteBuffer data) static AttributeContextparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<AttributeContext>parser()Methods inherited from class com.google.protobuf.GeneratedMessageLite
createBuilder, createBuilder, dynamicMethod, dynamicMethod, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, emptyProtobufList, equals, getDefaultInstanceForType, getParserForType, getSerializedSize, hashCode, isInitialized, isInitialized, makeImmutable, mergeLengthDelimitedField, mergeUnknownFields, mergeVarintField, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBuilderForType, newMessageInfo, newRepeatedGeneratedExtension, newSingularGeneratedExtension, parseDelimitedFrom, parseDelimitedFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parsePartialFrom, parseUnknownField, registerDefaultInstance, toBuilder, toString, writeToMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
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
-
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 [json_name = "origin"];- Specified by:
hasOriginin 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 [json_name = "origin"];- Specified by:
getOriginin interfaceAttributeContextOrBuilder- Returns:
- The origin.
-
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 [json_name = "source"];- Specified by:
hasSourcein 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 [json_name = "source"];- Specified by:
getSourcein interfaceAttributeContextOrBuilder- Returns:
- The source.
-
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 [json_name = "destination"];- Specified by:
hasDestinationin 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 [json_name = "destination"];- Specified by:
getDestinationin interfaceAttributeContextOrBuilder- Returns:
- The destination.
-
hasRequest
public boolean hasRequest()Represents a network request, such as an HTTP request.
.google.rpc.context.AttributeContext.Request request = 3 [json_name = "request"];- Specified by:
hasRequestin 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 [json_name = "request"];- Specified by:
getRequestin interfaceAttributeContextOrBuilder- Returns:
- The request.
-
hasResponse
public boolean hasResponse()Represents a network response, such as an HTTP response.
.google.rpc.context.AttributeContext.Response response = 4 [json_name = "response"];- Specified by:
hasResponsein 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 [json_name = "response"];- Specified by:
getResponsein interfaceAttributeContextOrBuilder- Returns:
- The response.
-
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 [json_name = "resource"];- Specified by:
hasResourcein 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 [json_name = "resource"];- Specified by:
getResourcein interfaceAttributeContextOrBuilder- Returns:
- The resource.
-
hasApi
public boolean hasApi()Represents an API operation that is involved to a network activity.
.google.rpc.context.AttributeContext.Api api = 6 [json_name = "api"];- Specified by:
hasApiin 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 [json_name = "api"];- Specified by:
getApiin interfaceAttributeContextOrBuilder- Returns:
- The api.
-
getExtensionsList
Supports extensions for advanced use cases, such as logs and metrics.
repeated .google.protobuf.Any extensions = 8 [json_name = "extensions"];- Specified by:
getExtensionsListin interfaceAttributeContextOrBuilder
-
getExtensionsOrBuilderList
Supports extensions for advanced use cases, such as logs and metrics.
repeated .google.protobuf.Any extensions = 8 [json_name = "extensions"]; -
getExtensionsCount
public int getExtensionsCount()Supports extensions for advanced use cases, such as logs and metrics.
repeated .google.protobuf.Any extensions = 8 [json_name = "extensions"];- Specified by:
getExtensionsCountin interfaceAttributeContextOrBuilder
-
getExtensions
public com.google.protobuf.Any getExtensions(int index) Supports extensions for advanced use cases, such as logs and metrics.
repeated .google.protobuf.Any extensions = 8 [json_name = "extensions"];- Specified by:
getExtensionsin interfaceAttributeContextOrBuilder
-
getExtensionsOrBuilder
public com.google.protobuf.AnyOrBuilder getExtensionsOrBuilder(int index) Supports extensions for advanced use cases, such as logs and metrics.
repeated .google.protobuf.Any extensions = 8 [json_name = "extensions"]; -
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
-
newBuilder
-
newBuilder
-
dynamicMethod
protected final Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1) - Specified by:
dynamicMethodin classcom.google.protobuf.GeneratedMessageLite<AttributeContext,AttributeContext.Builder>
-
getDefaultInstance
-
parser
-