Class SecurityHealthAnalyticsCustomModule.Builder (2.23.0)

public static final class SecurityHealthAnalyticsCustomModule.Builder extends GeneratedMessageV3.Builder<SecurityHealthAnalyticsCustomModule.Builder> implements SecurityHealthAnalyticsCustomModuleOrBuilder

Represents an instance of a Security Health Analytics custom module, including its full module name, display name, enablement state, and last updated time. You can create a custom module at the organization, folder, or project level. Custom modules that you create at the organization or folder level are inherited by the child folders and projects.

Protobuf type google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public SecurityHealthAnalyticsCustomModule.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
SecurityHealthAnalyticsCustomModule.Builder
Overrides

build()

public SecurityHealthAnalyticsCustomModule build()
Returns
TypeDescription
SecurityHealthAnalyticsCustomModule

buildPartial()

public SecurityHealthAnalyticsCustomModule buildPartial()
Returns
TypeDescription
SecurityHealthAnalyticsCustomModule

clear()

public SecurityHealthAnalyticsCustomModule.Builder clear()
Returns
TypeDescription
SecurityHealthAnalyticsCustomModule.Builder
Overrides

clearAncestorModule()

public SecurityHealthAnalyticsCustomModule.Builder clearAncestorModule()

Output only. If empty, indicates that the custom module was created in the organization, folder, or project in which you are viewing the custom module. Otherwise, ancestor_module specifies the organization or folder from which the custom module is inherited.

string ancestor_module = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
SecurityHealthAnalyticsCustomModule.Builder

This builder for chaining.

clearCustomConfig()

public SecurityHealthAnalyticsCustomModule.Builder clearCustomConfig()

The user specified custom configuration for the module.

.google.cloud.securitycenter.v1.CustomConfig custom_config = 8;

Returns
TypeDescription
SecurityHealthAnalyticsCustomModule.Builder

clearDisplayName()

public SecurityHealthAnalyticsCustomModule.Builder clearDisplayName()

The display name of the Security Health Analytics custom module. This display name becomes the finding category for all findings that are returned by this custom module. The display name must be between 1 and 128 characters, start with a lowercase letter, and contain alphanumeric characters or underscores only.

string display_name = 2;

Returns
TypeDescription
SecurityHealthAnalyticsCustomModule.Builder

This builder for chaining.

clearEnablementState()

public SecurityHealthAnalyticsCustomModule.Builder clearEnablementState()

The enablement state of the custom module.

.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule.EnablementState enablement_state = 4;

Returns
TypeDescription
SecurityHealthAnalyticsCustomModule.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public SecurityHealthAnalyticsCustomModule.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
SecurityHealthAnalyticsCustomModule.Builder
Overrides

clearLastEditor()

public SecurityHealthAnalyticsCustomModule.Builder clearLastEditor()

Output only. The editor that last updated the custom module.

string last_editor = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
SecurityHealthAnalyticsCustomModule.Builder

This builder for chaining.

clearName()

public SecurityHealthAnalyticsCustomModule.Builder clearName()

Immutable. The resource name of the custom module. Its format is "organizations/{organization}/securityHealthAnalyticsSettings/customModules/{customModule}", or "folders/{folder}/securityHealthAnalyticsSettings/customModules/{customModule}", or "projects/{project}/securityHealthAnalyticsSettings/customModules/{customModule}" The id {customModule} is server-generated and is not user settable. It will be a numeric id containing 1-20 digits.

string name = 1 [(.google.api.field_behavior) = IMMUTABLE];

Returns
TypeDescription
SecurityHealthAnalyticsCustomModule.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public SecurityHealthAnalyticsCustomModule.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
SecurityHealthAnalyticsCustomModule.Builder
Overrides

clearUpdateTime()

public SecurityHealthAnalyticsCustomModule.Builder clearUpdateTime()

Output only. The time at which the custom module was last updated.

.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
SecurityHealthAnalyticsCustomModule.Builder

clone()

public SecurityHealthAnalyticsCustomModule.Builder clone()
Returns
TypeDescription
SecurityHealthAnalyticsCustomModule.Builder
Overrides

