Documentation ¶
Index ¶
- Variables
- type AttributeContext
- func (*AttributeContext) Descriptor() ([]byte, []int)deprecated
- func (x *AttributeContext) GetApi() *AttributeContext_Api
- func (x *AttributeContext) GetDestination() *AttributeContext_Peer
- func (x *AttributeContext) GetExtensions() []*anypb.Any
- func (x *AttributeContext) GetOrigin() *AttributeContext_Peer
- func (x *AttributeContext) GetRequest() *AttributeContext_Request
- func (x *AttributeContext) GetResource() *AttributeContext_Resource
- func (x *AttributeContext) GetResponse() *AttributeContext_Response
- func (x *AttributeContext) GetSource() *AttributeContext_Peer
- func (*AttributeContext) ProtoMessage()
- func (x *AttributeContext) ProtoReflect() protoreflect.Message
- func (x *AttributeContext) Reset()
- func (x *AttributeContext) String() string
- type AttributeContext_Api
- func (*AttributeContext_Api) Descriptor() ([]byte, []int)deprecated
- func (x *AttributeContext_Api) GetOperation() string
- func (x *AttributeContext_Api) GetProtocol() string
- func (x *AttributeContext_Api) GetService() string
- func (x *AttributeContext_Api) GetVersion() string
- func (*AttributeContext_Api) ProtoMessage()
- func (x *AttributeContext_Api) ProtoReflect() protoreflect.Message
- func (x *AttributeContext_Api) Reset()
- func (x *AttributeContext_Api) String() string
- type AttributeContext_Auth
- func (*AttributeContext_Auth) Descriptor() ([]byte, []int)deprecated
- func (x *AttributeContext_Auth) GetAccessLevels() []string
- func (x *AttributeContext_Auth) GetAudiences() []string
- func (x *AttributeContext_Auth) GetClaims() *structpb.Struct
- func (x *AttributeContext_Auth) GetPresenter() string
- func (x *AttributeContext_Auth) GetPrincipal() string
- func (*AttributeContext_Auth) ProtoMessage()
- func (x *AttributeContext_Auth) ProtoReflect() protoreflect.Message
- func (x *AttributeContext_Auth) Reset()
- func (x *AttributeContext_Auth) String() string
- type AttributeContext_Peer
- func (*AttributeContext_Peer) Descriptor() ([]byte, []int)deprecated
- func (x *AttributeContext_Peer) GetIp() string
- func (x *AttributeContext_Peer) GetLabels() map[string]string
- func (x *AttributeContext_Peer) GetPort() int64
- func (x *AttributeContext_Peer) GetPrincipal() string
- func (x *AttributeContext_Peer) GetRegionCode() string
- func (*AttributeContext_Peer) ProtoMessage()
- func (x *AttributeContext_Peer) ProtoReflect() protoreflect.Message
- func (x *AttributeContext_Peer) Reset()
- func (x *AttributeContext_Peer) String() string
- type AttributeContext_Request
- func (*AttributeContext_Request) Descriptor() ([]byte, []int)deprecated
- func (x *AttributeContext_Request) GetAuth() *AttributeContext_Auth
- func (x *AttributeContext_Request) GetHeaders() map[string]string
- func (x *AttributeContext_Request) GetHost() string
- func (x *AttributeContext_Request) GetId() string
- func (x *AttributeContext_Request) GetMethod() string
- func (x *AttributeContext_Request) GetPath() string
- func (x *AttributeContext_Request) GetProtocol() string
- func (x *AttributeContext_Request) GetQuery() string
- func (x *AttributeContext_Request) GetReason() string
- func (x *AttributeContext_Request) GetScheme() string
- func (x *AttributeContext_Request) GetSize() int64
- func (x *AttributeContext_Request) GetTime() *timestamppb.Timestamp
- func (*AttributeContext_Request) ProtoMessage()
- func (x *AttributeContext_Request) ProtoReflect() protoreflect.Message
- func (x *AttributeContext_Request) Reset()
- func (x *AttributeContext_Request) String() string
- type AttributeContext_Resource
- func (*AttributeContext_Resource) Descriptor() ([]byte, []int)deprecated
- func (x *AttributeContext_Resource) GetAnnotations() map[string]string
- func (x *AttributeContext_Resource) GetCreateTime() *timestamppb.Timestamp
- func (x *AttributeContext_Resource) GetDeleteTime() *timestamppb.Timestamp
- func (x *AttributeContext_Resource) GetDisplayName() string
- func (x *AttributeContext_Resource) GetEtag() string
- func (x *AttributeContext_Resource) GetLabels() map[string]string
- func (x *AttributeContext_Resource) GetLocation() string
- func (x *AttributeContext_Resource) GetName() string
- func (x *AttributeContext_Resource) GetService() string
- func (x *AttributeContext_Resource) GetType() string
- func (x *AttributeContext_Resource) GetUid() string
- func (x *AttributeContext_Resource) GetUpdateTime() *timestamppb.Timestamp
- func (*AttributeContext_Resource) ProtoMessage()
- func (x *AttributeContext_Resource) ProtoReflect() protoreflect.Message
- func (x *AttributeContext_Resource) Reset()
- func (x *AttributeContext_Resource) String() string
- type AttributeContext_Response
- func (*AttributeContext_Response) Descriptor() ([]byte, []int)deprecated
- func (x *AttributeContext_Response) GetBackendLatency() *durationpb.Duration
- func (x *AttributeContext_Response) GetCode() int64
- func (x *AttributeContext_Response) GetHeaders() map[string]string
- func (x *AttributeContext_Response) GetSize() int64
- func (x *AttributeContext_Response) GetTime() *timestamppb.Timestamp
- func (*AttributeContext_Response) ProtoMessage()
- func (x *AttributeContext_Response) ProtoReflect() protoreflect.Message
- func (x *AttributeContext_Response) Reset()
- func (x *AttributeContext_Response) String() string
Constants ¶
This section is empty.
Variables ¶
var File_google_rpc_context_attribute_context_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type AttributeContext ¶
type AttributeContext struct { // 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. Origin *AttributeContext_Peer `protobuf:"bytes,7,opt,name=origin,proto3" json:"origin,omitempty"` // 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. Source *AttributeContext_Peer `protobuf:"bytes,1,opt,name=source,proto3" json:"source,omitempty"` // 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. Destination *AttributeContext_Peer `protobuf:"bytes,2,opt,name=destination,proto3" json:"destination,omitempty"` // Represents a network request, such as an HTTP request. Request *AttributeContext_Request `protobuf:"bytes,3,opt,name=request,proto3" json:"request,omitempty"` // Represents a network response, such as an HTTP response. Response *AttributeContext_Response `protobuf:"bytes,4,opt,name=response,proto3" json:"response,omitempty"` // 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. Resource *AttributeContext_Resource `protobuf:"bytes,5,opt,name=resource,proto3" json:"resource,omitempty"` // Represents an API operation that is involved to a network activity. Api *AttributeContext_Api `protobuf:"bytes,6,opt,name=api,proto3" json:"api,omitempty"` // Supports extensions for advanced use cases, such as logs and metrics. Extensions []*anypb.Any `protobuf:"bytes,8,rep,name=extensions,proto3" json:"extensions,omitempty"` // contains filtered or unexported fields }
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.
func (*AttributeContext) Descriptor
deprecated
func (*AttributeContext) Descriptor() ([]byte, []int)
Deprecated: Use AttributeContext.ProtoReflect.Descriptor instead.
func (*AttributeContext) GetApi ¶
func (x *AttributeContext) GetApi() *AttributeContext_Api
func (*AttributeContext) GetDestination ¶
func (x *AttributeContext) GetDestination() *AttributeContext_Peer
func (*AttributeContext) GetExtensions ¶
func (x *AttributeContext) GetExtensions() []*anypb.Any
func (*AttributeContext) GetOrigin ¶
func (x *AttributeContext) GetOrigin() *AttributeContext_Peer
func (*AttributeContext) GetRequest ¶
func (x *AttributeContext) GetRequest() *AttributeContext_Request
func (*AttributeContext) GetResource ¶
func (x *AttributeContext) GetResource() *AttributeContext_Resource
func (*AttributeContext) GetResponse ¶
func (x *AttributeContext) GetResponse() *AttributeContext_Response
func (*AttributeContext) GetSource ¶
func (x *AttributeContext) GetSource() *AttributeContext_Peer
func (*AttributeContext) ProtoMessage ¶
func (*AttributeContext) ProtoMessage()
func (*AttributeContext) ProtoReflect ¶
func (x *AttributeContext) ProtoReflect() protoreflect.Message
func (*AttributeContext) Reset ¶
func (x *AttributeContext) Reset()
func (*AttributeContext) String ¶
func (x *AttributeContext) String() string
type AttributeContext_Api ¶
type AttributeContext_Api struct { // The API service name. It is a logical identifier for a networked API, // such as "pubsub.googleapis.com". The naming syntax depends on the // API management system being used for handling the request. Service string `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"` // The API operation name. For gRPC requests, it is the fully qualified API // method name, such as "google.pubsub.v1.Publisher.Publish". For OpenAPI // requests, it is the `operationId`, such as "getPet". Operation string `protobuf:"bytes,2,opt,name=operation,proto3" json:"operation,omitempty"` // The API protocol used for sending the request, such as "http", "https", // "grpc", or "internal". Protocol string `protobuf:"bytes,3,opt,name=protocol,proto3" json:"protocol,omitempty"` // The API version associated with the API operation above, such as "v1" or // "v1alpha1". Version string `protobuf:"bytes,4,opt,name=version,proto3" json:"version,omitempty"` // contains filtered or unexported fields }
This message defines attributes associated with API operations, such as a network API request. The terminology is based on the conventions used by Google APIs, Istio, and OpenAPI.
func (*AttributeContext_Api) Descriptor
deprecated
func (*AttributeContext_Api) Descriptor() ([]byte, []int)
Deprecated: Use AttributeContext_Api.ProtoReflect.Descriptor instead.
func (*AttributeContext_Api) GetOperation ¶
func (x *AttributeContext_Api) GetOperation() string
func (*AttributeContext_Api) GetProtocol ¶
func (x *AttributeContext_Api) GetProtocol() string
func (*AttributeContext_Api) GetService ¶
func (x *AttributeContext_Api) GetService() string
func (*AttributeContext_Api) GetVersion ¶
func (x *AttributeContext_Api) GetVersion() string
func (*AttributeContext_Api) ProtoMessage ¶
func (*AttributeContext_Api) ProtoMessage()
func (*AttributeContext_Api) ProtoReflect ¶
func (x *AttributeContext_Api) ProtoReflect() protoreflect.Message
func (*AttributeContext_Api) Reset ¶
func (x *AttributeContext_Api) Reset()
func (*AttributeContext_Api) String ¶
func (x *AttributeContext_Api) String() string
type AttributeContext_Auth ¶
type AttributeContext_Auth struct { // The authenticated principal. Reflects the issuer (`iss`) and subject // (`sub`) claims within a JWT. The issuer and subject should be `/` // delimited, with `/` percent-encoded within the subject fragment. For // Google accounts, the principal format is: // "https://accounts.google.com/{id}" Principal string `protobuf:"bytes,1,opt,name=principal,proto3" json:"principal,omitempty"` // The intended audience(s) for this authentication information. Reflects // the audience (`aud`) claim within a JWT. The audience // value(s) depends on the `issuer`, but typically include one or more of // the following pieces of information: // // * The services intended to receive the credential. For example, // ["https://pubsub.googleapis.com/", "https://storage.googleapis.com/"]. // * A set of service-based scopes. For example, // ["https://www.googleapis.com/auth/cloud-platform"]. // * The client id of an app, such as the Firebase project id for JWTs // from Firebase Auth. // // Consult the documentation for the credential issuer to determine the // information provided. Audiences []string `protobuf:"bytes,2,rep,name=audiences,proto3" json:"audiences,omitempty"` // The authorized presenter of the credential. Reflects the optional // Authorized Presenter (`azp`) claim within a JWT or the // OAuth client id. For example, a Google Cloud Platform client id looks // as follows: "123456789012.apps.googleusercontent.com". Presenter string `protobuf:"bytes,3,opt,name=presenter,proto3" json:"presenter,omitempty"` // Structured claims presented with the credential. JWTs include // `{key: value}` pairs for standard and private claims. The following // is a subset of the standard required and optional claims that would // typically be presented for a Google-based JWT: // // {'iss': 'accounts.google.com', // 'sub': '113289723416554971153', // 'aud': ['123456789012', 'pubsub.googleapis.com'], // 'azp': '123456789012.apps.googleusercontent.com', // 'email': 'jsmith@example.com', // 'iat': 1353601026, // 'exp': 1353604926} // // SAML assertions are similarly specified, but with an identity provider // dependent structure. Claims *structpb.Struct `protobuf:"bytes,4,opt,name=claims,proto3" json:"claims,omitempty"` // A list of access level resource names that allow resources to be // accessed by authenticated requester. It is part of Secure GCP processing // for the incoming request. An access level string has the format: // "//{api_service_name}/accessPolicies/{policy_id}/accessLevels/{short_name}" // // Example: // "//accesscontextmanager.googleapis.com/accessPolicies/MY_POLICY_ID/accessLevels/MY_LEVEL" AccessLevels []string `protobuf:"bytes,5,rep,name=access_levels,json=accessLevels,proto3" json:"access_levels,omitempty"` // contains filtered or unexported fields }
This message defines request authentication attributes. Terminology is based on the JSON Web Token (JWT) standard, but the terms also correlate to concepts in other standards.
func (*AttributeContext_Auth) Descriptor
deprecated
func (*AttributeContext_Auth) Descriptor() ([]byte, []int)
Deprecated: Use AttributeContext_Auth.ProtoReflect.Descriptor instead.
func (*AttributeContext_Auth) GetAccessLevels ¶
func (x *AttributeContext_Auth) GetAccessLevels() []string
func (*AttributeContext_Auth) GetAudiences ¶
func (x *AttributeContext_Auth) GetAudiences() []string
func (*AttributeContext_Auth) GetClaims ¶
func (x *AttributeContext_Auth) GetClaims() *structpb.Struct
func (*AttributeContext_Auth) GetPresenter ¶
func (x *AttributeContext_Auth) GetPresenter() string
func (*AttributeContext_Auth) GetPrincipal ¶
func (x *AttributeContext_Auth) GetPrincipal() string
func (*AttributeContext_Auth) ProtoMessage ¶
func (*AttributeContext_Auth) ProtoMessage()
func (*AttributeContext_Auth) ProtoReflect ¶
func (x *AttributeContext_Auth) ProtoReflect() protoreflect.Message
func (*AttributeContext_Auth) Reset ¶
func (x *AttributeContext_Auth) Reset()
func (*AttributeContext_Auth) String ¶
func (x *AttributeContext_Auth) String() string
type AttributeContext_Peer ¶
type AttributeContext_Peer struct { // The IP address of the peer. Ip string `protobuf:"bytes,1,opt,name=ip,proto3" json:"ip,omitempty"` // The network port of the peer. Port int64 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"` // The labels associated with the peer. Labels map[string]string `` /* 153-byte string literal not displayed */ // The identity of this peer. Similar to `Request.auth.principal`, but // relative to the peer instead of the request. For example, the // idenity associated with a load balancer that forwared the request. Principal string `protobuf:"bytes,7,opt,name=principal,proto3" json:"principal,omitempty"` // The CLDR country/region code associated with the above IP address. // If the IP address is private, the `region_code` should reflect the // physical location where this peer is running. RegionCode string `protobuf:"bytes,8,opt,name=region_code,json=regionCode,proto3" json:"region_code,omitempty"` // contains filtered or unexported fields }
This message defines attributes for a node that handles a network request. The node can be either a service or an application that sends, forwards, or receives the request. Service peers should fill in `principal` and `labels` as appropriate.
func (*AttributeContext_Peer) Descriptor
deprecated
func (*AttributeContext_Peer) Descriptor() ([]byte, []int)
Deprecated: Use AttributeContext_Peer.ProtoReflect.Descriptor instead.
func (*AttributeContext_Peer) GetIp ¶
func (x *AttributeContext_Peer) GetIp() string
func (*AttributeContext_Peer) GetLabels ¶
func (x *AttributeContext_Peer) GetLabels() map[string]string
func (*AttributeContext_Peer) GetPort ¶
func (x *AttributeContext_Peer) GetPort() int64
func (*AttributeContext_Peer) GetPrincipal ¶
func (x *AttributeContext_Peer) GetPrincipal() string
func (*AttributeContext_Peer) GetRegionCode ¶
func (x *AttributeContext_Peer) GetRegionCode() string
func (*AttributeContext_Peer) ProtoMessage ¶
func (*AttributeContext_Peer) ProtoMessage()
func (*AttributeContext_Peer) ProtoReflect ¶
func (x *AttributeContext_Peer) ProtoReflect() protoreflect.Message
func (*AttributeContext_Peer) Reset ¶
func (x *AttributeContext_Peer) Reset()
func (*AttributeContext_Peer) String ¶
func (x *AttributeContext_Peer) String() string
type AttributeContext_Request ¶
type AttributeContext_Request struct { // The unique ID for a request, which can be propagated to downstream // systems. The ID should have low probability of collision // within a single day for a specific service. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // The HTTP request method, such as `GET`, `POST`. Method string `protobuf:"bytes,2,opt,name=method,proto3" json:"method,omitempty"` // The HTTP request headers. If multiple headers share the same key, they // must be merged according to the HTTP spec. All header keys must be // lowercased, because HTTP header keys are case-insensitive. Headers map[string]string `` /* 155-byte string literal not displayed */ // The HTTP URL path. Path string `protobuf:"bytes,4,opt,name=path,proto3" json:"path,omitempty"` // The HTTP request `Host` header value. Host string `protobuf:"bytes,5,opt,name=host,proto3" json:"host,omitempty"` // The HTTP URL scheme, such as `http` and `https`. Scheme string `protobuf:"bytes,6,opt,name=scheme,proto3" json:"scheme,omitempty"` // The HTTP URL query in the format of `name1=value1&name2=value2`, as it // appears in the first line of the HTTP request. No decoding is performed. Query string `protobuf:"bytes,7,opt,name=query,proto3" json:"query,omitempty"` // The timestamp when the `destination` service receives the last byte of // the request. Time *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=time,proto3" json:"time,omitempty"` // The HTTP request size in bytes. If unknown, it must be -1. Size int64 `protobuf:"varint,10,opt,name=size,proto3" json:"size,omitempty"` // The network protocol used with the request, such as "http/1.1", // "spdy/3", "h2", "h2c", "webrtc", "tcp", "udp", "quic". See // https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids // for details. Protocol string `protobuf:"bytes,11,opt,name=protocol,proto3" json:"protocol,omitempty"` // A special parameter for request reason. It is used by security systems // to associate auditing information with a request. Reason string `protobuf:"bytes,12,opt,name=reason,proto3" json:"reason,omitempty"` // The request authentication. May be absent for unauthenticated requests. // Derived from the HTTP request `Authorization` header or equivalent. Auth *AttributeContext_Auth `protobuf:"bytes,13,opt,name=auth,proto3" json:"auth,omitempty"` // contains filtered or unexported fields }
This message defines attributes for an HTTP request. If the actual request is not an HTTP request, the runtime system should try to map the actual request to an equivalent HTTP request.
func (*AttributeContext_Request) Descriptor
deprecated
func (*AttributeContext_Request) Descriptor() ([]byte, []int)
Deprecated: Use AttributeContext_Request.ProtoReflect.Descriptor instead.
func (*AttributeContext_Request) GetAuth ¶
func (x *AttributeContext_Request) GetAuth() *AttributeContext_Auth
func (*AttributeContext_Request) GetHeaders ¶
func (x *AttributeContext_Request) GetHeaders() map[string]string
func (*AttributeContext_Request) GetHost ¶
func (x *AttributeContext_Request) GetHost() string
func (*AttributeContext_Request) GetId ¶
func (x *AttributeContext_Request) GetId() string
func (*AttributeContext_Request) GetMethod ¶
func (x *AttributeContext_Request) GetMethod() string
func (*AttributeContext_Request) GetPath ¶
func (x *AttributeContext_Request) GetPath() string
func (*AttributeContext_Request) GetProtocol ¶
func (x *AttributeContext_Request) GetProtocol() string
func (*AttributeContext_Request) GetQuery ¶
func (x *AttributeContext_Request) GetQuery() string
func (*AttributeContext_Request) GetReason ¶
func (x *AttributeContext_Request) GetReason() string
func (*AttributeContext_Request) GetScheme ¶
func (x *AttributeContext_Request) GetScheme() string
func (*AttributeContext_Request) GetSize ¶
func (x *AttributeContext_Request) GetSize() int64
func (*AttributeContext_Request) GetTime ¶
func (x *AttributeContext_Request) GetTime() *timestamppb.Timestamp
func (*AttributeContext_Request) ProtoMessage ¶
func (*AttributeContext_Request) ProtoMessage()
func (*AttributeContext_Request) ProtoReflect ¶
func (x *AttributeContext_Request) ProtoReflect() protoreflect.Message
func (*AttributeContext_Request) Reset ¶
func (x *AttributeContext_Request) Reset()
func (*AttributeContext_Request) String ¶
func (x *AttributeContext_Request) String() string
type AttributeContext_Resource ¶
type AttributeContext_Resource struct { // The name of the service that this resource belongs to, such as // `pubsub.googleapis.com`. The service may be different from the DNS // hostname that actually serves the request. Service string `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"` // The stable identifier (name) of a resource on the `service`. A resource // can be logically identified as "//{resource.service}/{resource.name}". // The differences between a resource name and a URI are: // // * Resource name is a logical identifier, independent of network // protocol and API version. For example, // `//pubsub.googleapis.com/projects/123/topics/news-feed`. // * URI often includes protocol and version information, so it can // be used directly by applications. For example, // `https://pubsub.googleapis.com/v1/projects/123/topics/news-feed`. // // See https://cloud.google.com/apis/design/resource_names for details. Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // The type of the resource. The syntax is platform-specific because // different platforms define their resources differently. // // For Google APIs, the type format must be "{service}/{kind}". Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"` // The labels or tags on the resource, such as AWS resource tags and // Kubernetes resource labels. Labels map[string]string `` /* 153-byte string literal not displayed */ // The unique identifier of the resource. UID is unique in the time // and space for this resource within the scope of the service. It is // typically generated by the server on successful creation of a resource // and must not be changed. UID is used to uniquely identify resources // with resource name reuses. This should be a UUID4. Uid string `protobuf:"bytes,5,opt,name=uid,proto3" json:"uid,omitempty"` // Annotations is an unstructured key-value map stored with a resource that // may be set by external tools to store and retrieve arbitrary metadata. // They are not queryable and should be preserved when modifying objects. // // More info: https://kubernetes.io/docs/user-guide/annotations Annotations map[string]string `` /* 163-byte string literal not displayed */ // Mutable. The display name set by clients. Must be <= 63 characters. DisplayName string `protobuf:"bytes,7,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` // Output only. The timestamp when the resource was created. This may // be either the time creation was initiated or when it was completed. CreateTime *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. The timestamp when the resource was last updated. Any // change to the resource made by users must refresh this value. // Changes to a resource made by the service should refresh this value. UpdateTime *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // Output only. The timestamp when the resource was deleted. // If the resource is not deleted, this must be empty. DeleteTime *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=delete_time,json=deleteTime,proto3" json:"delete_time,omitempty"` // Output only. An opaque value that uniquely identifies a version or // generation of a resource. It can be used to confirm that the client // and server agree on the ordering of a resource being written. Etag string `protobuf:"bytes,11,opt,name=etag,proto3" json:"etag,omitempty"` // Immutable. The location of the resource. The location encoding is // specific to the service provider, and new encoding may be introduced // as the service evolves. // // For Google Cloud products, the encoding is what is used by Google Cloud // APIs, such as `us-east1`, `aws-us-east-1`, and `azure-eastus2`. The // semantics of `location` is identical to the // `cloud.googleapis.com/location` label used by some Google Cloud APIs. Location string `protobuf:"bytes,12,opt,name=location,proto3" json:"location,omitempty"` // contains filtered or unexported fields }
This message defines core attributes for a resource. A resource is an addressable (named) entity provided by the destination service. For example, a file stored on a network storage service.
func (*AttributeContext_Resource) Descriptor
deprecated
func (*AttributeContext_Resource) Descriptor() ([]byte, []int)
Deprecated: Use AttributeContext_Resource.ProtoReflect.Descriptor instead.
func (*AttributeContext_Resource) GetAnnotations ¶
func (x *AttributeContext_Resource) GetAnnotations() map[string]string
func (*AttributeContext_Resource) GetCreateTime ¶
func (x *AttributeContext_Resource) GetCreateTime() *timestamppb.Timestamp
func (*AttributeContext_Resource) GetDeleteTime ¶
func (x *AttributeContext_Resource) GetDeleteTime() *timestamppb.Timestamp
func (*AttributeContext_Resource) GetDisplayName ¶
func (x *AttributeContext_Resource) GetDisplayName() string
func (*AttributeContext_Resource) GetEtag ¶
func (x *AttributeContext_Resource) GetEtag() string
func (*AttributeContext_Resource) GetLabels ¶
func (x *AttributeContext_Resource) GetLabels() map[string]string
func (*AttributeContext_Resource) GetLocation ¶
func (x *AttributeContext_Resource) GetLocation() string
func (*AttributeContext_Resource) GetName ¶
func (x *AttributeContext_Resource) GetName() string
func (*AttributeContext_Resource) GetService ¶
func (x *AttributeContext_Resource) GetService() string
func (*AttributeContext_Resource) GetType ¶
func (x *AttributeContext_Resource) GetType() string
func (*AttributeContext_Resource) GetUid ¶
func (x *AttributeContext_Resource) GetUid() string
func (*AttributeContext_Resource) GetUpdateTime ¶
func (x *AttributeContext_Resource) GetUpdateTime() *timestamppb.Timestamp
func (*AttributeContext_Resource) ProtoMessage ¶
func (*AttributeContext_Resource) ProtoMessage()
func (*AttributeContext_Resource) ProtoReflect ¶
func (x *AttributeContext_Resource) ProtoReflect() protoreflect.Message
func (*AttributeContext_Resource) Reset ¶
func (x *AttributeContext_Resource) Reset()
func (*AttributeContext_Resource) String ¶
func (x *AttributeContext_Resource) String() string
type AttributeContext_Response ¶
type AttributeContext_Response struct { // The HTTP response status code, such as `200` and `404`. Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` // The HTTP response size in bytes. If unknown, it must be -1. Size int64 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"` // The HTTP response headers. If multiple headers share the same key, they // must be merged according to HTTP spec. All header keys must be // lowercased, because HTTP header keys are case-insensitive. Headers map[string]string `` /* 155-byte string literal not displayed */ // The timestamp when the `destination` service sends the last byte of // the response. Time *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=time,proto3" json:"time,omitempty"` // The length of time it takes the backend service to fully respond to a // request. Measured from when the destination service starts to send the // request to the backend until when the destination service receives the // complete response from the backend. BackendLatency *durationpb.Duration `protobuf:"bytes,5,opt,name=backend_latency,json=backendLatency,proto3" json:"backend_latency,omitempty"` // contains filtered or unexported fields }
This message defines attributes for a typical network response. It generally models semantics of an HTTP response.
func (*AttributeContext_Response) Descriptor
deprecated
func (*AttributeContext_Response) Descriptor() ([]byte, []int)
Deprecated: Use AttributeContext_Response.ProtoReflect.Descriptor instead.
func (*AttributeContext_Response) GetBackendLatency ¶
func (x *AttributeContext_Response) GetBackendLatency() *durationpb.Duration
func (*AttributeContext_Response) GetCode ¶
func (x *AttributeContext_Response) GetCode() int64
func (*AttributeContext_Response) GetHeaders ¶
func (x *AttributeContext_Response) GetHeaders() map[string]string
func (*AttributeContext_Response) GetSize ¶
func (x *AttributeContext_Response) GetSize() int64
func (*AttributeContext_Response) GetTime ¶
func (x *AttributeContext_Response) GetTime() *timestamppb.Timestamp
func (*AttributeContext_Response) ProtoMessage ¶
func (*AttributeContext_Response) ProtoMessage()
func (*AttributeContext_Response) ProtoReflect ¶
func (x *AttributeContext_Response) ProtoReflect() protoreflect.Message
func (*AttributeContext_Response) Reset ¶
func (x *AttributeContext_Response) Reset()
func (*AttributeContext_Response) String ¶
func (x *AttributeContext_Response) String() string