Class SecurityHealthAnalyticsCustomModule.Builder (0.12.0)

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

Message for SHA Custom Module

Protobuf type google.cloud.securityposture.v1.SecurityHealthAnalyticsCustomModule

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public SecurityHealthAnalyticsCustomModule.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SecurityHealthAnalyticsCustomModule.Builder
Overrides

build()

public SecurityHealthAnalyticsCustomModule build()
Returns
Type Description
SecurityHealthAnalyticsCustomModule

buildPartial()

public SecurityHealthAnalyticsCustomModule buildPartial()
Returns
Type Description
SecurityHealthAnalyticsCustomModule

clear()

public SecurityHealthAnalyticsCustomModule.Builder clear()
Returns
Type Description
SecurityHealthAnalyticsCustomModule.Builder
Overrides

clearConfig()

public SecurityHealthAnalyticsCustomModule.Builder clearConfig()

Required. custom module details

.google.cloud.securityposture.v1.CustomConfig config = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
SecurityHealthAnalyticsCustomModule.Builder

clearDisplayName()

public SecurityHealthAnalyticsCustomModule.Builder clearDisplayName()

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.

clearField(Descriptors.FieldDescriptor field)

public SecurityHealthAnalyticsCustomModule.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
SecurityHealthAnalyticsCustomModule.Builder
Overrides

clearId()

public SecurityHealthAnalyticsCustomModule.Builder clearId()

Output only. Immutable. The id of the custom module. The id is server-generated and is not user settable. It will be a numeric id containing 1-20 digits.

string id = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
SecurityHealthAnalyticsCustomModule.Builder

This builder for chaining.

clearModuleEnablementState()

public SecurityHealthAnalyticsCustomModule.Builder clearModuleEnablementState()

The state of enablement for the module at its level of the resource hierarchy.

.google.cloud.securityposture.v1.EnablementState module_enablement_state = 4;

Returns
Type Description
SecurityHealthAnalyticsCustomModule.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public SecurityHealthAnalyticsCustomModule.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
SecurityHealthAnalyticsCustomModule.Builder
Overrides

clone()

public SecurityHealthAnalyticsCustomModule.Builder clone()
Returns
Type Description
SecurityHealthAnalyticsCustomModule.Builder
Overrides

getConfig()

public CustomConfig getConfig()

Required. custom module details

.google.cloud.securityposture.v1.CustomConfig config = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CustomConfig

The config.

getConfigBuilder()

public CustomConfig.Builder getConfigBuilder()

Required. custom module details

.google.cloud.securityposture.v1.CustomConfig config = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CustomConfig.Builder

getConfigOrBuilder()

public CustomConfigOrBuilder getConfigOrBuilder()

Required. custom module details

.google.cloud.securityposture.v1.CustomConfig config = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CustomConfigOrBuilder

getDefaultInstanceForType()

public SecurityHealthAnalyticsCustomModule getDefaultInstanceForType()
Returns
Type Description
SecurityHealthAnalyticsCustomModule

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getDisplayName()

public String getDisplayName()

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()

public ByteString getDisplayNameBytes()

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.

getId()

public String getId()

Output only. Immutable. The id of the custom module. The id is server-generated and is not user settable. It will be a numeric id containing 1-20 digits.

string id = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The id.

getIdBytes()

public ByteString getIdBytes()

Output only. Immutable. The id of the custom module. The id is server-generated and is not user settable. It will be a numeric id containing 1-20 digits.

string id = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for id.

getModuleEnablementState()

public EnablementState getModuleEnablementState()

The state of enablement for the module at its level of the resource hierarchy.

.google.cloud.securityposture.v1.EnablementState module_enablement_state = 4;

Returns
Type Description
EnablementState

The moduleEnablementState.

getModuleEnablementStateValue()

public int getModuleEnablementStateValue()

The state of enablement for the module at its level of the resource hierarchy.

.google.cloud.securityposture.v1.EnablementState module_enablement_state = 4;

