context

package
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 22, 2024 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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) CloneMessageVT

func (m *AttributeContext) CloneMessageVT() proto.Message

func (*AttributeContext) CloneVT

func (m *AttributeContext) CloneVT() *AttributeContext

func (*AttributeContext) Descriptor deprecated

func (*AttributeContext) Descriptor() ([]byte, []int)

Deprecated: Use AttributeContext.ProtoReflect.Descriptor instead.

func (*AttributeContext) EqualMessageVT

func (this *AttributeContext) EqualMessageVT(thatMsg proto.Message) bool

func (*AttributeContext) EqualVT

func (this *AttributeContext) EqualVT(that *AttributeContext) bool

func (*AttributeContext) GetApi

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) MarshalToSizedBufferVT

func (m *AttributeContext) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*AttributeContext) MarshalToVT

func (m *AttributeContext) MarshalToVT(dAtA []byte) (int, error)

func (*AttributeContext) MarshalVT

func (m *AttributeContext) MarshalVT() (dAtA []byte, err error)

func (*AttributeContext) ProtoMessage

func (*AttributeContext) ProtoMessage()

func (*AttributeContext) ProtoReflect

func (x *AttributeContext) ProtoReflect() protoreflect.Message

func (*AttributeContext) Reset

func (x *AttributeContext) Reset()

func (*AttributeContext) SizeVT

func (m *AttributeContext) SizeVT() (n int)

func (*AttributeContext) String

func (x *AttributeContext) String() string

func (*AttributeContext) UnmarshalVT

func (m *AttributeContext) UnmarshalVT(dAtA []byte) error

func (*AttributeContext) Validate

func (m *AttributeContext) Validate() error

Validate checks the field values on AttributeContext with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*AttributeContext) ValidateAll

func (m *AttributeContext) ValidateAll() error

ValidateAll checks the field values on AttributeContext with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in AttributeContextMultiError, or nil if none found.

type AttributeContextMultiError

type AttributeContextMultiError []error

AttributeContextMultiError is an error wrapping multiple validation errors returned by AttributeContext.ValidateAll() if the designated constraints aren't met.

func (AttributeContextMultiError) AllErrors

func (m AttributeContextMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (AttributeContextMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type AttributeContextValidationError

type AttributeContextValidationError struct {
	// contains filtered or unexported fields
}

AttributeContextValidationError is the validation error returned by AttributeContext.Validate if the designated constraints aren't met.

func (AttributeContextValidationError) Cause

Cause function returns cause value.

func (AttributeContextValidationError) Error

Error satisfies the builtin error interface

func (AttributeContextValidationError) ErrorName

ErrorName returns error name.

func (AttributeContextValidationError) Field

Field function returns field value.

func (AttributeContextValidationError) Key

Key function returns key value.

func (AttributeContextValidationError) Reason

Reason function returns reason value.

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) CloneMessageVT

func (m *AttributeContext_Api) CloneMessageVT() proto.Message

func (*AttributeContext_Api) CloneVT

func (*AttributeContext_Api) Descriptor deprecated

func (*AttributeContext_Api) Descriptor() ([]byte, []int)

Deprecated: Use AttributeContext_Api.ProtoReflect.Descriptor instead.

func (*AttributeContext_Api) EqualMessageVT

func (this *AttributeContext_Api) EqualMessageVT(thatMsg proto.Message) bool

func (*AttributeContext_Api) EqualVT

func (this *AttributeContext_Api) EqualVT(that *AttributeContext_Api) bool

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) MarshalToSizedBufferVT

func (m *AttributeContext_Api) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*AttributeContext_Api) MarshalToVT

func (m *AttributeContext_Api) MarshalToVT(dAtA []byte) (int, error)

func (*AttributeContext_Api) MarshalVT

func (m *AttributeContext_Api) MarshalVT() (dAtA []byte, err error)

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) SizeVT

func (m *AttributeContext_Api) SizeVT() (n int)

func (*AttributeContext_Api) String

func (x *AttributeContext_Api) String() string

