Class AttributeContext.Builder (2.9.1)

Stay organized with collections Save and categorize content based on your preferences.
public static final class AttributeContext.Builder extends GeneratedMessageV3.Builder<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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllExtensions(Iterable<? extends Any> values)

public AttributeContext.Builder addAllExtensions(Iterable<? extends Any> values)

Supports extensions for advanced use cases, such as logs and metrics.

repeated .google.protobuf.Any extensions = 8;

Parameter
NameDescription
valuesIterable<? extends com.google.protobuf.Any>
Returns
TypeDescription
AttributeContext.Builder

addExtensions(Any value)

public AttributeContext.Builder addExtensions(Any value)

Supports extensions for advanced use cases, such as logs and metrics.

repeated .google.protobuf.Any extensions = 8;

Parameter
NameDescription
valueAny
Returns
TypeDescription
AttributeContext.Builder

addExtensions(Any.Builder builderForValue)

public AttributeContext.Builder addExtensions(Any.Builder builderForValue)

Supports extensions for advanced use cases, such as logs and metrics.

repeated .google.protobuf.Any extensions = 8;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
AttributeContext.Builder

addExtensions(int index, Any value)

public AttributeContext.Builder addExtensions(int index, Any value)

Supports extensions for advanced use cases, such as logs and metrics.

repeated .google.protobuf.Any extensions = 8;

Parameters
NameDescription
indexint
valueAny
Returns
TypeDescription
AttributeContext.Builder

addExtensions(int index, Any.Builder builderForValue)

public AttributeContext.Builder addExtensions(int index, Any.Builder builderForValue)

Supports extensions for advanced use cases, such as logs and metrics.

repeated .google.protobuf.Any extensions = 8;

Parameters
NameDescription
indexint
builderForValueBuilder
Returns
TypeDescription
AttributeContext.Builder

addExtensionsBuilder()

public Any.Builder addExtensionsBuilder()

Supports extensions for advanced use cases, such as logs and metrics.

repeated .google.protobuf.Any extensions = 8;

Returns
TypeDescription
Builder

addExtensionsBuilder(int index)

public Any.Builder addExtensionsBuilder(int index)

Supports extensions for advanced use cases, such as logs and metrics.

repeated .google.protobuf.Any extensions = 8;

Parameter
NameDescription
indexint
Returns
TypeDescription
Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AttributeContext.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
AttributeContext.Builder
Overrides

build()

public AttributeContext build()
Returns
TypeDescription
AttributeContext

buildPartial()

public AttributeContext buildPartial()
Returns
TypeDescription
AttributeContext

clear()

public AttributeContext.Builder clear()
Returns
TypeDescription
AttributeContext.Builder
Overrides

clearApi()

public AttributeContext.Builder clearApi()

Represents an API operation that is involved to a network activity.

.google.rpc.context.AttributeContext.Api api = 6;

Returns
TypeDescription
AttributeContext.Builder

clearDestination()

public AttributeContext.Builder clearDestination()

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;

Returns
TypeDescription
AttributeContext.Builder

clearExtensions()

public AttributeContext.Builder clearExtensions()

Supports extensions for advanced use cases, such as logs and metrics.

repeated .google.protobuf.Any extensions = 8;

Returns
TypeDescription
AttributeContext.Builder

clearField(Descriptors.FieldDescriptor field)

public AttributeContext.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
AttributeContext.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public AttributeContext.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
AttributeContext.Builder
Overrides

clearOrigin()

public AttributeContext.Builder clearOrigin()

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;

Returns
TypeDescription
AttributeContext.Builder

clearRequest()

public AttributeContext.Builder clearRequest()

Represents a network request, such as an HTTP request.

.google.rpc.context.AttributeContext.Request request = 3;

Returns
TypeDescription
AttributeContext.Builder

clearResource()

public AttributeContext.Builder clearResource()

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;

Returns
TypeDescription
AttributeContext.Builder

clearResponse()

public AttributeContext.Builder clearResponse()

Represents a network response, such as an HTTP response.

.google.rpc.context.AttributeContext.Response response = 4;

Returns
TypeDescription
AttributeContext.Builder

