Class Cwe.Builder (2.91.0)

public static final class Cwe.Builder extends GeneratedMessage.Builder<Cwe.Builder> implements CweOrBuilder

CWE stands for Common Weakness Enumeration. Information about this weakness, as described by CWE.

Protobuf type google.cloud.securitycenter.v2.Cwe

Implements

CweOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllReferences(Iterable<? extends Reference> values)

public Cwe.Builder addAllReferences(Iterable<? extends Reference> values)

Any reference to the details on the CWE, for example, https://cwe.mitre.org/data/definitions/94.html

repeated .google.cloud.securitycenter.v2.Reference references = 2;

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

addReferences(Reference value)

public Cwe.Builder addReferences(Reference value)

Any reference to the details on the CWE, for example, https://cwe.mitre.org/data/definitions/94.html

repeated .google.cloud.securitycenter.v2.Reference references = 2;

Parameter
Name Description
value Reference
Returns
Type Description
Cwe.Builder

addReferences(Reference.Builder builderForValue)

public Cwe.Builder addReferences(Reference.Builder builderForValue)

Any reference to the details on the CWE, for example, https://cwe.mitre.org/data/definitions/94.html

repeated .google.cloud.securitycenter.v2.Reference references = 2;

Parameter
Name Description
builderForValue Reference.Builder
Returns
Type Description
Cwe.Builder

addReferences(int index, Reference value)

public Cwe.Builder addReferences(int index, Reference value)

Any reference to the details on the CWE, for example, https://cwe.mitre.org/data/definitions/94.html

repeated .google.cloud.securitycenter.v2.Reference references = 2;

Parameters
Name Description
index int
value Reference
Returns
Type Description
Cwe.Builder

addReferences(int index, Reference.Builder builderForValue)

public Cwe.Builder addReferences(int index, Reference.Builder builderForValue)

Any reference to the details on the CWE, for example, https://cwe.mitre.org/data/definitions/94.html

repeated .google.cloud.securitycenter.v2.Reference references = 2;

Parameters
Name Description
index int
builderForValue Reference.Builder
Returns
Type Description
Cwe.Builder

addReferencesBuilder()

public Reference.Builder addReferencesBuilder()

Any reference to the details on the CWE, for example, https://cwe.mitre.org/data/definitions/94.html

repeated .google.cloud.securitycenter.v2.Reference references = 2;

Returns
Type Description
Reference.Builder

addReferencesBuilder(int index)

public Reference.Builder addReferencesBuilder(int index)

Any reference to the details on the CWE, for example, https://cwe.mitre.org/data/definitions/94.html

repeated .google.cloud.securitycenter.v2.Reference references = 2;

Parameter
Name Description
index int
Returns
Type Description
Reference.Builder

build()

public Cwe build()
Returns
Type Description
Cwe

buildPartial()

public Cwe buildPartial()
Returns
Type Description
Cwe

clear()

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

clearId()

public Cwe.Builder clearId()

The CWE identifier, e.g. CWE-94

string id = 1;

Returns
Type Description
Cwe.Builder

This builder for chaining.

clearReferences()

public Cwe.Builder clearReferences()

Any reference to the details on the CWE, for example, https://cwe.mitre.org/data/definitions/94.html

repeated .google.cloud.securitycenter.v2.Reference references = 2;

Returns
Type Description
Cwe.Builder

getDefaultInstanceForType()

public Cwe getDefaultInstanceForType()
Returns
Type Description
Cwe

getDescriptorForType()

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

getId()

public String getId()

The CWE identifier, e.g. CWE-94

string id = 1;

Returns
Type Description
String

The id.

getIdBytes()

public ByteString getIdBytes()

The CWE identifier, e.g. CWE-94

string id = 1;

Returns
Type Description
ByteString

The bytes for id.

getReferences(int index)

public Reference getReferences(int index)

Any reference to the details on the CWE, for example, https://cwe.mitre.org/data/definitions/94.html

repeated .google.cloud.securitycenter.v2.Reference references = 2;

Parameter
Name Description
index int
Returns
Type Description
Reference

getReferencesBuilder(int index)

public Reference.Builder getReferencesBuilder(int index)

Any reference to the details on the CWE, for example, https://cwe.mitre.org/data/definitions/94.html

repeated .google.cloud.securitycenter.v2.Reference references = 2;

Parameter
Name Description
index int
Returns
Type Description
Reference.Builder

getReferencesBuilderList()

public List<Reference.Builder> getReferencesBuilderList()

Any reference to the details on the CWE, for example, https://cwe.mitre.org/data/definitions/94.html

repeated .google.cloud.securitycenter.v2.Reference references = 2;

Returns
Type Description
List<Builder>

getReferencesCount()

public int getReferencesCount()

Any reference to the details on the CWE, for example, https://cwe.mitre.org/data/definitions/94.html

repeated .google.cloud.securitycenter.v2.Reference references = 2;

Returns
Type Description
int

getReferencesList()

public List<Reference> getReferencesList()

Any reference to the details on the CWE, for example, https://cwe.mitre.org/data/definitions/94.html

repeated .google.cloud.securitycenter.v2.Reference references = 2;

Returns
Type Description
List<Reference>

getReferencesOrBuilder(int index)

public ReferenceOrBuilder getReferencesOrBuilder(int index)

Any reference to the details on the CWE, for example, https://cwe.mitre.org/data/definitions/94.html

repeated .google.cloud.securitycenter.v2.Reference references = 2;

Parameter
Name Description
index int
Returns
Type Description
ReferenceOrBuilder

getReferencesOrBuilderList()

public List<? extends ReferenceOrBuilder> getReferencesOrBuilderList()

Any reference to the details on the CWE, for example, https://cwe.mitre.org/data/definitions/94.html

repeated .google.cloud.securitycenter.v2.Reference references = 2;

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

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Cwe other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

removeReferences(int index)

public Cwe.Builder removeReferences(int index)

Any reference to the details on the CWE, for example, https://cwe.mitre.org/data/definitions/94.html

repeated .google.cloud.securitycenter.v2.Reference references = 2;

Parameter
Name Description
index int
Returns
Type Description
Cwe.Builder

setId(String value)

public Cwe.Builder setId(String value)

The CWE identifier, e.g. CWE-94

string id = 1;

Parameter
Name Description
value String

The id to set.

Returns
Type Description
Cwe.Builder

This builder for chaining.

setIdBytes(ByteString value)

public Cwe.Builder setIdBytes(ByteString value)

The CWE identifier, e.g. CWE-94

string id = 1;

Parameter
Name Description
value ByteString

The bytes for id to set.

Returns
Type Description
Cwe.Builder

This builder for chaining.

setReferences(int index, Reference value)

public Cwe.Builder setReferences(int index, Reference value)

Any reference to the details on the CWE, for example, https://cwe.mitre.org/data/definitions/94.html

repeated .google.cloud.securitycenter.v2.Reference references = 2;

Parameters
Name Description
index int
value Reference
Returns
Type Description
Cwe.Builder

setReferences(int index, Reference.Builder builderForValue)

public Cwe.Builder setReferences(int index, Reference.Builder builderForValue)

Any reference to the details on the CWE, for example, https://cwe.mitre.org/data/definitions/94.html

repeated .google.cloud.securitycenter.v2.Reference references = 2;

Parameters
Name Description
index int
builderForValue Reference.Builder
Returns
Type Description
Cwe.Builder