func (*AttributeContext_Api) UnmarshalVT

func (m *AttributeContext_Api) UnmarshalVT(dAtA []byte) error

func (*AttributeContext_Api) Validate

func (m *AttributeContext_Api) Validate() error

Validate checks the field values on AttributeContext_Api with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*AttributeContext_Api) ValidateAll

func (m *AttributeContext_Api) ValidateAll() error

ValidateAll checks the field values on AttributeContext_Api with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in AttributeContext_ApiMultiError, or nil if none found.

type AttributeContext_ApiMultiError

type AttributeContext_ApiMultiError []error

AttributeContext_ApiMultiError is an error wrapping multiple validation errors returned by AttributeContext_Api.ValidateAll() if the designated constraints aren't met.

func (AttributeContext_ApiMultiError) AllErrors

func (m AttributeContext_ApiMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (AttributeContext_ApiMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type AttributeContext_ApiValidationError

type AttributeContext_ApiValidationError struct {
	// contains filtered or unexported fields
}

AttributeContext_ApiValidationError is the validation error returned by AttributeContext_Api.Validate if the designated constraints aren't met.

func (AttributeContext_ApiValidationError) Cause

Cause function returns cause value.

func (AttributeContext_ApiValidationError) Error

Error satisfies the builtin error interface

func (AttributeContext_ApiValidationError) ErrorName

ErrorName returns error name.

func (AttributeContext_ApiValidationError) Field

Field function returns field value.

func (AttributeContext_ApiValidationError) Key

Key function returns key value.

func (AttributeContext_ApiValidationError) Reason

Reason function returns reason value.

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) CloneMessageVT

func (m *AttributeContext_Auth) CloneMessageVT() proto.Message

func (*AttributeContext_Auth) CloneVT

func (*AttributeContext_Auth) Descriptor deprecated

func (*AttributeContext_Auth) Descriptor() ([]byte, []int)

Deprecated: Use AttributeContext_Auth.ProtoReflect.Descriptor instead.

func (*AttributeContext_Auth) EqualMessageVT

func (this *AttributeContext_Auth) EqualMessageVT(thatMsg proto.Message) bool

func (*AttributeContext_Auth) EqualVT

func (this *AttributeContext_Auth) EqualVT(that *AttributeContext_Auth) bool

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) MarshalToSizedBufferVT

func (m *AttributeContext_Auth) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*AttributeContext_Auth) MarshalToVT

func (m *AttributeContext_Auth) MarshalToVT(dAtA []byte) (int, error)

func (*AttributeContext_Auth) MarshalVT

func (m *AttributeContext_Auth) MarshalVT() (dAtA []byte, err error)

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) SizeVT

func (m *AttributeContext_Auth) SizeVT() (n int)

func (*AttributeContext_Auth) String

func (x *AttributeContext_Auth) String() string

func (*AttributeContext_Auth) UnmarshalVT

func (m *AttributeContext_Auth) UnmarshalVT(dAtA []byte) error

func (*AttributeContext_Auth) Validate

func (m *AttributeContext_Auth) Validate() error

Validate checks the field values on AttributeContext_Auth with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*AttributeContext_Auth) ValidateAll

func (m *AttributeContext_Auth) ValidateAll() error

ValidateAll checks the field values on AttributeContext_Auth with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in AttributeContext_AuthMultiError, or nil if none found.

type AttributeContext_AuthMultiError

type AttributeContext_AuthMultiError []error

AttributeContext_AuthMultiError is an error wrapping multiple validation errors returned by AttributeContext_Auth.ValidateAll() if the designated constraints aren't met.

func (AttributeContext_AuthMultiError) AllErrors