clearSource()

public AttributeContext.Builder clearSource()

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;

Returns
TypeDescription
AttributeContext.Builder

clone()

public AttributeContext.Builder clone()
Returns
TypeDescription
AttributeContext.Builder
Overrides

getApi()

public AttributeContext.Api getApi()

Represents an API operation that is involved to a network activity.

.google.rpc.context.AttributeContext.Api api = 6;

Returns
TypeDescription
AttributeContext.Api

The api.

getApiBuilder()

public AttributeContext.Api.Builder getApiBuilder()

Represents an API operation that is involved to a network activity.

.google.rpc.context.AttributeContext.Api api = 6;

Returns
TypeDescription
AttributeContext.Api.Builder

getApiOrBuilder()

public AttributeContext.ApiOrBuilder getApiOrBuilder()

Represents an API operation that is involved to a network activity.

.google.rpc.context.AttributeContext.Api api = 6;

Returns
TypeDescription
AttributeContext.ApiOrBuilder

getDefaultInstanceForType()

public AttributeContext getDefaultInstanceForType()
Returns
TypeDescription
AttributeContext

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDestination()

public AttributeContext.Peer getDestination()

The destination of a network activity, such as accepting a TCP connection. In a multi hop network activity, the destination represents the receiver of the last hop.

.google.rpc.context.AttributeContext.Peer destination = 2;

Returns
TypeDescription
AttributeContext.Peer

The destination.

getDestinationBuilder()

public AttributeContext.Peer.Builder getDestinationBuilder()

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;

Returns
TypeDescription
AttributeContext.Peer.Builder

getDestinationOrBuilder()

public AttributeContext.PeerOrBuilder getDestinationOrBuilder()

The destination of a network activity, such as accepting a TCP connection. In a multi hop network activity, the destination represents the receiver of the last hop.

.google.rpc.context.AttributeContext.Peer destination = 2;

Returns
TypeDescription
AttributeContext.PeerOrBuilder

getExtensions(int index)

public Any getExtensions(int index)

Supports extensions for advanced use cases, such as logs and metrics.

repeated .google.protobuf.Any extensions = 8;

Parameter
NameDescription
indexint
Returns
TypeDescription
Any

getExtensionsBuilder(int index)

public Any.Builder getExtensionsBuilder(int index)

Supports extensions for advanced use cases, such as logs and metrics.

repeated .google.protobuf.Any extensions = 8;

Parameter
NameDescription
indexint
Returns
TypeDescription
Builder

getExtensionsBuilderList()

public List<Any.Builder> getExtensionsBuilderList()

Supports extensions for advanced use cases, such as logs and metrics.

repeated .google.protobuf.Any extensions = 8;

Returns
TypeDescription
List<Builder>

getExtensionsCount()

public int getExtensionsCount()

Supports extensions for advanced use cases, such as logs and metrics.

repeated .google.protobuf.Any extensions = 8;

Returns
TypeDescription
int

getExtensionsList()

public List<Any> getExtensionsList()

Supports extensions for advanced use cases, such as logs and metrics.

repeated .google.protobuf.Any extensions = 8;

Returns
TypeDescription
List<Any>

getExtensionsOrBuilder(int index)

public AnyOrBuilder getExtensionsOrBuilder(int index)

Supports extensions for advanced use cases, such as logs and metrics.

repeated .google.protobuf.Any extensions = 8;

Parameter
NameDescription
indexint
Returns
TypeDescription
AnyOrBuilder

getExtensionsOrBuilderList()

public List<? extends AnyOrBuilder> getExtensionsOrBuilderList()

Supports extensions for advanced use cases, such as logs and metrics.

repeated .google.protobuf.Any extensions = 8;

Returns
TypeDescription
List<? extends com.google.protobuf.AnyOrBuilder>

getOrigin()

public AttributeContext.Peer getOrigin()

The origin of a network activity. In a multi hop network activity, the origin represents the sender of the first hop. For the first hop, the source and the origin must have the same content.

.google.rpc.context.AttributeContext.Peer origin = 7;

Returns
TypeDescription
AttributeContext.Peer

The origin.

getOriginBuilder()

