- 2.91.0 (latest)
- 2.90.0
- 2.88.0
- 2.86.0
- 2.84.0
- 2.83.0
- 2.82.0
- 2.81.0
- 2.80.0
- 2.78.0
- 2.76.0
- 2.75.0
- 2.72.0
- 2.71.0
- 2.70.0
- 2.68.0
- 2.67.0
- 2.66.0
- 2.65.0
- 2.64.0
- 2.63.0
- 2.62.0
- 2.61.0
- 2.60.0
- 2.59.0
- 2.57.0
- 2.56.0
- 2.55.0
- 2.54.0
- 2.53.0
- 2.52.0
- 2.51.0
- 2.50.0
- 2.49.0
- 2.48.0
- 2.47.0
- 2.45.0
- 2.44.0
- 2.43.0
- 2.42.0
- 2.41.0
- 2.40.0
- 2.39.0
- 2.38.0
- 2.37.0
- 2.36.0
- 2.35.0
- 2.32.0
- 2.31.0
- 2.30.0
- 2.29.0
- 2.28.0
- 2.27.0
- 2.26.0
- 2.25.0
- 2.24.0
- 2.23.0
- 2.22.0
- 2.21.0
- 2.20.0
- 2.19.0
- 2.17.0
- 2.16.0
- 2.15.0
- 2.14.0
- 2.13.0
- 2.12.0
- 2.11.1
- 2.10.0
- 2.9.0
- 2.8.0
- 2.7.1
- 2.6.0
- 2.5.6
- 2.3.2
public static final class SecurityMarks.Builder extends GeneratedMessage.Builder<SecurityMarks.Builder> implements SecurityMarksOrBuilderUser specified security marks that are attached to the parent Security Command Center resource. Security marks are scoped within a Security Command Center organization -- they can be modified and viewed by all users who have proper permissions on the organization.
Protobuf type google.cloud.securitycenter.v2.SecurityMarks
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > SecurityMarks.BuilderImplements
SecurityMarksOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public SecurityMarks build()| Returns | |
|---|---|
| Type | Description |
SecurityMarks |
|
buildPartial()
public SecurityMarks buildPartial()| Returns | |
|---|---|
| Type | Description |
SecurityMarks |
|
clear()
public SecurityMarks.Builder clear()| Returns | |
|---|---|
| Type | Description |
SecurityMarks.Builder |
|
clearCanonicalName()
public SecurityMarks.Builder clearCanonicalName()The canonical name of the marks. The following list shows some examples:
organizations/{organization_id}/assets/{asset_id}/securityMarks+organizations/{organization_id}/sources/{source_id}/findings/{finding_id}/securityMarks+organizations/{organization_id}/sources/{source_id}/locations/{location}/findings/{finding_id}/securityMarksfolders/{folder_id}/assets/{asset_id}/securityMarks+folders/{folder_id}/sources/{source_id}/findings/{finding_id}/securityMarks+folders/{folder_id}/sources/{source_id}/locations/{location}/findings/{finding_id}/securityMarksprojects/{project_number}/assets/{asset_id}/securityMarks+projects/{project_number}/sources/{source_id}/findings/{finding_id}/securityMarks+projects/{project_number}/sources/{source_id}/locations/{location}/findings/{finding_id}/securityMarks
string canonical_name = 3;
| Returns | |
|---|---|
| Type | Description |
SecurityMarks.Builder |
This builder for chaining. |
clearMarks()
public SecurityMarks.Builder clearMarks()| Returns | |
|---|---|
| Type | Description |
SecurityMarks.Builder |
|
clearName()
public SecurityMarks.Builder clearName()The relative resource name of the SecurityMarks. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name The following list shows some examples:
organizations/{organization_id}/assets/{asset_id}/securityMarks+organizations/{organization_id}/sources/{source_id}/findings/{finding_id}/securityMarks+organizations/{organization_id}/sources/{source_id}/locations/{location}/findings/{finding_id}/securityMarks
string name = 1;
| Returns | |
|---|---|
| Type | Description |
SecurityMarks.Builder |
This builder for chaining. |
containsMarks(String key)
public boolean containsMarks(String key)Mutable user specified security marks belonging to the parent resource. Constraints are as follows:
- Keys and values are treated as case insensitive
- Keys must be between 1 - 256 characters (inclusive)
- Keys must be letters, numbers, underscores, or dashes
- Values have leading and trailing whitespace trimmed, remaining characters must be between 1 - 4096 characters (inclusive)
map<string, string> marks = 2;
| Parameter | |
|---|---|
| Name | Description |
key |
String |
| Returns | |
|---|---|
| Type | Description |
boolean |
|
getCanonicalName()
public String getCanonicalName()The canonical name of the marks. The following list shows some examples:
organizations/{organization_id}/assets/{asset_id}/securityMarks+organizations/{organization_id}/sources/{source_id}/findings/{finding_id}/securityMarks+organizations/{organization_id}/sources/{source_id}/locations/{location}/findings/{finding_id}/securityMarksfolders/{folder_id}/assets/{asset_id}/securityMarks+folders/{folder_id}/sources/{source_id}/findings/{finding_id}/securityMarks+folders/{folder_id}/sources/{source_id}/locations/{location}/findings/{finding_id}/securityMarksprojects/{project_number}/assets/{asset_id}/securityMarks+projects/{project_number}/sources/{source_id}/findings/{finding_id}/securityMarks+projects/{project_number}/sources/{source_id}/locations/{location}/findings/{finding_id}/securityMarks
string canonical_name = 3;
| Returns | |
|---|---|
| Type | Description |
String |
The canonicalName. |
getCanonicalNameBytes()
public ByteString getCanonicalNameBytes()The canonical name of the marks. The following list shows some examples:
organizations/{organization_id}/assets/{asset_id}/securityMarks+organizations/{organization_id}/sources/{source_id}/findings/{finding_id}/securityMarks+organizations/{organization_id}/sources/{source_id}/locations/{location}/findings/{finding_id}/securityMarksfolders/{folder_id}/assets/{asset_id}/securityMarks+folders/{folder_id}/sources/{source_id}/findings/{finding_id}/securityMarks+folders/{folder_id}/sources/{source_id}/locations/{location}/findings/{finding_id}/securityMarksprojects/{project_number}/assets/{asset_id}/securityMarks+projects/{project_number}/sources/{source_id}/findings/{finding_id}/securityMarks+projects/{project_number}/sources/{source_id}/locations/{location}/findings/{finding_id}/securityMarks
string canonical_name = 3;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for canonicalName. |
getDefaultInstanceForType()
public SecurityMarks getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
SecurityMarks |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getMarks() (deprecated)
public Map<String,String> getMarks()Use #getMarksMap() instead.
| Returns | |
|---|---|
| Type | Description |
Map<String,String> |
|
getMarksCount()
public int getMarksCount()Mutable user specified security marks belonging to the parent resource. Constraints are as follows:
- Keys and values are treated as case insensitive
- Keys must be between 1 - 256 characters (inclusive)
- Keys must be letters, numbers, underscores, or dashes
- Values have leading and trailing whitespace trimmed, remaining characters must be between 1 - 4096 characters (inclusive)
map<string, string> marks = 2;
| Returns | |
|---|---|
| Type | Description |
int |
|
getMarksMap()
public Map<String,String> getMarksMap()Mutable user specified security marks belonging to the parent resource. Constraints are as follows:
- Keys and values are treated as case insensitive
- Keys must be between 1 - 256 characters (inclusive)
- Keys must be letters, numbers, underscores, or dashes
- Values have leading and trailing whitespace trimmed, remaining characters must be between 1 - 4096 characters (inclusive)
map<string, string> marks = 2;
| Returns | |
|---|---|
| Type | Description |
Map<String,String> |
|
getMarksOrDefault(String key, String defaultValue)
public String getMarksOrDefault(String key, String defaultValue)Mutable user specified security marks belonging to the parent resource. Constraints are as follows:
- Keys and values are treated as case insensitive
- Keys must be between 1 - 256 characters (inclusive)
- Keys must be letters, numbers, underscores, or dashes
- Values have leading and trailing whitespace trimmed, remaining characters must be between 1 - 4096 characters (inclusive)
map<string, string> marks = 2;
| Parameters | |
|---|---|
| Name | Description |
key |
String |
defaultValue |
String |
| Returns | |
|---|---|
| Type | Description |
String |
|
getMarksOrThrow(String key)
public String getMarksOrThrow(String key)Mutable user specified security marks belonging to the parent resource. Constraints are as follows:
- Keys and values are treated as case insensitive
- Keys must be between 1 - 256 characters (inclusive)
- Keys must be letters, numbers, underscores, or dashes
- Values have leading and trailing whitespace trimmed, remaining characters must be between 1 - 4096 characters (inclusive)
map<string, string> marks = 2;
| Parameter | |
|---|---|
| Name | Description |
key |
String |
| Returns | |
|---|---|
| Type | Description |
String |
|
getMutableMarks() (deprecated)
public Map<String,String> getMutableMarks()Use alternate mutation accessors instead.
| Returns | |
|---|---|
| Type | Description |
Map<String,String> |
|
getName()
public String getName()The relative resource name of the SecurityMarks. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name The following list shows some examples:
organizations/{organization_id}/assets/{asset_id}/securityMarks+organizations/{organization_id}/sources/{source_id}/findings/{finding_id}/securityMarks+organizations/{organization_id}/sources/{source_id}/locations/{location}/findings/{finding_id}/securityMarks
string name = 1;
| Returns | |
|---|---|
| Type | Description |
String |
The name. |
getNameBytes()
public ByteString getNameBytes()The relative resource name of the SecurityMarks. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name The following list shows some examples:
organizations/{organization_id}/assets/{asset_id}/securityMarks+organizations/{organization_id}/sources/{source_id}/findings/{finding_id}/securityMarks+organizations/{organization_id}/sources/{source_id}/locations/{location}/findings/{finding_id}/securityMarks
string name = 1;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for name. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
internalGetMapFieldReflection(int number)
protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)| Parameter | |
|---|---|
| Name | Description |
number |
int |
| Returns | |
|---|---|
| Type | Description |
com.google.protobuf.MapFieldReflectionAccessor |
|
internalGetMutableMapFieldReflection(int number)
protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)| Parameter | |
|---|---|
| Name | Description |
number |
int |
| Returns | |
|---|---|
| Type | Description |
com.google.protobuf.MapFieldReflectionAccessor |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(SecurityMarks other)
public SecurityMarks.Builder mergeFrom(SecurityMarks other)| Parameter | |
|---|---|
| Name | Description |
other |
SecurityMarks |
| Returns | |
|---|---|
| Type | Description |
SecurityMarks.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public SecurityMarks.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
SecurityMarks.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public SecurityMarks.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
SecurityMarks.Builder |
|
putAllMarks(Map<String,String> values)
public SecurityMarks.Builder putAllMarks(Map<String,String> values)Mutable user specified security marks belonging to the parent resource. Constraints are as follows:
- Keys and values are treated as case insensitive
- Keys must be between 1 - 256 characters (inclusive)
- Keys must be letters, numbers, underscores, or dashes
- Values have leading and trailing whitespace trimmed, remaining characters must be between 1 - 4096 characters (inclusive)
map<string, string> marks = 2;
| Parameter | |
|---|---|
| Name | Description |
values |
Map<String,String> |
| Returns | |
|---|---|
| Type | Description |
SecurityMarks.Builder |
|
putMarks(String key, String value)
public SecurityMarks.Builder putMarks(String key, String value)Mutable user specified security marks belonging to the parent resource. Constraints are as follows:
- Keys and values are treated as case insensitive
- Keys must be between 1 - 256 characters (inclusive)
- Keys must be letters, numbers, underscores, or dashes
- Values have leading and trailing whitespace trimmed, remaining characters must be between 1 - 4096 characters (inclusive)
map<string, string> marks = 2;
| Parameters | |
|---|---|
| Name | Description |
key |
String |
value |
String |
| Returns | |
|---|---|
| Type | Description |
SecurityMarks.Builder |
|
removeMarks(String key)
public SecurityMarks.Builder removeMarks(String key)Mutable user specified security marks belonging to the parent resource. Constraints are as follows:
- Keys and values are treated as case insensitive
- Keys must be between 1 - 256 characters (inclusive)
- Keys must be letters, numbers, underscores, or dashes
- Values have leading and trailing whitespace trimmed, remaining characters must be between 1 - 4096 characters (inclusive)
map<string, string> marks = 2;
| Parameter | |
|---|---|
| Name | Description |
key |
String |
| Returns | |
|---|---|
| Type | Description |
SecurityMarks.Builder |
|
setCanonicalName(String value)
public SecurityMarks.Builder setCanonicalName(String value)The canonical name of the marks. The following list shows some examples:
organizations/{organization_id}/assets/{asset_id}/securityMarks+organizations/{organization_id}/sources/{source_id}/findings/{finding_id}/securityMarks+organizations/{organization_id}/sources/{source_id}/locations/{location}/findings/{finding_id}/securityMarksfolders/{folder_id}/assets/{asset_id}/securityMarks+folders/{folder_id}/sources/{source_id}/findings/{finding_id}/securityMarks+folders/{folder_id}/sources/{source_id}/locations/{location}/findings/{finding_id}/securityMarksprojects/{project_number}/assets/{asset_id}/securityMarks+projects/{project_number}/sources/{source_id}/findings/{finding_id}/securityMarks+projects/{project_number}/sources/{source_id}/locations/{location}/findings/{finding_id}/securityMarks
string canonical_name = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe canonicalName to set. |
| Returns | |
|---|---|
| Type | Description |
SecurityMarks.Builder |
This builder for chaining. |
setCanonicalNameBytes(ByteString value)
public SecurityMarks.Builder setCanonicalNameBytes(ByteString value)The canonical name of the marks. The following list shows some examples:
organizations/{organization_id}/assets/{asset_id}/securityMarks+organizations/{organization_id}/sources/{source_id}/findings/{finding_id}/securityMarks+organizations/{organization_id}/sources/{source_id}/locations/{location}/findings/{finding_id}/securityMarksfolders/{folder_id}/assets/{asset_id}/securityMarks+folders/{folder_id}/sources/{source_id}/findings/{finding_id}/securityMarks+folders/{folder_id}/sources/{source_id}/locations/{location}/findings/{finding_id}/securityMarksprojects/{project_number}/assets/{asset_id}/securityMarks+projects/{project_number}/sources/{source_id}/findings/{finding_id}/securityMarks+projects/{project_number}/sources/{source_id}/locations/{location}/findings/{finding_id}/securityMarks
string canonical_name = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for canonicalName to set. |
| Returns | |
|---|---|
| Type | Description |
SecurityMarks.Builder |
This builder for chaining. |
setName(String value)
public SecurityMarks.Builder setName(String value)The relative resource name of the SecurityMarks. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name The following list shows some examples:
organizations/{organization_id}/assets/{asset_id}/securityMarks+organizations/{organization_id}/sources/{source_id}/findings/{finding_id}/securityMarks+organizations/{organization_id}/sources/{source_id}/locations/{location}/findings/{finding_id}/securityMarks
string name = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe name to set. |
| Returns | |
|---|---|
| Type | Description |
SecurityMarks.Builder |
This builder for chaining. |
setNameBytes(ByteString value)
public SecurityMarks.Builder setNameBytes(ByteString value)The relative resource name of the SecurityMarks. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name The following list shows some examples:
organizations/{organization_id}/assets/{asset_id}/securityMarks+organizations/{organization_id}/sources/{source_id}/findings/{finding_id}/securityMarks+organizations/{organization_id}/sources/{source_id}/locations/{location}/findings/{finding_id}/securityMarks
string name = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for name to set. |
| Returns | |
|---|---|
| Type | Description |
SecurityMarks.Builder |
This builder for chaining. |