getAncestorModule()

public String getAncestorModule()

Output only. If empty, indicates that the custom module was created in the organization, folder, or project in which you are viewing the custom module. Otherwise, ancestor_module specifies the organization or folder from which the custom module is inherited.

string ancestor_module = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The ancestorModule.

getAncestorModuleBytes()

public ByteString getAncestorModuleBytes()

Output only. If empty, indicates that the custom module was created in the organization, folder, or project in which you are viewing the custom module. Otherwise, ancestor_module specifies the organization or folder from which the custom module is inherited.

string ancestor_module = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for ancestorModule.

getCustomConfig()

public CustomConfig getCustomConfig()

The user specified custom configuration for the module.

.google.cloud.securitycenter.v1.CustomConfig custom_config = 8;

Returns
TypeDescription
CustomConfig

The customConfig.

getCustomConfigBuilder()

public CustomConfig.Builder getCustomConfigBuilder()

The user specified custom configuration for the module.

.google.cloud.securitycenter.v1.CustomConfig custom_config = 8;

Returns
TypeDescription
CustomConfig.Builder

getCustomConfigOrBuilder()

public CustomConfigOrBuilder getCustomConfigOrBuilder()

The user specified custom configuration for the module.

.google.cloud.securitycenter.v1.CustomConfig custom_config = 8;

Returns
TypeDescription
CustomConfigOrBuilder

getDefaultInstanceForType()

public SecurityHealthAnalyticsCustomModule getDefaultInstanceForType()
Returns
TypeDescription
SecurityHealthAnalyticsCustomModule

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDisplayName()

public String getDisplayName()

The display name of the Security Health Analytics custom module. This display name becomes the finding category for all findings that are returned by this custom module. The display name must be between 1 and 128 characters, start with a lowercase letter, and contain alphanumeric characters or underscores only.

string display_name = 2;

Returns
TypeDescription
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

The display name of the Security Health Analytics custom module. This display name becomes the finding category for all findings that are returned by this custom module. The display name must be between 1 and 128 characters, start with a lowercase letter, and contain alphanumeric characters or underscores only.

string display_name = 2;

Returns
TypeDescription
ByteString

The bytes for displayName.

getEnablementState()

public SecurityHealthAnalyticsCustomModule.EnablementState getEnablementState()

The enablement state of the custom module.

.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule.EnablementState enablement_state = 4;

Returns
TypeDescription
SecurityHealthAnalyticsCustomModule.EnablementState

The enablementState.

getEnablementStateValue()

public int getEnablementStateValue()

The enablement state of the custom module.

.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule.EnablementState enablement_state = 4;

Returns
TypeDescription
int

The enum numeric value on the wire for enablementState.

getLastEditor()

public String getLastEditor()

Output only. The editor that last updated the custom module.

string last_editor = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The lastEditor.

getLastEditorBytes()

public ByteString getLastEditorBytes()

Output only. The editor that last updated the custom module.

string last_editor = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for lastEditor.

getName()

public String getName()

Immutable. The resource name of the custom module. Its format is "organizations/{organization}/securityHealthAnalyticsSettings/customModules/{customModule}", or "folders/{folder}/securityHealthAnalyticsSettings/customModules/{customModule}", or "projects/{project}/securityHealthAnalyticsSettings/customModules/{customModule}" The id {customModule} is server-generated and is not user settable. It will be a numeric id containing 1-20 digits.

string name = 1 [(.google.api.field_behavior) = IMMUTABLE];

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Immutable. The resource name of the custom module. Its format is "organizations/{organization}/securityHealthAnalyticsSettings/customModules/{customModule}", or "folders/{folder}/securityHealthAnalyticsSettings/customModules/{customModule}", or "projects/{project}/securityHealthAnalyticsSettings/customModules/{customModule}" The id {customModule} is server-generated and is not user settable. It will be a numeric id containing 1-20 digits.

string name = 1 [(.google.api.field_behavior) = IMMUTABLE];

Returns
TypeDescription
ByteString

The bytes for name.

getUpdateTime()

public Timestamp getUpdateTime()

Output only. The time at which the custom module was last updated.

