Send feedback
Class Source (2.13.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 2.13.0 keyboard_arrow_down
public final class Source extends GeneratedMessageV3 implements SourceOrBuilder
Security Command Center finding source. A finding source
is an entity or a mechanism that can produce a finding. A source is like a
container of findings that come from the same scanner, logger, monitor, etc.
Protobuf type google.cloud.securitycenter.v1p1beta1.Source
Static Fields
CANONICAL_NAME_FIELD_NUMBER
public static final int CANONICAL_NAME_FIELD_NUMBER
Field Value
DESCRIPTION_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER
Field Value
DISPLAY_NAME_FIELD_NUMBER
public static final int DISPLAY_NAME_FIELD_NUMBER
Field Value
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static Source getDefaultInstance ()
Returns
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
Returns
newBuilder()
public static Source . Builder newBuilder ()
Returns
newBuilder(Source prototype)
public static Source . Builder newBuilder ( Source prototype )
Parameter
Name Description prototype Source
Returns
public static Source parseDelimitedFrom ( InputStream input )
Parameter
Returns
Exceptions
public static Source parseDelimitedFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static Source parseFrom ( byte [] data )
Parameter
Name Description data byte []
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Source parseFrom ( byte [] data , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static Source parseFrom ( ByteString data )
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Source parseFrom ( ByteString data , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
public static Source parseFrom ( CodedInputStream input )
Parameter
Returns
Exceptions
public static Source parseFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
public static Source parseFrom ( InputStream input )
Parameter
Returns
Exceptions
public static Source parseFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static Source parseFrom ( ByteBuffer data )
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Source parseFrom ( ByteBuffer data , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
parser()
public static Parser<Source> parser ()
Returns
Methods
equals(Object obj)
public boolean equals ( Object obj )
Parameter
Returns
Overrides
getCanonicalName()
public String getCanonicalName ()
The canonical name of the finding. It's either
"organizations/{organization_id}/sources/{source_id}",
"folders/{folder_id}/sources/{source_id}" or
"projects/{project_number}/sources/{source_id}",
depending on the closest CRM ancestor of the resource associated with the
finding.
string canonical_name = 14;
Returns
Type Description String The canonicalName.
getCanonicalNameBytes()
public ByteString getCanonicalNameBytes ()
The canonical name of the finding. It's either
"organizations/{organization_id}/sources/{source_id}",
"folders/{folder_id}/sources/{source_id}" or
"projects/{project_number}/sources/{source_id}",
depending on the closest CRM ancestor of the resource associated with the
finding.
string canonical_name = 14;
Returns
Type Description ByteString The bytes for canonicalName.
getDefaultInstanceForType()
public Source getDefaultInstanceForType ()
Returns
getDescription()
public String getDescription ()
The description of the source (max of 1024 characters).
Example:
"Web Security Scanner is a web security scanner for common
vulnerabilities in App Engine applications. It can automatically
scan and detect four common vulnerabilities, including cross-site-scripting
(XSS), Flash injection, mixed content (HTTP in HTTPS), and
outdated/insecure libraries."
string description = 3;
Returns
Type Description String The description.
getDescriptionBytes()
public ByteString getDescriptionBytes ()
The description of the source (max of 1024 characters).
Example:
"Web Security Scanner is a web security scanner for common
vulnerabilities in App Engine applications. It can automatically
scan and detect four common vulnerabilities, including cross-site-scripting
(XSS), Flash injection, mixed content (HTTP in HTTPS), and
outdated/insecure libraries."
string description = 3;
Returns
Type Description ByteString The bytes for description.
getDisplayName()
public String getDisplayName ()
The source's display name.
A source's display name must be unique amongst its siblings, for example,
two sources with the same parent can't share the same display name.
The display name must have a length between 1 and 64 characters
(inclusive).
string display_name = 2;
Returns
Type Description String The displayName.
getDisplayNameBytes()
public ByteString getDisplayNameBytes ()
The source's display name.
A source's display name must be unique amongst its siblings, for example,
two sources with the same parent can't share the same display name.
The display name must have a length between 1 and 64 characters
(inclusive).
string display_name = 2;
Returns
Type Description ByteString The bytes for displayName.
getName()
Returns
Type Description String The name.
getNameBytes()
public ByteString getNameBytes ()
Returns
getParserForType()
public Parser<Source> getParserForType ()
Returns
Overrides
getSerializedSize()
public int getSerializedSize ()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields ()
Returns
Overrides
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Returns
Overrides
isInitialized()
public final boolean isInitialized ()
Returns
Overrides
newBuilderForType()
public Source . Builder newBuilderForType ()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Source . Builder newBuilderForType ( GeneratedMessageV3 . BuilderParent parent )
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance ( GeneratedMessageV3 . UnusedPrivateParameter unused )
Parameter
Returns
Overrides
toBuilder()
public Source . Builder toBuilder ()
Returns
writeTo(CodedOutputStream output)
public void writeTo ( CodedOutputStream output )
Parameter
Overrides
Exceptions
Send feedback
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 2024-10-04 UTC.
[{
"type": "thumb-down",
"id": "hardToUnderstand",
"label":"Hard to understand"
},{
"type": "thumb-down",
"id": "incorrectInformationOrSampleCode",
"label":"Incorrect information or sample code"
},{
"type": "thumb-down",
"id": "missingTheInformationSamplesINeed",
"label":"Missing the information/samples I need"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
Need to tell us more?
{"lastModified": "Last updated 2024-10-04 UTC."}
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-04 UTC."]]