func (m AttributeContext_AuthMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (AttributeContext_AuthMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type AttributeContext_AuthValidationError

type AttributeContext_AuthValidationError struct {
	// contains filtered or unexported fields
}

AttributeContext_AuthValidationError is the validation error returned by AttributeContext_Auth.Validate if the designated constraints aren't met.

func (AttributeContext_AuthValidationError) Cause

Cause function returns cause value.

func (AttributeContext_AuthValidationError) Error

Error satisfies the builtin error interface

func (AttributeContext_AuthValidationError) ErrorName

ErrorName returns error name.

func (AttributeContext_AuthValidationError) Field

Field function returns field value.

func (AttributeContext_AuthValidationError) Key

Key function returns key value.

func (AttributeContext_AuthValidationError) Reason

Reason function returns reason value.

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
	// identity associated with a load balancer that forwarded 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) CloneMessageVT

func (m *AttributeContext_Peer) CloneMessageVT() proto.Message

func (*AttributeContext_Peer) CloneVT

func (*AttributeContext_Peer) Descriptor deprecated

func (*AttributeContext_Peer) Descriptor() ([]byte, []int)

Deprecated: Use AttributeContext_Peer.ProtoReflect.Descriptor instead.

func (*AttributeContext_Peer) EqualMessageVT

func (this *AttributeContext_Peer) EqualMessageVT(thatMsg proto.Message) bool

func (*AttributeContext_Peer) EqualVT

func (this *AttributeContext_Peer) EqualVT(that *AttributeContext_Peer) bool

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) MarshalToSizedBufferVT

func (m *AttributeContext_Peer) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*AttributeContext_Peer) MarshalToVT

func (m *AttributeContext_Peer) MarshalToVT(dAtA []byte) (int, error)

func (*AttributeContext_Peer) MarshalVT

func (m *AttributeContext_Peer) MarshalVT() (dAtA []byte, err error)

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) SizeVT

func (m *AttributeContext_Peer) SizeVT() (n int)

func (*AttributeContext_Peer) String

func (x *AttributeContext_Peer) String() string

func (*AttributeContext_Peer) UnmarshalVT

func (m *AttributeContext_Peer) UnmarshalVT(dAtA []byte) error

func (*AttributeContext_Peer) Validate

func (m *AttributeContext_Peer) Validate() error

Validate checks the field values on AttributeContext_Peer with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*AttributeContext_Peer) ValidateAll

func (m *AttributeContext_Peer) ValidateAll() error

ValidateAll checks the field values on AttributeContext_Peer with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in AttributeContext_PeerMultiError, or nil if none found.

type AttributeContext_PeerMultiError

type AttributeContext_PeerMultiError []error

AttributeContext_PeerMultiError is an error wrapping multiple validation errors returned by AttributeContext_Peer.ValidateAll() if the designated constraints aren't met.

func (AttributeContext_PeerMultiError) AllErrors

func (m AttributeContext_PeerMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (AttributeContext_PeerMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type AttributeContext_PeerValidationError

type AttributeContext_PeerValidationError struct {
	// contains filtered or unexported fields
}

AttributeContext_PeerValidationError is the validation error returned by AttributeContext_Peer.Validate if the designated constraints aren't met.

func (AttributeContext_PeerValidationError) Cause

Cause function returns cause value.

func (AttributeContext_PeerValidationError) Error

Error satisfies the builtin error interface

func (AttributeContext_PeerValidationError) ErrorName

ErrorName returns error name.

func (AttributeContext_PeerValidationError) Field

Field function returns field value.

func (AttributeContext_PeerValidationError) Key

Key function returns key value.

func (AttributeContext_PeerValidationError) Reason

Reason function returns reason value.

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, excluding the query parameters.
	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) CloneMessageVT

func (m *AttributeContext_Request) CloneMessageVT() proto.Message

func (*AttributeContext_Request) CloneVT

func (*AttributeContext_Request) Descriptor deprecated

func (*AttributeContext_Request) Descriptor() ([]byte, []int)

Deprecated: Use AttributeContext_Request.ProtoReflect.Descriptor instead.

func (*AttributeContext_Request) EqualMessageVT

func (this *AttributeContext_Request) EqualMessageVT(thatMsg proto.Message) bool

func (*AttributeContext_Request) EqualVT

func (*AttributeContext_Request) GetAuth

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 (*AttributeContext_Request) MarshalToSizedBufferVT

func (m *AttributeContext_Request) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*AttributeContext_Request) MarshalToVT

