Class AttributeContext.Builder (2.43.0)

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
Type Description
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
Name Description
values Iterable<? extends com.google.protobuf.Any>
Returns
Type Description
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
Name Description
value Any
Returns
Type Description
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
Name Description
builderForValue Builder
Returns
Type Description
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
Name Description
index int
value Any
Returns
Type Description
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
Name Description
index int
builderForValue Builder
Returns
Type Description
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
Type Description
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
Name Description
index int
Returns
Type Description
Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AttributeContext.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AttributeContext.Builder
Overrides

build()

public AttributeContext build()
Returns
Type Description
AttributeContext

buildPartial()

public AttributeContext buildPartial()
Returns
Type Description
AttributeContext

clear()

public AttributeContext.Builder clear()
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
AttributeContext.Builder

clearField(Descriptors.FieldDescriptor field)

public AttributeContext.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
AttributeContext.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public AttributeContext.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
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
Type Description
AttributeContext.Builder

clearRequest()

public AttributeContext.Builder clearRequest()

Represents a network request, such as an HTTP request.

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

Returns
Type Description
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
Type Description
AttributeContext.Builder

clearResponse()

public AttributeContext.Builder clearResponse()

Represents a network response, such as an HTTP response.

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

Returns
Type Description
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
Type Description
AttributeContext.Builder

clone()

public AttributeContext.Builder clone()
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
AttributeContext.ApiOrBuilder

getDefaultInstanceForType()

public AttributeContext getDefaultInstanceForType()
Returns
Type Description
AttributeContext

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Name Description
index int
Returns
Type Description
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
Name Description
index int
Returns
Type Description
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
Type Description
List<Builder>

getExtensionsCount()

public int getExtensionsCount()

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

repeated .google.protobuf.Any extensions = 8;

Returns
Type Description
int

getExtensionsList()

public List<Any> getExtensionsList()

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

repeated .google.protobuf.Any extensions = 8;

Returns
Type Description
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
Name Description
index int
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
AttributeContext.PeerOrBuilder

getRequest()

public AttributeContext.Request getRequest()

Represents a network request, such as an HTTP request.

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

Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
AttributeContext.ResourceOrBuilder

getResponse()

public AttributeContext.Response getResponse()

Represents a network response, such as an HTTP response.

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

Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
boolean

Whether the source field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
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
Name Description
value AttributeContext.Api
Returns
Type Description
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
Name Description
value AttributeContext.Peer
Returns
Type Description
AttributeContext.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AttributeContext.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AttributeContext.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public AttributeContext.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
AttributeContext.Builder
Overrides

mergeFrom(AttributeContext other)

public AttributeContext.Builder mergeFrom(AttributeContext other)
Parameter
Name Description
other AttributeContext
Returns
Type Description
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
Name Description
value AttributeContext.Peer
Returns
Type Description
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
Name Description
value AttributeContext.Request
Returns
Type Description
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
Name Description
value AttributeContext.Resource
Returns
Type Description
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
Name Description
value AttributeContext.Response
Returns
Type Description
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
Name Description
value AttributeContext.Peer
Returns
Type Description
AttributeContext.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AttributeContext.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
index int
Returns
Type Description
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
Name Description
value AttributeContext.Api
Returns
Type Description
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
Name Description
builderForValue AttributeContext.Api.Builder
Returns
Type Description
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
Name Description
value AttributeContext.Peer
Returns
Type Description
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
Name Description
builderForValue AttributeContext.Peer.Builder
Returns
Type Description
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
Name Description
index int
value Any
Returns
Type Description
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
Name Description
index int
builderForValue Builder
Returns
Type Description
AttributeContext.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public AttributeContext.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
value AttributeContext.Peer
Returns
Type Description
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
Name Description
builderForValue AttributeContext.Peer.Builder
Returns
Type Description
AttributeContext.Builder

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

public AttributeContext.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
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
Name Description
value AttributeContext.Request
Returns
Type Description
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
Name Description
builderForValue AttributeContext.Request.Builder
Returns
Type Description
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
Name Description
value AttributeContext.Resource
Returns
Type Description
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
Name Description
builderForValue AttributeContext.Resource.Builder
Returns
Type Description
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
Name Description
value AttributeContext.Response
Returns
Type Description
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
Name Description
builderForValue AttributeContext.Response.Builder
Returns
Type Description
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
Name Description
value AttributeContext.Peer
Returns
Type Description
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
Name Description
builderForValue AttributeContext.Peer.Builder
Returns
Type Description
AttributeContext.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final AttributeContext.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AttributeContext.Builder
Overrides