Class Simulation.Builder (2.53.0)

public static final class Simulation.Builder extends GeneratedMessageV3.Builder<Simulation.Builder> implements SimulationOrBuilder

Attack path simulation

Protobuf type google.cloud.securitycenter.v2.Simulation

Implements

SimulationOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllResourceValueConfigsMetadata(Iterable<? extends ResourceValueConfigMetadata> values)

public Simulation.Builder addAllResourceValueConfigsMetadata(Iterable<? extends ResourceValueConfigMetadata> values)

Resource value configurations' metadata used in this simulation. Maximum of 100.

repeated .google.cloud.securitycenter.v2.ResourceValueConfigMetadata resource_value_configs_metadata = 3;

Parameter
Name Description
values Iterable<? extends com.google.cloud.securitycenter.v2.ResourceValueConfigMetadata>
Returns
Type Description
Simulation.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addResourceValueConfigsMetadata(ResourceValueConfigMetadata value)

public Simulation.Builder addResourceValueConfigsMetadata(ResourceValueConfigMetadata value)

Resource value configurations' metadata used in this simulation. Maximum of 100.

repeated .google.cloud.securitycenter.v2.ResourceValueConfigMetadata resource_value_configs_metadata = 3;

Parameter
Name Description
value ResourceValueConfigMetadata
Returns
Type Description
Simulation.Builder

addResourceValueConfigsMetadata(ResourceValueConfigMetadata.Builder builderForValue)

public Simulation.Builder addResourceValueConfigsMetadata(ResourceValueConfigMetadata.Builder builderForValue)

Resource value configurations' metadata used in this simulation. Maximum of 100.

repeated .google.cloud.securitycenter.v2.ResourceValueConfigMetadata resource_value_configs_metadata = 3;

Parameter
Name Description
builderForValue ResourceValueConfigMetadata.Builder
Returns
Type Description
Simulation.Builder

addResourceValueConfigsMetadata(int index, ResourceValueConfigMetadata value)

public Simulation.Builder addResourceValueConfigsMetadata(int index, ResourceValueConfigMetadata value)

Resource value configurations' metadata used in this simulation. Maximum of 100.

repeated .google.cloud.securitycenter.v2.ResourceValueConfigMetadata resource_value_configs_metadata = 3;

Parameters
Name Description
index int
value ResourceValueConfigMetadata
Returns
Type Description
Simulation.Builder

addResourceValueConfigsMetadata(int index, ResourceValueConfigMetadata.Builder builderForValue)

public Simulation.Builder addResourceValueConfigsMetadata(int index, ResourceValueConfigMetadata.Builder builderForValue)

Resource value configurations' metadata used in this simulation. Maximum of 100.

repeated .google.cloud.securitycenter.v2.ResourceValueConfigMetadata resource_value_configs_metadata = 3;

Parameters
Name Description
index int
builderForValue ResourceValueConfigMetadata.Builder
Returns
Type Description
Simulation.Builder

addResourceValueConfigsMetadataBuilder()

public ResourceValueConfigMetadata.Builder addResourceValueConfigsMetadataBuilder()

Resource value configurations' metadata used in this simulation. Maximum of 100.

repeated .google.cloud.securitycenter.v2.ResourceValueConfigMetadata resource_value_configs_metadata = 3;

Returns
Type Description
ResourceValueConfigMetadata.Builder

addResourceValueConfigsMetadataBuilder(int index)

public ResourceValueConfigMetadata.Builder addResourceValueConfigsMetadataBuilder(int index)

Resource value configurations' metadata used in this simulation. Maximum of 100.

repeated .google.cloud.securitycenter.v2.ResourceValueConfigMetadata resource_value_configs_metadata = 3;

Parameter
Name Description
index int
Returns
Type Description
ResourceValueConfigMetadata.Builder

build()

public Simulation build()
Returns
Type Description
Simulation

buildPartial()

public Simulation buildPartial()
Returns
Type Description
Simulation

clear()

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

clearCreateTime()

public Simulation.Builder clearCreateTime()

Output only. Time simulation was created

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Simulation.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public Simulation.Builder clearName()

Full resource name of the Simulation: organizations/123/simulations/456

string name = 1;

Returns
Type Description
Simulation.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Simulation.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Simulation.Builder
Overrides

clearResourceValueConfigsMetadata()

public Simulation.Builder clearResourceValueConfigsMetadata()

Resource value configurations' metadata used in this simulation. Maximum of 100.

repeated .google.cloud.securitycenter.v2.ResourceValueConfigMetadata resource_value_configs_metadata = 3;

Returns
Type Description
Simulation.Builder

clone()

public Simulation.Builder clone()
Returns
Type Description
Simulation.Builder
Overrides

getCreateTime()

public Timestamp getCreateTime()

Output only. Time simulation was created

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. Time simulation was created

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. Time simulation was created

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public Simulation getDefaultInstanceForType()
Returns
Type Description
Simulation

getDescriptorForType()

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

getName()

public String getName()

Full resource name of the Simulation: organizations/123/simulations/456

string name = 1;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Full resource name of the Simulation: organizations/123/simulations/456

string name = 1;

Returns
Type Description
ByteString

The bytes for name.

getResourceValueConfigsMetadata(int index)

