Class Simulation.Builder (2.45.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.securitycenter.v2.ResourceValueConfigMetadata>
Returns
TypeDescription
Simulation.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Simulation.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueResourceValueConfigMetadata
Returns
TypeDescription
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
NameDescription
builderForValueResourceValueConfigMetadata.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueResourceValueConfigMetadata
Returns
TypeDescription
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
NameDescription
indexint
builderForValueResourceValueConfigMetadata.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
ResourceValueConfigMetadata.Builder

build()

public Simulation build()
Returns
TypeDescription
Simulation

buildPartial()

public Simulation buildPartial()
Returns
TypeDescription
Simulation

clear()

public Simulation.Builder clear()
Returns
TypeDescription
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
TypeDescription
Simulation.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public Simulation.Builder clearName()

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

string name = 1;

Returns
TypeDescription
Simulation.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Simulation.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
Simulation.Builder

clone()

public Simulation.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. Time simulation was created

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

Returns
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public Simulation getDefaultInstanceForType()
Returns
TypeDescription
Simulation

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getName()

public String getName()

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

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

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

string name = 1;

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the createTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
Simulation.Builder

mergeFrom(Simulation other)

public Simulation.Builder mergeFrom(Simulation other)
Parameter
NameDescription
otherSimulation
Returns
TypeDescription
Simulation.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Simulation.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
Simulation.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public Simulation.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The name to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
indexint
valueResourceValueConfigMetadata
Returns
TypeDescription
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
NameDescription
indexint
builderForValueResourceValueConfigMetadata.Builder
Returns
TypeDescription
Simulation.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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