Class Cwe (2.84.0)
public final class Cwe extends GeneratedMessageV3 implements CweOrBuilder
CWE stands for Common Weakness Enumeration. Information about this weakness,
as described by CWE.
Protobuf type google.cloud.securitycenter.v2.Cwe
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
ID_FIELD_NUMBER
public static final int ID_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
REFERENCES_FIELD_NUMBER
public static final int REFERENCES_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static Cwe getDefaultInstance()
Returns |
Type |
Description |
Cwe |
|
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static Cwe.Builder newBuilder()
newBuilder(Cwe prototype)
public static Cwe.Builder newBuilder(Cwe prototype)
Parameter |
Name |
Description |
prototype |
Cwe
|
public static Cwe parseDelimitedFrom(InputStream input)
Returns |
Type |
Description |
Cwe |
|
public static Cwe parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Returns |
Type |
Description |
Cwe |
|
parseFrom(byte[] data)
public static Cwe parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
Returns |
Type |
Description |
Cwe |
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Cwe parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Returns |
Type |
Description |
Cwe |
|
parseFrom(ByteString data)
public static Cwe parseFrom(ByteString data)
Returns |
Type |
Description |
Cwe |
|
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Cwe parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Returns |
Type |
Description |
Cwe |
|
public static Cwe parseFrom(CodedInputStream input)
Returns |
Type |
Description |
Cwe |
|
public static Cwe parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Returns |
Type |
Description |
Cwe |
|
public static Cwe parseFrom(InputStream input)
Returns |
Type |
Description |
Cwe |
|
public static Cwe parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Returns |
Type |
Description |
Cwe |
|
parseFrom(ByteBuffer data)
public static Cwe parseFrom(ByteBuffer data)
Returns |
Type |
Description |
Cwe |
|
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Cwe parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Returns |
Type |
Description |
Cwe |
|
parser()
public static Parser<Cwe> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
Overrides
getDefaultInstanceForType()
public Cwe getDefaultInstanceForType()
Returns |
Type |
Description |
Cwe |
|
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.
|
getParserForType()
public Parser<Cwe> getParserForType()
Overrides
getReferences(int index)
public Reference getReferences(int index)
Parameter |
Name |
Description |
index |
int
|
getReferencesCount()
public int getReferencesCount()
Returns |
Type |
Description |
int |
|
getReferencesList()
public List<Reference> getReferencesList()
getReferencesOrBuilder(int index)
public ReferenceOrBuilder getReferencesOrBuilder(int index)
Parameter |
Name |
Description |
index |
int
|
getReferencesOrBuilderList()
public List<? extends ReferenceOrBuilder> getReferencesOrBuilderList()
Returns |
Type |
Description |
List<? extends com.google.cloud.securitycenter.v2.ReferenceOrBuilder> |
|
getSerializedSize()
public int getSerializedSize()
Returns |
Type |
Description |
int |
|
Overrides
hashCode()
Returns |
Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public Cwe.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Cwe.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
toBuilder()
public Cwe.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-10-11 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-11 UTC."],[],[]]