Class SecurityHealthAnalyticsCustomModule.Builder (0.40.0)

publicstaticfinalclass SecurityHealthAnalyticsCustomModule.BuilderextendsGeneratedMessageV3.Builder<SecurityHealthAnalyticsCustomModule.Builder>implementsSecurityHealthAnalyticsCustomModuleOrBuilder

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 descendant folders and projects.

Protobuf type google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule

Inherited Members

com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)

Static Methods

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

publicSecurityHealthAnalyticsCustomModule.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SecurityHealthAnalyticsCustomModule.Builder
Overrides

build()

publicSecurityHealthAnalyticsCustomModulebuild()
Returns
Type Description
SecurityHealthAnalyticsCustomModule

buildPartial()

publicSecurityHealthAnalyticsCustomModulebuildPartial()
Returns
Type Description
SecurityHealthAnalyticsCustomModule

clear()

publicSecurityHealthAnalyticsCustomModule.Builderclear()
Returns
Type Description
SecurityHealthAnalyticsCustomModule.Builder
Overrides

clearAncestorModule()

publicSecurityHealthAnalyticsCustomModule.BuilderclearAncestorModule()

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

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

Returns
Type Description
SecurityHealthAnalyticsCustomModule.Builder

This builder for chaining.

clearCustomConfig()

publicSecurityHealthAnalyticsCustomModule.BuilderclearCustomConfig()

Optional. The user-specified custom configuration for the module.

.google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SecurityHealthAnalyticsCustomModule.Builder

clearDisplayName()

publicSecurityHealthAnalyticsCustomModule.BuilderclearDisplayName()

Optional. 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 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SecurityHealthAnalyticsCustomModule.Builder

This builder for chaining.

clearEnablementState()

publicSecurityHealthAnalyticsCustomModule.BuilderclearEnablementState()

Optional. The enablement state of the custom module.

.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SecurityHealthAnalyticsCustomModule.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

publicSecurityHealthAnalyticsCustomModule.BuilderclearField(Descriptors.FieldDescriptorfield)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
SecurityHealthAnalyticsCustomModule.Builder
Overrides

clearLastEditor()

publicSecurityHealthAnalyticsCustomModule.BuilderclearLastEditor()

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

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

Returns
Type Description
SecurityHealthAnalyticsCustomModule.Builder

This builder for chaining.

clearName()

publicSecurityHealthAnalyticsCustomModule.BuilderclearName()

Identifier. The full resource name of the custom module, in one of the following formats:

  • organizations/{organization}/locations/{location}/securityHealthAnalyticsCustomModules/{custom_module}
  • folders/{folder}/locations/{location}/securityHealthAnalyticsCustomModules/{custom_module}
  • projects/{project}/locations/{location}/securityHealthAnalyticsCustomModules/{custom_module}

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

Returns
Type Description
SecurityHealthAnalyticsCustomModule.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

publicSecurityHealthAnalyticsCustomModule.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
SecurityHealthAnalyticsCustomModule.Builder
Overrides

clearUpdateTime()

publicSecurityHealthAnalyticsCustomModule.BuilderclearUpdateTime()

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

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

Returns
Type Description
SecurityHealthAnalyticsCustomModule.Builder

clone()

publicSecurityHealthAnalyticsCustomModule.Builderclone()
Returns
Type Description
SecurityHealthAnalyticsCustomModule.Builder
Overrides

getAncestorModule()

publicStringgetAncestorModule()

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

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

Returns
Type Description
String

The ancestorModule.

getAncestorModuleBytes()

publicByteStringgetAncestorModuleBytes()

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

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

Returns
Type Description
ByteString

The bytes for ancestorModule.

getCustomConfig()

publicCustomConfiggetCustomConfig()

Optional. The user-specified custom configuration for the module.

.google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
CustomConfig

The customConfig.

getCustomConfigBuilder()

publicCustomConfig.BuildergetCustomConfigBuilder()

Optional. The user-specified custom configuration for the module.

.google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
CustomConfig.Builder

getCustomConfigOrBuilder()

publicCustomConfigOrBuildergetCustomConfigOrBuilder()

Optional. The user-specified custom configuration for the module.

.google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
CustomConfigOrBuilder

getDefaultInstanceForType()

publicSecurityHealthAnalyticsCustomModulegetDefaultInstanceForType()
Returns
Type Description
SecurityHealthAnalyticsCustomModule

getDescriptorForType()

publicDescriptors.DescriptorgetDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getDisplayName()

publicStringgetDisplayName()

Optional. 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 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

publicByteStringgetDisplayNameBytes()

Optional. 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 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for displayName.