public AttributeContext.Peer.Builder getOriginBuilder()

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;

Returns
TypeDescription
AttributeContext.Peer.Builder

getOriginOrBuilder()

public AttributeContext.PeerOrBuilder getOriginOrBuilder()

The origin of a network activity. In a multi hop network activity, the origin represents the sender of the first hop. For the first hop, the source and the origin must have the same content.

.google.rpc.context.AttributeContext.Peer origin = 7;

Returns
TypeDescription
AttributeContext.PeerOrBuilder

getRequest()

public AttributeContext.Request getRequest()

Represents a network request, such as an HTTP request.

.google.rpc.context.AttributeContext.Request request = 3;

Returns
TypeDescription
AttributeContext.Request

The request.

getRequestBuilder()

public AttributeContext.Request.Builder getRequestBuilder()

Represents a network request, such as an HTTP request.

.google.rpc.context.AttributeContext.Request request = 3;

Returns
TypeDescription
AttributeContext.Request.Builder

getRequestOrBuilder()

public AttributeContext.RequestOrBuilder getRequestOrBuilder()

Represents a network request, such as an HTTP request.

.google.rpc.context.AttributeContext.Request request = 3;

Returns
TypeDescription
AttributeContext.RequestOrBuilder

getResource()

public AttributeContext.Resource getResource()

Represents a target resource that is involved with a network activity. If multiple resources are involved with an activity, this must be the primary one.

.google.rpc.context.AttributeContext.Resource resource = 5;

Returns
TypeDescription
AttributeContext.Resource

The resource.

getResourceBuilder()

public AttributeContext.Resource.Builder getResourceBuilder()

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;

Returns
TypeDescription
AttributeContext.Resource.Builder

getResourceOrBuilder()

public AttributeContext.ResourceOrBuilder getResourceOrBuilder()

Represents a target resource that is involved with a network activity. If multiple resources are involved with an activity, this must be the primary one.

.google.rpc.context.AttributeContext.Resource resource = 5;

Returns
TypeDescription
AttributeContext.ResourceOrBuilder

getResponse()

public AttributeContext.Response getResponse()

Represents a network response, such as an HTTP response.

.google.rpc.context.AttributeContext.Response response = 4;

Returns
TypeDescription
AttributeContext.Response

The response.

getResponseBuilder()

public AttributeContext.Response.Builder getResponseBuilder()

Represents a network response, such as an HTTP response.

.google.rpc.context.AttributeContext.Response response = 4;

Returns
TypeDescription
AttributeContext.Response.Builder

getResponseOrBuilder()

public AttributeContext.ResponseOrBuilder getResponseOrBuilder()

Represents a network response, such as an HTTP response.

.google.rpc.context.AttributeContext.Response response = 4;

Returns
TypeDescription
AttributeContext.ResponseOrBuilder

getSource()

public AttributeContext.Peer getSource()

The source of a network activity, such as starting a TCP connection. In a multi hop network activity, the source represents the sender of the last hop.

.google.rpc.context.AttributeContext.Peer source = 1;

Returns
TypeDescription
AttributeContext.Peer

The source.

getSourceBuilder()

public AttributeContext.Peer.Builder getSourceBuilder()

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;

Returns
TypeDescription
AttributeContext.Peer.Builder

getSourceOrBuilder()

public AttributeContext.PeerOrBuilder getSourceOrBuilder()

The source of a network activity, such as starting a TCP connection. In a multi hop network activity, the source represents the sender of the last hop.

.google.rpc.context.AttributeContext.Peer source = 1;

Returns
TypeDescription
AttributeContext.PeerOrBuilder

hasApi()

public boolean hasApi()

Represents an API operation that is involved to a network activity.

.google.rpc.context.AttributeContext.Api api = 6;

Returns
TypeDescription
boolean

Whether the api field is set.

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;

Returns
TypeDescription
boolean

Whether the destination field is set.

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;

Returns
TypeDescription
boolean

Whether the origin field is set.

hasRequest()

public boolean hasRequest()

Represents a network request, such as an HTTP request.

.google.rpc.context.AttributeContext.Request request = 3;

