public static final class SimulatedFinding.Builder extends GeneratedMessageV3.Builder<SimulatedFinding.Builder> implements SimulatedFindingOrBuilder
The minimum set of fields needed to represent a simulated finding from a Security Health Analytics custom module.
Protobuf type google.cloud.securitycentermanagement.v1.SimulatedFinding
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > SimulatedFinding.BuilderImplements
SimulatedFindingOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public SimulatedFinding.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
SimulatedFinding.Builder |
build()
public SimulatedFinding build()
Returns | |
---|---|
Type | Description |
SimulatedFinding |
buildPartial()
public SimulatedFinding buildPartial()
Returns | |
---|---|
Type | Description |
SimulatedFinding |
clear()
public SimulatedFinding.Builder clear()
Returns | |
---|---|
Type | Description |
SimulatedFinding.Builder |
clearCategory()
public SimulatedFinding.Builder clearCategory()
The additional taxonomy group within findings from a given source. For
example, XSS_FLASH_INJECTION
. This field is immutable after creation
time.
string category = 4;
Returns | |
---|---|
Type | Description |
SimulatedFinding.Builder |
This builder for chaining. |
clearEventTime()
public SimulatedFinding.Builder clearEventTime()
The time the finding was first detected. If an existing finding is updated, then this is the time the update occurred. If the finding is later resolved, then this time reflects when the finding was resolved.
For example, if the finding represents an open firewall, this property captures the time the detector believes the firewall became open. The accuracy is determined by the detector.
The event time must not be set to a value greater than the current timestamp.
.google.protobuf.Timestamp event_time = 7;
Returns | |
---|---|
Type | Description |
SimulatedFinding.Builder |
clearField(Descriptors.FieldDescriptor field)
public SimulatedFinding.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
SimulatedFinding.Builder |
clearFindingClass()
public SimulatedFinding.Builder clearFindingClass()
The class of the finding.
.google.cloud.securitycentermanagement.v1.SimulatedFinding.FindingClass finding_class = 9;
Returns | |
---|---|
Type | Description |
SimulatedFinding.Builder |
This builder for chaining. |
clearName()
public SimulatedFinding.Builder clearName()
Identifier. The relative resource name of the finding, in one of the following formats:
organizations/{organization_id}/sources/{source_id}/findings/{finding_id}
folders/{folder_id}/sources/{source_id}/findings/{finding_id}
projects/{project_id}/sources/{source_id}/findings/{finding_id}
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
Returns | |
---|---|
Type | Description |
SimulatedFinding.Builder |
This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public SimulatedFinding.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
Type | Description |
SimulatedFinding.Builder |
clearParent()
public SimulatedFinding.Builder clearParent()
The relative resource name of the source the
finding belongs to. For example,
organizations/{organization_id}/sources/{source_id}
. This field is
immutable after creation time.
string parent = 2;
Returns | |
---|---|
Type | Description |
SimulatedFinding.Builder |
This builder for chaining. |
clearResourceName()
public SimulatedFinding.Builder clearResourceName()
For findings on Google Cloud resources, the full resource name of the Google Cloud resource this finding is for. When the finding is for a non-Google Cloud resource, the value can be a customer or partner defined string. This field is immutable after creation time.
string resource_name = 3;
Returns | |
---|---|
Type | Description |
SimulatedFinding.Builder |
This builder for chaining. |
clearSeverity()
public SimulatedFinding.Builder clearSeverity()
The severity of the finding. This field is managed by the source that writes the finding.
.google.cloud.securitycentermanagement.v1.SimulatedFinding.Severity severity = 8;
Returns | |
---|---|
Type | Description |
SimulatedFinding.Builder |
This builder for chaining. |
clearSourceProperties()
public SimulatedFinding.Builder clearSourceProperties()
Returns | |
---|---|
Type | Description |
SimulatedFinding.Builder |
clearState()
public SimulatedFinding.Builder clearState()
Output only. The state of the finding.
.google.cloud.securitycentermanagement.v1.SimulatedFinding.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
SimulatedFinding.Builder |
This builder for chaining. |
clone()
public SimulatedFinding.Builder clone()
Returns | |
---|---|
Type | Description |
SimulatedFinding.Builder |
containsSourceProperties(String key)
public boolean containsSourceProperties(String key)
Source-specific properties. These properties are managed by the source that writes the finding. The key names must be between 1 and 255 characters; they must start with a letter and contain alphanumeric characters or underscores only.
map<string, .google.protobuf.Value> source_properties = 6;
Parameter | |
---|---|
Name | Description |
key |
String |
Returns | |
---|---|
Type | Description |
boolean |
getCategory()
public String getCategory()
The additional taxonomy group within findings from a given source. For
example, XSS_FLASH_INJECTION
. This field is immutable after creation
time.
string category = 4;
Returns | |
---|---|
Type | Description |
String |
The category. |
getCategoryBytes()
public ByteString getCategoryBytes()
The additional taxonomy group within findings from a given source. For
example, XSS_FLASH_INJECTION
. This field is immutable after creation
time.
string category = 4;
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for category. |
getDefaultInstanceForType()
public SimulatedFinding getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
SimulatedFinding |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getEventTime()
public Timestamp getEventTime()
The time the finding was first detected. If an existing finding is updated, then this is the time the update occurred. If the finding is later resolved, then this time reflects when the finding was resolved.
For example, if the finding represents an open firewall, this property captures the time the detector believes the firewall became open. The accuracy is determined by the detector.
The event time must not be set to a value greater than the current timestamp.
.google.protobuf.Timestamp event_time = 7;
Returns | |
---|---|
Type | Description |
Timestamp |
The eventTime. |
getEventTimeBuilder()
public Timestamp.Builder getEventTimeBuilder()
The time the finding was first detected. If an existing finding is updated, then this is the time the update occurred. If the finding is later resolved, then this time reflects when the finding was resolved.
For example, if the finding represents an open firewall, this property captures the time the detector believes the firewall became open. The accuracy is determined by the detector.
The event time must not be set to a value greater than the current timestamp.
.google.protobuf.Timestamp event_time = 7;
Returns | |
---|---|
Type | Description |
Builder |
getEventTimeOrBuilder()
public TimestampOrBuilder getEventTimeOrBuilder()
The time the finding was first detected. If an existing finding is updated, then this is the time the update occurred. If the finding is later resolved, then this time reflects when the finding was resolved.
For example, if the finding represents an open firewall, this property captures the time the detector believes the firewall became open. The accuracy is determined by the detector.
The event time must not be set to a value greater than the current timestamp.
.google.protobuf.Timestamp event_time = 7;
Returns | |
---|---|
Type | Description |
TimestampOrBuilder |
getFindingClass()
public SimulatedFinding.FindingClass getFindingClass()
The class of the finding.
.google.cloud.securitycentermanagement.v1.SimulatedFinding.FindingClass finding_class = 9;
Returns | |
---|---|
Type | Description |
SimulatedFinding.FindingClass |
The findingClass. |
getFindingClassValue()
public int getFindingClassValue()
The class of the finding.
.google.cloud.securitycentermanagement.v1.SimulatedFinding.FindingClass finding_class = 9;
Returns | |
---|---|
Type | Description |
int |
The enum numeric value on the wire for findingClass. |
getMutableSourceProperties() (deprecated)
public Map<String,Value> getMutableSourceProperties()
Use alternate mutation accessors instead.
Returns | |
---|---|
Type | Description |
Map<String,Value> |
getName()
public String getName()
Identifier. The relative resource name of the finding, in one of the following formats:
organizations/{organization_id}/sources/{source_id}/findings/{finding_id}
folders/{folder_id}/sources/{source_id}/findings/{finding_id}
projects/{project_id}/sources/{source_id}/findings/{finding_id}
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
Returns | |
---|---|
Type | Description |
String |
The name. |
getNameBytes()
public ByteString getNameBytes()
Identifier. The relative resource name of the finding, in one of the following formats:
organizations/{organization_id}/sources/{source_id}/findings/{finding_id}
folders/{folder_id}/sources/{source_id}/findings/{finding_id}
projects/{project_id}/sources/{source_id}/findings/{finding_id}
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for name. |
getParent()
public String getParent()
The relative resource name of the source the
finding belongs to. For example,
organizations/{organization_id}/sources/{source_id}
. This field is
immutable after creation time.
string parent = 2;
Returns | |
---|---|
Type | Description |
String |
The parent. |
getParentBytes()
public ByteString getParentBytes()
The relative resource name of the source the
finding belongs to. For example,
organizations/{organization_id}/sources/{source_id}
. This field is
immutable after creation time.
string parent = 2;
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for parent. |
getResourceName()
public String getResourceName()
For findings on Google Cloud resources, the full resource name of the Google Cloud resource this finding is for. When the finding is for a non-Google Cloud resource, the value can be a customer or partner defined string. This field is immutable after creation time.
string resource_name = 3;
Returns | |
---|---|
Type | Description |
String |
The resourceName. |
getResourceNameBytes()
public ByteString getResourceNameBytes()
For findings on Google Cloud resources, the full resource name of the Google Cloud resource this finding is for. When the finding is for a non-Google Cloud resource, the value can be a customer or partner defined string. This field is immutable after creation time.
string resource_name = 3;
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for resourceName. |
getSeverity()
public SimulatedFinding.Severity getSeverity()
The severity of the finding. This field is managed by the source that writes the finding.
.google.cloud.securitycentermanagement.v1.SimulatedFinding.Severity severity = 8;
Returns | |
---|---|
Type | Description |
SimulatedFinding.Severity |
The severity. |
getSeverityValue()
public int getSeverityValue()
The severity of the finding. This field is managed by the source that writes the finding.
.google.cloud.securitycentermanagement.v1.SimulatedFinding.Severity severity = 8;
Returns | |
---|---|
Type | Description |
int |
The enum numeric value on the wire for severity. |
getSourceProperties() (deprecated)
public Map<String,Value> getSourceProperties()
Use #getSourcePropertiesMap() instead.
Returns | |
---|---|
Type | Description |
Map<String,Value> |
getSourcePropertiesCount()
public int getSourcePropertiesCount()
Source-specific properties. These properties are managed by the source that writes the finding. The key names must be between 1 and 255 characters; they must start with a letter and contain alphanumeric characters or underscores only.
map<string, .google.protobuf.Value> source_properties = 6;
Returns | |
---|---|
Type | Description |
int |
getSourcePropertiesMap()
public Map<String,Value> getSourcePropertiesMap()
Source-specific properties. These properties are managed by the source that writes the finding. The key names must be between 1 and 255 characters; they must start with a letter and contain alphanumeric characters or underscores only.
map<string, .google.protobuf.Value> source_properties = 6;
Returns | |
---|---|
Type | Description |
Map<String,Value> |
getSourcePropertiesOrDefault(String key, Value defaultValue)
public Value getSourcePropertiesOrDefault(String key, Value defaultValue)
Source-specific properties. These properties are managed by the source that writes the finding. The key names must be between 1 and 255 characters; they must start with a letter and contain alphanumeric characters or underscores only.
map<string, .google.protobuf.Value> source_properties = 6;
Parameters | |
---|---|
Name | Description |
key |
String |
defaultValue |
Value |
Returns | |
---|---|
Type | Description |
Value |
getSourcePropertiesOrThrow(String key)
public Value getSourcePropertiesOrThrow(String key)
Source-specific properties. These properties are managed by the source that writes the finding. The key names must be between 1 and 255 characters; they must start with a letter and contain alphanumeric characters or underscores only.
map<string, .google.protobuf.Value> source_properties = 6;
Parameter | |
---|---|
Name | Description |
key |
String |
Returns | |
---|---|
Type | Description |
Value |
getState()
public SimulatedFinding.State getState()
Output only. The state of the finding.
.google.cloud.securitycentermanagement.v1.SimulatedFinding.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
SimulatedFinding.State |
The state. |
getStateValue()
public int getStateValue()
Output only. The state of the finding.
.google.cloud.securitycentermanagement.v1.SimulatedFinding.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
int |
The enum numeric value on the wire for state. |
hasEventTime()
public boolean hasEventTime()
The time the finding was first detected. If an existing finding is updated, then this is the time the update occurred. If the finding is later resolved, then this time reflects when the finding was resolved.
For example, if the finding represents an open firewall, this property captures the time the detector believes the firewall became open. The accuracy is determined by the detector.
The event time must not be set to a value greater than the current timestamp.
.google.protobuf.Timestamp event_time = 7;
Returns | |
---|---|
Type | Description |
boolean |
Whether the eventTime field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.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 |
mergeEventTime(Timestamp value)
public SimulatedFinding.Builder mergeEventTime(Timestamp value)
The time the finding was first detected. If an existing finding is updated, then this is the time the update occurred. If the finding is later resolved, then this time reflects when the finding was resolved.
For example, if the finding represents an open firewall, this property captures the time the detector believes the firewall became open. The accuracy is determined by the detector.
The event time must not be set to a value greater than the current timestamp.
.google.protobuf.Timestamp event_time = 7;
Parameter | |
---|---|
Name | Description |
value |
Timestamp |
Returns | |
---|---|
Type | Description |
SimulatedFinding.Builder |
mergeFrom(SimulatedFinding other)
public SimulatedFinding.Builder mergeFrom(SimulatedFinding other)
Parameter | |
---|---|
Name | Description |
other |
SimulatedFinding |
Returns | |
---|---|
Type | Description |
SimulatedFinding.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public SimulatedFinding.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
SimulatedFinding.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public SimulatedFinding.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
SimulatedFinding.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final SimulatedFinding.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
SimulatedFinding.Builder |
putAllSourceProperties(Map<String,Value> values)
public SimulatedFinding.Builder putAllSourceProperties(Map<String,Value> values)
Source-specific properties. These properties are managed by the source that writes the finding. The key names must be between 1 and 255 characters; they must start with a letter and contain alphanumeric characters or underscores only.
map<string, .google.protobuf.Value> source_properties = 6;
Parameter | |
---|---|
Name | Description |
values |
Map<String,Value> |
Returns | |
---|---|
Type | Description |
SimulatedFinding.Builder |
putSourceProperties(String key, Value value)
public SimulatedFinding.Builder putSourceProperties(String key, Value value)
Source-specific properties. These properties are managed by the source that writes the finding. The key names must be between 1 and 255 characters; they must start with a letter and contain alphanumeric characters or underscores only.
map<string, .google.protobuf.Value> source_properties = 6;
Parameters | |
---|---|
Name | Description |
key |
String |
value |
Value |
Returns | |
---|---|
Type | Description |
SimulatedFinding.Builder |
putSourcePropertiesBuilderIfAbsent(String key)
public Value.Builder putSourcePropertiesBuilderIfAbsent(String key)
Source-specific properties. These properties are managed by the source that writes the finding. The key names must be between 1 and 255 characters; they must start with a letter and contain alphanumeric characters or underscores only.
map<string, .google.protobuf.Value> source_properties = 6;
Parameter | |
---|---|
Name | Description |
key |
String |
Returns | |
---|---|
Type | Description |
Builder |
removeSourceProperties(String key)
public SimulatedFinding.Builder removeSourceProperties(String key)
Source-specific properties. These properties are managed by the source that writes the finding. The key names must be between 1 and 255 characters; they must start with a letter and contain alphanumeric characters or underscores only.
map<string, .google.protobuf.Value> source_properties = 6;
Parameter | |
---|---|
Name | Description |
key |
String |
Returns | |
---|---|
Type | Description |
SimulatedFinding.Builder |
setCategory(String value)
public SimulatedFinding.Builder setCategory(String value)
The additional taxonomy group within findings from a given source. For
example, XSS_FLASH_INJECTION
. This field is immutable after creation
time.
string category = 4;
Parameter | |
---|---|
Name | Description |
value |
String The category to set. |
Returns | |
---|---|
Type | Description |
SimulatedFinding.Builder |
This builder for chaining. |
setCategoryBytes(ByteString value)
public SimulatedFinding.Builder setCategoryBytes(ByteString value)
The additional taxonomy group within findings from a given source. For
example, XSS_FLASH_INJECTION
. This field is immutable after creation
time.
string category = 4;
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for category to set. |
Returns | |
---|---|
Type | Description |
SimulatedFinding.Builder |
This builder for chaining. |
setEventTime(Timestamp value)
public SimulatedFinding.Builder setEventTime(Timestamp value)
The time the finding was first detected. If an existing finding is updated, then this is the time the update occurred. If the finding is later resolved, then this time reflects when the finding was resolved.
For example, if the finding represents an open firewall, this property captures the time the detector believes the firewall became open. The accuracy is determined by the detector.
The event time must not be set to a value greater than the current timestamp.
.google.protobuf.Timestamp event_time = 7;
Parameter | |
---|---|
Name | Description |
value |
Timestamp |
Returns | |
---|---|
Type | Description |
SimulatedFinding.Builder |
setEventTime(Timestamp.Builder builderForValue)
public SimulatedFinding.Builder setEventTime(Timestamp.Builder builderForValue)
The time the finding was first detected. If an existing finding is updated, then this is the time the update occurred. If the finding is later resolved, then this time reflects when the finding was resolved.
For example, if the finding represents an open firewall, this property captures the time the detector believes the firewall became open. The accuracy is determined by the detector.
The event time must not be set to a value greater than the current timestamp.
.google.protobuf.Timestamp event_time = 7;
Parameter | |
---|---|
Name | Description |
builderForValue |
Builder |
Returns | |
---|---|
Type | Description |
SimulatedFinding.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public SimulatedFinding.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
SimulatedFinding.Builder |
setFindingClass(SimulatedFinding.FindingClass value)
public SimulatedFinding.Builder setFindingClass(SimulatedFinding.FindingClass value)
The class of the finding.
.google.cloud.securitycentermanagement.v1.SimulatedFinding.FindingClass finding_class = 9;
Parameter | |
---|---|
Name | Description |
value |
SimulatedFinding.FindingClass The findingClass to set. |
Returns | |
---|---|
Type | Description |
SimulatedFinding.Builder |
This builder for chaining. |
setFindingClassValue(int value)
public SimulatedFinding.Builder setFindingClassValue(int value)
The class of the finding.
.google.cloud.securitycentermanagement.v1.SimulatedFinding.FindingClass finding_class = 9;
Parameter | |
---|---|
Name | Description |
value |
int The enum numeric value on the wire for findingClass to set. |
Returns | |
---|---|
Type | Description |
SimulatedFinding.Builder |
This builder for chaining. |
setName(String value)
public SimulatedFinding.Builder setName(String value)
Identifier. The relative resource name of the finding, in one of the following formats:
organizations/{organization_id}/sources/{source_id}/findings/{finding_id}
folders/{folder_id}/sources/{source_id}/findings/{finding_id}
projects/{project_id}/sources/{source_id}/findings/{finding_id}
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
Parameter | |
---|---|
Name | Description |
value |
String The name to set. |
Returns | |
---|---|
Type | Description |
SimulatedFinding.Builder |
This builder for chaining. |
setNameBytes(ByteString value)
public SimulatedFinding.Builder setNameBytes(ByteString value)
Identifier. The relative resource name of the finding, in one of the following formats:
organizations/{organization_id}/sources/{source_id}/findings/{finding_id}
folders/{folder_id}/sources/{source_id}/findings/{finding_id}
projects/{project_id}/sources/{source_id}/findings/{finding_id}
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for name to set. |
Returns | |
---|---|
Type | Description |
SimulatedFinding.Builder |
This builder for chaining. |
setParent(String value)
public SimulatedFinding.Builder setParent(String value)
The relative resource name of the source the
finding belongs to. For example,
organizations/{organization_id}/sources/{source_id}
. This field is
immutable after creation time.
string parent = 2;
Parameter | |
---|---|
Name | Description |
value |
String The parent to set. |
Returns | |
---|---|
Type | Description |
SimulatedFinding.Builder |
This builder for chaining. |
setParentBytes(ByteString value)
public SimulatedFinding.Builder setParentBytes(ByteString value)
The relative resource name of the source the
finding belongs to. For example,
organizations/{organization_id}/sources/{source_id}
. This field is
immutable after creation time.
string parent = 2;
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for parent to set. |
Returns | |
---|---|
Type | Description |
SimulatedFinding.Builder |
This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public SimulatedFinding.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
Returns | |
---|---|
Type | Description |
SimulatedFinding.Builder |
setResourceName(String value)
public SimulatedFinding.Builder setResourceName(String value)
For findings on Google Cloud resources, the full resource name of the Google Cloud resource this finding is for. When the finding is for a non-Google Cloud resource, the value can be a customer or partner defined string. This field is immutable after creation time.
string resource_name = 3;
Parameter | |
---|---|
Name | Description |
value |
String The resourceName to set. |
Returns | |
---|---|
Type | Description |
SimulatedFinding.Builder |
This builder for chaining. |
setResourceNameBytes(ByteString value)
public SimulatedFinding.Builder setResourceNameBytes(ByteString value)
For findings on Google Cloud resources, the full resource name of the Google Cloud resource this finding is for. When the finding is for a non-Google Cloud resource, the value can be a customer or partner defined string. This field is immutable after creation time.
string resource_name = 3;
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for resourceName to set. |
Returns | |
---|---|
Type | Description |
SimulatedFinding.Builder |
This builder for chaining. |
setSeverity(SimulatedFinding.Severity value)
public SimulatedFinding.Builder setSeverity(SimulatedFinding.Severity value)
The severity of the finding. This field is managed by the source that writes the finding.
.google.cloud.securitycentermanagement.v1.SimulatedFinding.Severity severity = 8;
Parameter | |
---|---|
Name | Description |
value |
SimulatedFinding.Severity The severity to set. |
Returns | |
---|---|
Type | Description |
SimulatedFinding.Builder |
This builder for chaining. |
setSeverityValue(int value)
public SimulatedFinding.Builder setSeverityValue(int value)
The severity of the finding. This field is managed by the source that writes the finding.
.google.cloud.securitycentermanagement.v1.SimulatedFinding.Severity severity = 8;
Parameter | |
---|---|
Name | Description |
value |
int The enum numeric value on the wire for severity to set. |
Returns | |
---|---|
Type | Description |
SimulatedFinding.Builder |
This builder for chaining. |
setState(SimulatedFinding.State value)
public SimulatedFinding.Builder setState(SimulatedFinding.State value)
Output only. The state of the finding.
.google.cloud.securitycentermanagement.v1.SimulatedFinding.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value |
SimulatedFinding.State The state to set. |
Returns | |
---|---|
Type | Description |
SimulatedFinding.Builder |
This builder for chaining. |
setStateValue(int value)
public SimulatedFinding.Builder setStateValue(int value)
Output only. The state of the finding.
.google.cloud.securitycentermanagement.v1.SimulatedFinding.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value |
int The enum numeric value on the wire for state to set. |
Returns | |
---|---|
Type | Description |
SimulatedFinding.Builder |
This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final SimulatedFinding.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
SimulatedFinding.Builder |