getEnablementState()

publicSecurityHealthAnalyticsCustomModule.EnablementStategetEnablementState()

Optional. The enablement state of the custom module.

.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SecurityHealthAnalyticsCustomModule.EnablementState

The enablementState.

getEnablementStateValue()

publicintgetEnablementStateValue()

Optional. The enablement state of the custom module.

.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for enablementState.

getLastEditor()

publicStringgetLastEditor()

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

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

Returns
Type Description
String

The lastEditor.

getLastEditorBytes()

publicByteStringgetLastEditorBytes()

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

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

Returns
Type Description
ByteString

The bytes for lastEditor.

getName()

publicStringgetName()

Identifier. The full resource name of the custom module, in one of the following formats:

  • organizations/{organization}/locations/{location}/securityHealthAnalyticsCustomModules/{custom_module}
  • folders/{folder}/locations/{location}/securityHealthAnalyticsCustomModules/{custom_module}
  • projects/{project}/locations/{location}/securityHealthAnalyticsCustomModules/{custom_module}

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

Returns
Type Description
String

The name.

getNameBytes()

publicByteStringgetNameBytes()

Identifier. The full resource name of the custom module, in one of the following formats:

  • organizations/{organization}/locations/{location}/securityHealthAnalyticsCustomModules/{custom_module}
  • folders/{folder}/locations/{location}/securityHealthAnalyticsCustomModules/{custom_module}
  • projects/{project}/locations/{location}/securityHealthAnalyticsCustomModules/{custom_module}

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

Returns
Type Description
ByteString

The bytes for name.

getUpdateTime()

publicTimestampgetUpdateTime()

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

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

Returns
Type Description
Timestamp

The updateTime.

getUpdateTimeBuilder()

publicTimestamp.BuildergetUpdateTimeBuilder()

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

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

Returns
Type Description
Builder

getUpdateTimeOrBuilder()

publicTimestampOrBuildergetUpdateTimeOrBuilder()

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

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

Returns
Type Description
TimestampOrBuilder

hasCustomConfig()

publicbooleanhasCustomConfig()

Optional. The user-specified custom configuration for the module.

.google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the customConfig field is set.

hasUpdateTime()

publicbooleanhasUpdateTime()

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

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

Returns
Type Description
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

mergeCustomConfig(CustomConfig value)

publicSecurityHealthAnalyticsCustomModule.BuildermergeCustomConfig(CustomConfigvalue)

Optional. The user-specified custom configuration for the module.

.google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value CustomConfig
Returns
Type Description
SecurityHealthAnalyticsCustomModule.Builder

mergeFrom(SecurityHealthAnalyticsCustomModule other)

publicSecurityHealthAnalyticsCustomModule.BuildermergeFrom(SecurityHealthAnalyticsCustomModuleother)
Parameter
Name Description
other SecurityHealthAnalyticsCustomModule
Returns
Type Description
SecurityHealthAnalyticsCustomModule.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicSecurityHealthAnalyticsCustomModule.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SecurityHealthAnalyticsCustomModule.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

publicSecurityHealthAnalyticsCustomModule.BuildermergeFrom(Messageother)
Parameter
Name Description
other Message
Returns
Type Description
SecurityHealthAnalyticsCustomModule.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

publicfinalSecurityHealthAnalyticsCustomModule.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SecurityHealthAnalyticsCustomModule.Builder
Overrides

mergeUpdateTime(Timestamp value)

publicSecurityHealthAnalyticsCustomModule.BuildermergeUpdateTime(Timestampvalue)

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

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

Parameter
Name Description
value Timestamp
Returns
Type Description
SecurityHealthAnalyticsCustomModule.Builder

setAncestorModule(String value)

publicSecurityHealthAnalyticsCustomModule.BuildersetAncestorModule(Stringvalue)

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

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

Parameter
Name Description
value String

The ancestorModule to set.

Returns
Type Description
SecurityHealthAnalyticsCustomModule.Builder

This builder for chaining.

setAncestorModuleBytes(ByteString value)

publicSecurityHealthAnalyticsCustomModule.BuildersetAncestorModuleBytes(ByteStringvalue)

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

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

Parameter
Name Description
value ByteString

The bytes for ancestorModule to set.

Returns
Type Description
SecurityHealthAnalyticsCustomModule.Builder

This builder for chaining.

setCustomConfig(CustomConfig value)

publicSecurityHealthAnalyticsCustomModule.BuildersetCustomConfig(CustomConfigvalue)

Optional. The user-specified custom configuration for the module.

.google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value CustomConfig
Returns
Type Description
SecurityHealthAnalyticsCustomModule.Builder