Returns
TypeDescription
boolean

Whether the request field is set.

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;

Returns
TypeDescription
boolean

Whether the resource field is set.

hasResponse()

public boolean hasResponse()

Represents a network response, such as an HTTP response.

.google.rpc.context.AttributeContext.Response response = 4;

Returns
TypeDescription
boolean

Whether the response field is set.

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;

Returns
TypeDescription
boolean

Whether the source field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeApi(AttributeContext.Api value)

public AttributeContext.Builder mergeApi(AttributeContext.Api value)

Represents an API operation that is involved to a network activity.

.google.rpc.context.AttributeContext.Api api = 6;

Parameter
NameDescription
valueAttributeContext.Api
Returns
TypeDescription
AttributeContext.Builder

mergeDestination(AttributeContext.Peer value)

public AttributeContext.Builder mergeDestination(AttributeContext.Peer value)

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;

Parameter
NameDescription
valueAttributeContext.Peer
Returns
TypeDescription
AttributeContext.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AttributeContext.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AttributeContext.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public AttributeContext.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
AttributeContext.Builder
Overrides

mergeFrom(AttributeContext other)

public AttributeContext.Builder mergeFrom(AttributeContext other)
Parameter
NameDescription
otherAttributeContext
Returns
TypeDescription
AttributeContext.Builder

mergeOrigin(AttributeContext.Peer value)

public AttributeContext.Builder mergeOrigin(AttributeContext.Peer value)

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;

Parameter
NameDescription
valueAttributeContext.Peer
Returns
TypeDescription
AttributeContext.Builder

mergeRequest(AttributeContext.Request value)

public AttributeContext.Builder mergeRequest(AttributeContext.Request value)

Represents a network request, such as an HTTP request.

.google.rpc.context.AttributeContext.Request request = 3;

Parameter
NameDescription
valueAttributeContext.Request
Returns
TypeDescription
AttributeContext.Builder

mergeResource(AttributeContext.Resource value)

public AttributeContext.Builder mergeResource(AttributeContext.Resource value)

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;

Parameter
NameDescription
valueAttributeContext.Resource
Returns
TypeDescription
AttributeContext.Builder

mergeResponse(AttributeContext.Response value)

public AttributeContext.Builder mergeResponse(AttributeContext.Response value)

Represents a network response, such as an HTTP response.

.google.rpc.context.AttributeContext.Response response = 4;

Parameter
NameDescription
valueAttributeContext.Response
Returns
TypeDescription
AttributeContext.Builder

mergeSource(AttributeContext.Peer value)

public AttributeContext.Builder mergeSource(AttributeContext.Peer value)

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;

Parameter
NameDescription
valueAttributeContext.Peer
Returns
TypeDescription
AttributeContext.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AttributeContext.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
AttributeContext.Builder
Overrides

removeExtensions(int index)

public AttributeContext.Builder removeExtensions(int index)

Supports extensions for advanced use cases, such as logs and metrics.

repeated .google.protobuf.Any extensions = 8;

Parameter
NameDescription
indexint
Returns
TypeDescription
AttributeContext.Builder

setApi(AttributeContext.Api value)

public AttributeContext.Builder setApi(AttributeContext.Api value)

Represents an API operation that is involved to a network activity.

.google.rpc.context.AttributeContext.Api api = 6;

Parameter
NameDescription
valueAttributeContext.Api
Returns
TypeDescription
AttributeContext.Builder

setApi(AttributeContext.Api.Builder builderForValue)

public AttributeContext.Builder setApi(AttributeContext.Api.Builder builderForValue)

Represents an API operation that is involved to a network activity.

.google.rpc.context.AttributeContext.Api api = 6;

Parameter
NameDescription
builderForValueAttributeContext.Api.Builder
Returns
TypeDescription
AttributeContext.Builder

setDestination(AttributeContext.Peer value)

public AttributeContext.Builder setDestination(AttributeContext.Peer value)

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;

Parameter
NameDescription
valueAttributeContext.Peer
Returns
TypeDescription
AttributeContext.Builder

setDestination(AttributeContext.Peer.Builder builderForValue)

