Class Agent.Builder (2.103.0)

public static final class Agent.Builder extends GeneratedMessage.Builder<Agent.Builder> implements AgentOrBuilder

Represents a monitored AI Agent.

Protobuf type google.cloud.securitycenter.v1.Agent

Implements

AgentOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public Agent build()
Returns
Type Description
Agent

buildPartial()

public Agent buildPartial()
Returns
Type Description
Agent

clear()

public Agent.Builder clear()
Returns
Type Description
Agent.Builder
Overrides

clearDisplayName()

public Agent.Builder clearDisplayName()

The user friendly name of the specific agent instance where the finding was detected, for example, "Banking Agent".

string display_name = 2;

Returns
Type Description
Agent.Builder

This builder for chaining.

clearId()

public Agent.Builder clearId()

Identifier of the agent.

string id = 1;

Returns
Type Description
Agent.Builder

This builder for chaining.

getDefaultInstanceForType()

public Agent getDefaultInstanceForType()
Returns
Type Description
Agent

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getDisplayName()

public String getDisplayName()

The user friendly name of the specific agent instance where the finding was detected, for example, "Banking Agent".

string display_name = 2;

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

The user friendly name of the specific agent instance where the finding was detected, for example, "Banking Agent".

string display_name = 2;

Returns
Type Description
ByteString

The bytes for displayName.

getId()

public String getId()

Identifier of the agent.

string id = 1;

Returns
Type Description
String

The id.

getIdBytes()

public ByteString getIdBytes()

Identifier of the agent.

string id = 1;

Returns
Type Description
ByteString

The bytes for id.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Agent other)

public Agent.Builder mergeFrom(Agent other)
Parameter
Name Description
other Agent
Returns
Type Description
Agent.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setDisplayName(String value)

public Agent.Builder setDisplayName(String value)

The user friendly name of the specific agent instance where the finding was detected, for example, "Banking Agent".

string display_name = 2;

Parameter
Name Description
value String

The displayName to set.

Returns
Type Description
Agent.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public Agent.Builder setDisplayNameBytes(ByteString value)

The user friendly name of the specific agent instance where the finding was detected, for example, "Banking Agent".

string display_name = 2;

Parameter
Name Description
value ByteString

The bytes for displayName to set.

Returns
Type Description
Agent.Builder

This builder for chaining.

setId(String value)

public Agent.Builder setId(String value)

Identifier of the agent.

string id = 1;

Parameter
Name Description
value String

The id to set.

Returns
Type Description
Agent.Builder

This builder for chaining.

setIdBytes(ByteString value)

public Agent.Builder setIdBytes(ByteString value)

Identifier of the agent.

string id = 1;

Parameter
Name Description
value ByteString

The bytes for id to set.

Returns
Type Description
Agent.Builder

This builder for chaining.