public ResourceValueConfigMetadata getResourceValueConfigsMetadata(int index)

Resource value configurations' metadata used in this simulation. Maximum of 100.

repeated .google.cloud.securitycenter.v2.ResourceValueConfigMetadata resource_value_configs_metadata = 3;

Parameter
Name Description
index int
Returns
Type Description
ResourceValueConfigMetadata

getResourceValueConfigsMetadataBuilder(int index)

public ResourceValueConfigMetadata.Builder getResourceValueConfigsMetadataBuilder(int index)

Resource value configurations' metadata used in this simulation. Maximum of 100.

repeated .google.cloud.securitycenter.v2.ResourceValueConfigMetadata resource_value_configs_metadata = 3;

Parameter
Name Description
index int
Returns
Type Description
ResourceValueConfigMetadata.Builder

getResourceValueConfigsMetadataBuilderList()

public List<ResourceValueConfigMetadata.Builder> getResourceValueConfigsMetadataBuilderList()

Resource value configurations' metadata used in this simulation. Maximum of 100.

repeated .google.cloud.securitycenter.v2.ResourceValueConfigMetadata resource_value_configs_metadata = 3;

Returns
Type Description
List<Builder>

getResourceValueConfigsMetadataCount()

public int getResourceValueConfigsMetadataCount()

Resource value configurations' metadata used in this simulation. Maximum of 100.

repeated .google.cloud.securitycenter.v2.ResourceValueConfigMetadata resource_value_configs_metadata = 3;

Returns
Type Description
int

getResourceValueConfigsMetadataList()

public List<ResourceValueConfigMetadata> getResourceValueConfigsMetadataList()

Resource value configurations' metadata used in this simulation. Maximum of 100.

repeated .google.cloud.securitycenter.v2.ResourceValueConfigMetadata resource_value_configs_metadata = 3;

Returns
Type Description
List<ResourceValueConfigMetadata>

getResourceValueConfigsMetadataOrBuilder(int index)

public ResourceValueConfigMetadataOrBuilder getResourceValueConfigsMetadataOrBuilder(int index)

Resource value configurations' metadata used in this simulation. Maximum of 100.

repeated .google.cloud.securitycenter.v2.ResourceValueConfigMetadata resource_value_configs_metadata = 3;

Parameter
Name Description
index int
Returns
Type Description
ResourceValueConfigMetadataOrBuilder

getResourceValueConfigsMetadataOrBuilderList()

public List<? extends ResourceValueConfigMetadataOrBuilder> getResourceValueConfigsMetadataOrBuilderList()

Resource value configurations' metadata used in this simulation. Maximum of 100.

repeated .google.cloud.securitycenter.v2.ResourceValueConfigMetadata resource_value_configs_metadata = 3;

Returns
Type Description
List<? extends com.google.cloud.securitycenter.v2.ResourceValueConfigMetadataOrBuilder>

hasCreateTime()

public boolean hasCreateTime()

Output only. Time simulation was created

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the createTime field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCreateTime(Timestamp value)

public Simulation.Builder mergeCreateTime(Timestamp value)

Output only. Time simulation was created

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Simulation.Builder

mergeFrom(Simulation other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Simulation.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Simulation.Builder
Overrides

removeResourceValueConfigsMetadata(int index)

public Simulation.Builder removeResourceValueConfigsMetadata(int index)

Resource value configurations' metadata used in this simulation. Maximum of 100.

repeated .google.cloud.securitycenter.v2.ResourceValueConfigMetadata resource_value_configs_metadata = 3;

Parameter
Name Description
index int
Returns
Type Description
Simulation.Builder

setCreateTime(Timestamp value)

public Simulation.Builder setCreateTime(Timestamp value)

Output only. Time simulation was created

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Simulation.Builder

setCreateTime(Timestamp.Builder builderForValue)

public Simulation.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. Time simulation was created

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Simulation.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public Simulation.Builder setName(String value)

Full resource name of the Simulation: organizations/123/simulations/456

string name = 1;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
Simulation.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Simulation.Builder setNameBytes(ByteString value)

Full resource name of the Simulation: organizations/123/simulations/456

string name = 1;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
Simulation.Builder

This builder for chaining.

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

public Simulation.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Simulation.Builder
Overrides

setResourceValueConfigsMetadata(int index, ResourceValueConfigMetadata value)

public Simulation.Builder setResourceValueConfigsMetadata(int index, ResourceValueConfigMetadata value)

Resource value configurations' metadata used in this simulation. Maximum of 100.

repeated .google.cloud.securitycenter.v2.ResourceValueConfigMetadata resource_value_configs_metadata = 3;

Parameters
Name Description
index int
value ResourceValueConfigMetadata
Returns
Type Description
Simulation.Builder

setResourceValueConfigsMetadata(int index, ResourceValueConfigMetadata.Builder builderForValue)

public Simulation.Builder setResourceValueConfigsMetadata(int index, ResourceValueConfigMetadata.Builder builderForValue)

Resource value configurations' metadata used in this simulation. Maximum of 100.

repeated .google.cloud.securitycenter.v2.ResourceValueConfigMetadata resource_value_configs_metadata = 3;

Parameters
Name Description
index int
builderForValue ResourceValueConfigMetadata.Builder
Returns
Type Description
Simulation.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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