public AttributeContext.Builder setDestination(AttributeContext.Peer.Builder builderForValue)

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;

Parameter
NameDescription
builderForValueAttributeContext.Peer.Builder
Returns
TypeDescription
AttributeContext.Builder

setExtensions(int index, Any value)

public AttributeContext.Builder setExtensions(int index, Any value)

Supports extensions for advanced use cases, such as logs and metrics.

repeated .google.protobuf.Any extensions = 8;

Parameters
NameDescription
indexint
valueAny
Returns
TypeDescription
AttributeContext.Builder

setExtensions(int index, Any.Builder builderForValue)

public AttributeContext.Builder setExtensions(int index, Any.Builder builderForValue)

Supports extensions for advanced use cases, such as logs and metrics.

repeated .google.protobuf.Any extensions = 8;

Parameters
NameDescription
indexint
builderForValueBuilder
Returns
TypeDescription
AttributeContext.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public AttributeContext.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
AttributeContext.Builder
Overrides

setOrigin(AttributeContext.Peer value)

public AttributeContext.Builder setOrigin(AttributeContext.Peer value)

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;

Parameter
NameDescription
valueAttributeContext.Peer
Returns
TypeDescription
AttributeContext.Builder

setOrigin(AttributeContext.Peer.Builder builderForValue)

public AttributeContext.Builder setOrigin(AttributeContext.Peer.Builder builderForValue)

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;

Parameter
NameDescription
builderForValueAttributeContext.Peer.Builder
Returns
TypeDescription
AttributeContext.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public AttributeContext.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
AttributeContext.Builder
Overrides

setRequest(AttributeContext.Request value)

public AttributeContext.Builder setRequest(AttributeContext.Request value)

Represents a network request, such as an HTTP request.

.google.rpc.context.AttributeContext.Request request = 3;

Parameter
NameDescription
valueAttributeContext.Request
Returns
TypeDescription
AttributeContext.Builder

setRequest(AttributeContext.Request.Builder builderForValue)

public AttributeContext.Builder setRequest(AttributeContext.Request.Builder builderForValue)

Represents a network request, such as an HTTP request.

.google.rpc.context.AttributeContext.Request request = 3;

Parameter
NameDescription
builderForValueAttributeContext.Request.Builder
Returns
TypeDescription
AttributeContext.Builder

setResource(AttributeContext.Resource value)

public AttributeContext.Builder setResource(AttributeContext.Resource value)

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;

Parameter
NameDescription
valueAttributeContext.Resource
Returns
TypeDescription
AttributeContext.Builder

setResource(AttributeContext.Resource.Builder builderForValue)

public AttributeContext.Builder setResource(AttributeContext.Resource.Builder builderForValue)

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;

Parameter
NameDescription
builderForValueAttributeContext.Resource.Builder
Returns
TypeDescription
AttributeContext.Builder

setResponse(AttributeContext.Response value)

public AttributeContext.Builder setResponse(AttributeContext.Response value)

Represents a network response, such as an HTTP response.

.google.rpc.context.AttributeContext.Response response = 4;

Parameter
NameDescription
valueAttributeContext.Response
Returns
TypeDescription
AttributeContext.Builder

setResponse(AttributeContext.Response.Builder builderForValue)

public AttributeContext.Builder setResponse(AttributeContext.Response.Builder builderForValue)

Represents a network response, such as an HTTP response.

.google.rpc.context.AttributeContext.Response response = 4;

Parameter
NameDescription
builderForValueAttributeContext.Response.Builder
Returns
TypeDescription
AttributeContext.Builder

setSource(AttributeContext.Peer value)

public AttributeContext.Builder setSource(AttributeContext.Peer value)

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;

Parameter
NameDescription
valueAttributeContext.Peer
Returns
TypeDescription
AttributeContext.Builder

setSource(AttributeContext.Peer.Builder builderForValue)

public AttributeContext.Builder setSource(AttributeContext.Peer.Builder builderForValue)

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;

Parameter
NameDescription
builderForValueAttributeContext.Peer.Builder
Returns
TypeDescription
AttributeContext.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final AttributeContext.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
AttributeContext.Builder
Overrides