Returns
Type Description
int

The enum numeric value on the wire for moduleEnablementState.

hasConfig()

public boolean hasConfig()

Required. custom module details

.google.cloud.securityposture.v1.CustomConfig config = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the config field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeConfig(CustomConfig value)

public SecurityHealthAnalyticsCustomModule.Builder mergeConfig(CustomConfig value)

Required. custom module details

.google.cloud.securityposture.v1.CustomConfig config = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value CustomConfig
Returns
Type Description
SecurityHealthAnalyticsCustomModule.Builder

mergeFrom(SecurityHealthAnalyticsCustomModule other)

public SecurityHealthAnalyticsCustomModule.Builder mergeFrom(SecurityHealthAnalyticsCustomModule other)
Parameter
Name Description
other SecurityHealthAnalyticsCustomModule
Returns
Type Description
SecurityHealthAnalyticsCustomModule.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public SecurityHealthAnalyticsCustomModule.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SecurityHealthAnalyticsCustomModule.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public SecurityHealthAnalyticsCustomModule.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
SecurityHealthAnalyticsCustomModule.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SecurityHealthAnalyticsCustomModule.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SecurityHealthAnalyticsCustomModule.Builder
Overrides

setConfig(CustomConfig value)

public SecurityHealthAnalyticsCustomModule.Builder setConfig(CustomConfig value)

Required. custom module details

.google.cloud.securityposture.v1.CustomConfig config = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value CustomConfig
Returns
Type Description
SecurityHealthAnalyticsCustomModule.Builder

setConfig(CustomConfig.Builder builderForValue)

public SecurityHealthAnalyticsCustomModule.Builder setConfig(CustomConfig.Builder builderForValue)

Required. custom module details

.google.cloud.securityposture.v1.CustomConfig config = 3 [(.google.api.field_behavior) = REQUIRED];

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

setDisplayName(String value)

public SecurityHealthAnalyticsCustomModule.Builder setDisplayName(String value)

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)

public SecurityHealthAnalyticsCustomModule.Builder setDisplayNameBytes(ByteString value)

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.

setField(Descriptors.FieldDescriptor field, Object value)

public SecurityHealthAnalyticsCustomModule.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SecurityHealthAnalyticsCustomModule.Builder
Overrides

setId(String value)

public SecurityHealthAnalyticsCustomModule.Builder setId(String value)

Output only. Immutable. The id of the custom module. The id is server-generated and is not user settable. It will be a numeric id containing 1-20 digits.

string id = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The id to set.

Returns
Type Description
SecurityHealthAnalyticsCustomModule.Builder

This builder for chaining.

setIdBytes(ByteString value)

public SecurityHealthAnalyticsCustomModule.Builder setIdBytes(ByteString value)

Output only. Immutable. The id of the custom module. The id is server-generated and is not user settable. It will be a numeric id containing 1-20 digits.

string id = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for id to set.

Returns
Type Description
SecurityHealthAnalyticsCustomModule.Builder

This builder for chaining.

setModuleEnablementState(EnablementState value)

public SecurityHealthAnalyticsCustomModule.Builder setModuleEnablementState(EnablementState value)

The state of enablement for the module at its level of the resource hierarchy.

.google.cloud.securityposture.v1.EnablementState module_enablement_state = 4;

Parameter
Name Description
value EnablementState

The moduleEnablementState to set.

Returns
Type Description
SecurityHealthAnalyticsCustomModule.Builder

This builder for chaining.

setModuleEnablementStateValue(int value)

public SecurityHealthAnalyticsCustomModule.Builder setModuleEnablementStateValue(int value)

The state of enablement for the module at its level of the resource hierarchy.

.google.cloud.securityposture.v1.EnablementState module_enablement_state = 4;

Parameter
Name Description
value int

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

Returns
Type Description
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
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
SecurityHealthAnalyticsCustomModule.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final SecurityHealthAnalyticsCustomModule.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SecurityHealthAnalyticsCustomModule.Builder
Overrides