.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. The time at which the custom module was last updated.

.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. The time at which the custom module was last updated.

.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TimestampOrBuilder

hasCustomConfig()

public boolean hasCustomConfig()

The user specified custom configuration for the module.

.google.cloud.securitycenter.v1.CustomConfig custom_config = 8;

Returns
TypeDescription
boolean

Whether the customConfig field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. The time at which the custom module was last updated.

.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeCustomConfig(CustomConfig value)

public SecurityHealthAnalyticsCustomModule.Builder mergeCustomConfig(CustomConfig value)

The user specified custom configuration for the module.

.google.cloud.securitycenter.v1.CustomConfig custom_config = 8;

Parameter
NameDescription
valueCustomConfig
Returns
TypeDescription
SecurityHealthAnalyticsCustomModule.Builder

mergeFrom(SecurityHealthAnalyticsCustomModule other)

public SecurityHealthAnalyticsCustomModule.Builder mergeFrom(SecurityHealthAnalyticsCustomModule other)
Parameter
NameDescription
otherSecurityHealthAnalyticsCustomModule
Returns
TypeDescription
SecurityHealthAnalyticsCustomModule.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public SecurityHealthAnalyticsCustomModule.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SecurityHealthAnalyticsCustomModule.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public SecurityHealthAnalyticsCustomModule.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
SecurityHealthAnalyticsCustomModule.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SecurityHealthAnalyticsCustomModule.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
SecurityHealthAnalyticsCustomModule.Builder
Overrides

mergeUpdateTime(Timestamp value)

public SecurityHealthAnalyticsCustomModule.Builder mergeUpdateTime(Timestamp value)

Output only. The time at which the custom module was last updated.

.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
SecurityHealthAnalyticsCustomModule.Builder

setAncestorModule(String value)

public SecurityHealthAnalyticsCustomModule.Builder setAncestorModule(String value)

Output only. If empty, indicates that the custom module was created in the organization, folder, or project in which you are viewing the custom module. Otherwise, ancestor_module specifies the organization or folder from which the custom module is inherited.

string ancestor_module = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueString

The ancestorModule to set.

Returns
TypeDescription
SecurityHealthAnalyticsCustomModule.Builder

This builder for chaining.

setAncestorModuleBytes(ByteString value)

public SecurityHealthAnalyticsCustomModule.Builder setAncestorModuleBytes(ByteString value)

Output only. If empty, indicates that the custom module was created in the organization, folder, or project in which you are viewing the custom module. Otherwise, ancestor_module specifies the organization or folder from which the custom module is inherited.

string ancestor_module = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueByteString

The bytes for ancestorModule to set.

Returns
TypeDescription
SecurityHealthAnalyticsCustomModule.Builder

This builder for chaining.

setCustomConfig(CustomConfig value)

public SecurityHealthAnalyticsCustomModule.Builder setCustomConfig(CustomConfig value)

The user specified custom configuration for the module.

.google.cloud.securitycenter.v1.CustomConfig custom_config = 8;

Parameter
NameDescription
valueCustomConfig
Returns
TypeDescription
SecurityHealthAnalyticsCustomModule.Builder

setCustomConfig(CustomConfig.Builder builderForValue)

public SecurityHealthAnalyticsCustomModule.Builder setCustomConfig(CustomConfig.Builder builderForValue)

The user specified custom configuration for the module.

.google.cloud.securitycenter.v1.CustomConfig custom_config = 8;

Parameter
NameDescription
builderForValueCustomConfig.Builder
Returns
TypeDescription
SecurityHealthAnalyticsCustomModule.Builder

setDisplayName(String value)

public SecurityHealthAnalyticsCustomModule.Builder setDisplayName(String value)

The display name of the Security Health Analytics custom module. This display name becomes the finding category for all findings that are returned by this custom module. The display name must be between 1 and 128 characters, start with a lowercase letter, and contain alphanumeric characters or underscores only.

string display_name = 2;

Parameter
NameDescription
valueString

The displayName to set.

Returns
TypeDescription
SecurityHealthAnalyticsCustomModule.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public SecurityHealthAnalyticsCustomModule.Builder setDisplayNameBytes(ByteString value)