func (m *AttributeContext_Request) MarshalToVT(dAtA []byte) (int, error)

func (*AttributeContext_Request) MarshalVT

func (m *AttributeContext_Request) MarshalVT() (dAtA []byte, err error)

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) SizeVT

func (m *AttributeContext_Request) SizeVT() (n int)

func (*AttributeContext_Request) String

func (x *AttributeContext_Request) String() string

func (*AttributeContext_Request) UnmarshalVT

func (m *AttributeContext_Request) UnmarshalVT(dAtA []byte) error

func (*AttributeContext_Request) Validate

func (m *AttributeContext_Request) Validate() error

Validate checks the field values on AttributeContext_Request with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*AttributeContext_Request) ValidateAll

func (m *AttributeContext_Request) ValidateAll() error

ValidateAll checks the field values on AttributeContext_Request with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in AttributeContext_RequestMultiError, or nil if none found.

type AttributeContext_RequestMultiError

type AttributeContext_RequestMultiError []error

AttributeContext_RequestMultiError is an error wrapping multiple validation errors returned by AttributeContext_Request.ValidateAll() if the designated constraints aren't met.

func (AttributeContext_RequestMultiError) AllErrors

func (m AttributeContext_RequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (AttributeContext_RequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type AttributeContext_RequestValidationError

type AttributeContext_RequestValidationError struct {
	// contains filtered or unexported fields
}

AttributeContext_RequestValidationError is the validation error returned by AttributeContext_Request.Validate if the designated constraints aren't met.

func (AttributeContext_RequestValidationError) Cause

Cause function returns cause value.

func (AttributeContext_RequestValidationError) Error

Error satisfies the builtin error interface

func (AttributeContext_RequestValidationError) ErrorName

ErrorName returns error name.

func (AttributeContext_RequestValidationError) Field

Field function returns field value.

func (AttributeContext_RequestValidationError) Key

Key function returns key value.

func (AttributeContext_RequestValidationError) Reason

Reason function returns reason value.

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}", such as
	// "pubsub.googleapis.com/Topic".
	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) CloneMessageVT

func (m *AttributeContext_Resource) CloneMessageVT() proto.Message

func (*AttributeContext_Resource) CloneVT

func (*AttributeContext_Resource) Descriptor deprecated

func (*AttributeContext_Resource) Descriptor() ([]byte, []int)

Deprecated: Use AttributeContext_Resource.ProtoReflect.Descriptor instead.

func (*AttributeContext_Resource) EqualMessageVT

func (this *AttributeContext_Resource) EqualMessageVT(thatMsg proto.Message) bool

func (*AttributeContext_Resource) EqualVT

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) MarshalToSizedBufferVT

func (m *AttributeContext_Resource) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*AttributeContext_Resource) MarshalToVT

func (m *AttributeContext_Resource) MarshalToVT(dAtA []byte) (int, error)

func (*AttributeContext_Resource) MarshalVT

func (m *AttributeContext_Resource) MarshalVT() (dAtA []byte, err error)

func (*AttributeContext_Resource) ProtoMessage

func (*AttributeContext_Resource) ProtoMessage()

func (*AttributeContext_Resource) ProtoReflect

func (*AttributeContext_Resource) Reset

func (x *AttributeContext_Resource) Reset()

func (*AttributeContext_Resource) SizeVT

func (m *AttributeContext_Resource) SizeVT() (n int)

func (*AttributeContext_Resource) String

func (x *AttributeContext_Resource) String() string

func (*AttributeContext_Resource) UnmarshalVT

func (m *AttributeContext_Resource) UnmarshalVT(dAtA []byte) error

func (*AttributeContext_Resource) Validate

func (m *AttributeContext_Resource) Validate() error

Validate checks the field values on AttributeContext_Resource with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*AttributeContext_Resource) ValidateAll

func (m *AttributeContext_Resource) ValidateAll() error

ValidateAll checks the field values on AttributeContext_Resource with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in AttributeContext_ResourceMultiError, or nil if none found.