setCustomConfig(CustomConfig.Builder builderForValue)

publicSecurityHealthAnalyticsCustomModule.BuildersetCustomConfig(CustomConfig.BuilderbuilderForValue)

Optional. The user-specified custom configuration for the module.

.google.cloud.securitycentermanagement.v1.CustomConfig custom_config = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue CustomConfig.Builder
Returns
Type Description
SecurityHealthAnalyticsCustomModule.Builder

setDisplayName(String value)

publicSecurityHealthAnalyticsCustomModule.BuildersetDisplayName(Stringvalue)

Optional. 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 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The displayName to set.

Returns
Type Description
SecurityHealthAnalyticsCustomModule.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

publicSecurityHealthAnalyticsCustomModule.BuildersetDisplayNameBytes(ByteStringvalue)

Optional. 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 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for displayName to set.

Returns
Type Description
SecurityHealthAnalyticsCustomModule.Builder

This builder for chaining.

setEnablementState(SecurityHealthAnalyticsCustomModule.EnablementState value)

publicSecurityHealthAnalyticsCustomModule.BuildersetEnablementState(SecurityHealthAnalyticsCustomModule.EnablementStatevalue)

Optional. The enablement state of the custom module.

.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value SecurityHealthAnalyticsCustomModule.EnablementState

The enablementState to set.

Returns
Type Description
SecurityHealthAnalyticsCustomModule.Builder

This builder for chaining.

setEnablementStateValue(int value)

publicSecurityHealthAnalyticsCustomModule.BuildersetEnablementStateValue(intvalue)

Optional. The enablement state of the custom module.

.google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

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

Returns
Type Description
SecurityHealthAnalyticsCustomModule.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

publicSecurityHealthAnalyticsCustomModule.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SecurityHealthAnalyticsCustomModule.Builder
Overrides

setLastEditor(String value)

publicSecurityHealthAnalyticsCustomModule.BuildersetLastEditor(Stringvalue)

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

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

Parameter
Name Description
value String

The lastEditor to set.

Returns
Type Description
SecurityHealthAnalyticsCustomModule.Builder

This builder for chaining.

setLastEditorBytes(ByteString value)

publicSecurityHealthAnalyticsCustomModule.BuildersetLastEditorBytes(ByteStringvalue)

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

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

Parameter
Name Description
value ByteString

The bytes for lastEditor to set.

Returns
Type Description
SecurityHealthAnalyticsCustomModule.Builder

This builder for chaining.

setName(String value)

publicSecurityHealthAnalyticsCustomModule.BuildersetName(Stringvalue)

Identifier. The full resource name of the custom module, in one of the following formats:

  • organizations/{organization}/locations/{location}/securityHealthAnalyticsCustomModules/{custom_module}
  • folders/{folder}/locations/{location}/securityHealthAnalyticsCustomModules/{custom_module}
  • projects/{project}/locations/{location}/securityHealthAnalyticsCustomModules/{custom_module}

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

Parameter
Name Description
value String

The name to set.

Returns
Type Description
SecurityHealthAnalyticsCustomModule.Builder

This builder for chaining.

setNameBytes(ByteString value)

publicSecurityHealthAnalyticsCustomModule.BuildersetNameBytes(ByteStringvalue)

Identifier. The full resource name of the custom module, in one of the following formats:

  • organizations/{organization}/locations/{location}/securityHealthAnalyticsCustomModules/{custom_module}
  • folders/{folder}/locations/{location}/securityHealthAnalyticsCustomModules/{custom_module}
  • projects/{project}/locations/{location}/securityHealthAnalyticsCustomModules/{custom_module}

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

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
SecurityHealthAnalyticsCustomModule.Builder

This builder for chaining.

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

publicSecurityHealthAnalyticsCustomModule.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
SecurityHealthAnalyticsCustomModule.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

publicfinalSecurityHealthAnalyticsCustomModule.BuildersetUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SecurityHealthAnalyticsCustomModule.Builder
Overrides

setUpdateTime(Timestamp value)

publicSecurityHealthAnalyticsCustomModule.BuildersetUpdateTime(Timestampvalue)

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

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

Parameter
Name Description
value Timestamp
Returns
Type Description
SecurityHealthAnalyticsCustomModule.Builder

setUpdateTime(Timestamp.Builder builderForValue)

publicSecurityHealthAnalyticsCustomModule.BuildersetUpdateTime(Timestamp.BuilderbuilderForValue)

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

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

Parameter
Name Description
builderForValue Builder
Returns
Type Description
SecurityHealthAnalyticsCustomModule.Builder

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年11月19日 UTC.