The display name of the Security Health Analytics custom module. This display name becomes the finding category for all findings that are returned by this custom module. The display name must be between 1 and 128 characters, start with a lowercase letter, and contain alphanumeric characters or underscores only.

string display_name = 2;

Parameter
NameDescription
valueByteString

The bytes for displayName to set.

Returns
TypeDescription
SecurityHealthAnalyticsCustomModule.Builder

This builder for chaining.

setEnablementState(SecurityHealthAnalyticsCustomModule.EnablementState value)

public SecurityHealthAnalyticsCustomModule.Builder setEnablementState(SecurityHealthAnalyticsCustomModule.EnablementState value)

The enablement state of the custom module.

.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule.EnablementState enablement_state = 4;

Parameter
NameDescription
valueSecurityHealthAnalyticsCustomModule.EnablementState

The enablementState to set.

Returns
TypeDescription
SecurityHealthAnalyticsCustomModule.Builder

This builder for chaining.

setEnablementStateValue(int value)

public SecurityHealthAnalyticsCustomModule.Builder setEnablementStateValue(int value)

The enablement state of the custom module.

.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule.EnablementState enablement_state = 4;

Parameter
NameDescription
valueint

The enum numeric value on the wire for enablementState to set.

Returns
TypeDescription
SecurityHealthAnalyticsCustomModule.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public SecurityHealthAnalyticsCustomModule.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
SecurityHealthAnalyticsCustomModule.Builder
Overrides

setLastEditor(String value)

public SecurityHealthAnalyticsCustomModule.Builder setLastEditor(String value)

Output only. The editor that last updated the custom module.

string last_editor = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueString

The lastEditor to set.

Returns
TypeDescription
SecurityHealthAnalyticsCustomModule.Builder

This builder for chaining.

setLastEditorBytes(ByteString value)

public SecurityHealthAnalyticsCustomModule.Builder setLastEditorBytes(ByteString value)

Output only. The editor that last updated the custom module.

string last_editor = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueByteString

The bytes for lastEditor to set.

Returns
TypeDescription
SecurityHealthAnalyticsCustomModule.Builder

This builder for chaining.

setName(String value)

public SecurityHealthAnalyticsCustomModule.Builder setName(String value)

Immutable. The resource name of the custom module. Its format is "organizations/{organization}/securityHealthAnalyticsSettings/customModules/{customModule}", or "folders/{folder}/securityHealthAnalyticsSettings/customModules/{customModule}", or "projects/{project}/securityHealthAnalyticsSettings/customModules/{customModule}" The id {customModule} is server-generated and is not user settable. It will be a numeric id containing 1-20 digits.

string name = 1 [(.google.api.field_behavior) = IMMUTABLE];

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
SecurityHealthAnalyticsCustomModule.Builder

This builder for chaining.

setNameBytes(ByteString value)

public SecurityHealthAnalyticsCustomModule.Builder setNameBytes(ByteString value)

Immutable. The resource name of the custom module. Its format is "organizations/{organization}/securityHealthAnalyticsSettings/customModules/{customModule}", or "folders/{folder}/securityHealthAnalyticsSettings/customModules/{customModule}", or "projects/{project}/securityHealthAnalyticsSettings/customModules/{customModule}" The id {customModule} is server-generated and is not user settable. It will be a numeric id containing 1-20 digits.

string name = 1 [(.google.api.field_behavior) = IMMUTABLE];

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
SecurityHealthAnalyticsCustomModule.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public SecurityHealthAnalyticsCustomModule.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
SecurityHealthAnalyticsCustomModule.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final SecurityHealthAnalyticsCustomModule.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
SecurityHealthAnalyticsCustomModule.Builder
Overrides

setUpdateTime(Timestamp value)

public SecurityHealthAnalyticsCustomModule.Builder setUpdateTime(Timestamp value)

Output only. The time at which the custom module was last updated.

.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
SecurityHealthAnalyticsCustomModule.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public SecurityHealthAnalyticsCustomModule.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. The time at which the custom module was last updated.

.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
SecurityHealthAnalyticsCustomModule.Builder