type AttributeContext_ResourceMultiError

type AttributeContext_ResourceMultiError []error

AttributeContext_ResourceMultiError is an error wrapping multiple validation errors returned by AttributeContext_Resource.ValidateAll() if the designated constraints aren't met.

func (AttributeContext_ResourceMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (AttributeContext_ResourceMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type AttributeContext_ResourceValidationError

type AttributeContext_ResourceValidationError struct {
	// contains filtered or unexported fields
}

AttributeContext_ResourceValidationError is the validation error returned by AttributeContext_Resource.Validate if the designated constraints aren't met.

func (AttributeContext_ResourceValidationError) Cause

Cause function returns cause value.

func (AttributeContext_ResourceValidationError) Error

Error satisfies the builtin error interface

func (AttributeContext_ResourceValidationError) ErrorName

ErrorName returns error name.

func (AttributeContext_ResourceValidationError) Field

Field function returns field value.

func (AttributeContext_ResourceValidationError) Key

Key function returns key value.

func (AttributeContext_ResourceValidationError) Reason

Reason function returns reason value.

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 amount 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) CloneMessageVT

func (m *AttributeContext_Response) CloneMessageVT() proto.Message

func (*AttributeContext_Response) CloneVT

func (*AttributeContext_Response) Descriptor deprecated

func (*AttributeContext_Response) Descriptor() ([]byte, []int)

Deprecated: Use AttributeContext_Response.ProtoReflect.Descriptor instead.

func (*AttributeContext_Response) EqualMessageVT

func (this *AttributeContext_Response) EqualMessageVT(thatMsg proto.Message) bool

func (*AttributeContext_Response) EqualVT

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 (*AttributeContext_Response) MarshalToSizedBufferVT

func (m *AttributeContext_Response) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*AttributeContext_Response) MarshalToVT

func (m *AttributeContext_Response) MarshalToVT(dAtA []byte) (int, error)

func (*AttributeContext_Response) MarshalVT

func (m *AttributeContext_Response) MarshalVT() (dAtA []byte, err error)

func (*AttributeContext_Response) ProtoMessage

func (*AttributeContext_Response) ProtoMessage()

func (*AttributeContext_Response) ProtoReflect

func (*AttributeContext_Response) Reset

func (x *AttributeContext_Response) Reset()

func (*AttributeContext_Response) SizeVT

func (m *AttributeContext_Response) SizeVT() (n int)

func (*AttributeContext_Response) String

func (x *AttributeContext_Response) String() string

func (*AttributeContext_Response) UnmarshalVT

func (m *AttributeContext_Response) UnmarshalVT(dAtA []byte) error

func (*AttributeContext_Response) Validate

func (m *AttributeContext_Response) Validate() error

Validate checks the field values on AttributeContext_Response with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*AttributeContext_Response) ValidateAll

func (m *AttributeContext_Response) ValidateAll() error

ValidateAll checks the field values on AttributeContext_Response with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in AttributeContext_ResponseMultiError, or nil if none found.

type AttributeContext_ResponseMultiError

type AttributeContext_ResponseMultiError []error

AttributeContext_ResponseMultiError is an error wrapping multiple validation errors returned by AttributeContext_Response.ValidateAll() if the designated constraints aren't met.

func (AttributeContext_ResponseMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (AttributeContext_ResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type AttributeContext_ResponseValidationError

type AttributeContext_ResponseValidationError struct {
	// contains filtered or unexported fields
}

AttributeContext_ResponseValidationError is the validation error returned by AttributeContext_Response.Validate if the designated constraints aren't met.

func (AttributeContext_ResponseValidationError) Cause

Cause function returns cause value.

func (AttributeContext_ResponseValidationError) Error

Error satisfies the builtin error interface

func (AttributeContext_ResponseValidationError) ErrorName

ErrorName returns error name.

func (AttributeContext_ResponseValidationError) Field

Field function returns field value.

func (AttributeContext_ResponseValidationError) Key

Key function returns key value.

func (AttributeContext_ResponseValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL