Class EffectiveSecurityHealthAnalyticsCustomModule.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<EffectiveSecurityHealthAnalyticsCustomModule.Builder>
-
- com.google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule.Builder
-
- All Implemented Interfaces:
EffectiveSecurityHealthAnalyticsCustomModuleOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- EffectiveSecurityHealthAnalyticsCustomModule
public static final class EffectiveSecurityHealthAnalyticsCustomModule.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<EffectiveSecurityHealthAnalyticsCustomModule.Builder> implements EffectiveSecurityHealthAnalyticsCustomModuleOrBuilder
An EffectiveSecurityHealthAnalyticsCustomModule is the representation of a Security Health Analytics custom module at a specified level of the resource hierarchy: organization, folder, or project. If a custom module is inherited from a parent organization or folder, the value of the `enablementState` property in EffectiveSecurityHealthAnalyticsCustomModule is set to the value that is effective in the parent, instead of `INHERITED`. For example, if the module is enabled in a parent organization or folder, the effective enablement_state for the module in all child folders or projects is also `enabled`. EffectiveSecurityHealthAnalyticsCustomModule is read-only.
Protobuf typegoogle.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule
-
-
Method Summary
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<EffectiveSecurityHealthAnalyticsCustomModule.Builder>
-
clear
public EffectiveSecurityHealthAnalyticsCustomModule.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<EffectiveSecurityHealthAnalyticsCustomModule.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<EffectiveSecurityHealthAnalyticsCustomModule.Builder>
-
getDefaultInstanceForType
public EffectiveSecurityHealthAnalyticsCustomModule getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public EffectiveSecurityHealthAnalyticsCustomModule build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public EffectiveSecurityHealthAnalyticsCustomModule buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public EffectiveSecurityHealthAnalyticsCustomModule.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<EffectiveSecurityHealthAnalyticsCustomModule.Builder>
-
setField
public EffectiveSecurityHealthAnalyticsCustomModule.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<EffectiveSecurityHealthAnalyticsCustomModule.Builder>
-
clearField
public EffectiveSecurityHealthAnalyticsCustomModule.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<EffectiveSecurityHealthAnalyticsCustomModule.Builder>
-
clearOneof
public EffectiveSecurityHealthAnalyticsCustomModule.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<EffectiveSecurityHealthAnalyticsCustomModule.Builder>
-
setRepeatedField
public EffectiveSecurityHealthAnalyticsCustomModule.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<EffectiveSecurityHealthAnalyticsCustomModule.Builder>
-
addRepeatedField
public EffectiveSecurityHealthAnalyticsCustomModule.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<EffectiveSecurityHealthAnalyticsCustomModule.Builder>
-
mergeFrom
public EffectiveSecurityHealthAnalyticsCustomModule.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<EffectiveSecurityHealthAnalyticsCustomModule.Builder>
-
mergeFrom
public EffectiveSecurityHealthAnalyticsCustomModule.Builder mergeFrom(EffectiveSecurityHealthAnalyticsCustomModule other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<EffectiveSecurityHealthAnalyticsCustomModule.Builder>
-
mergeFrom
public EffectiveSecurityHealthAnalyticsCustomModule.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<EffectiveSecurityHealthAnalyticsCustomModule.Builder>
- Throws:
IOException
-
getName
public String getName()
Output only. The resource name of the custom module. Its format is "organizations/{organization}/securityHealthAnalyticsSettings/effectiveCustomModules/{customModule}", or "folders/{folder}/securityHealthAnalyticsSettings/effectiveCustomModules/{customModule}", or "projects/{project}/securityHealthAnalyticsSettings/effectiveCustomModules/{customModule}"
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getName
in interfaceEffectiveSecurityHealthAnalyticsCustomModuleOrBuilder
- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
Output only. The resource name of the custom module. Its format is "organizations/{organization}/securityHealthAnalyticsSettings/effectiveCustomModules/{customModule}", or "folders/{folder}/securityHealthAnalyticsSettings/effectiveCustomModules/{customModule}", or "projects/{project}/securityHealthAnalyticsSettings/effectiveCustomModules/{customModule}"
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getNameBytes
in interfaceEffectiveSecurityHealthAnalyticsCustomModuleOrBuilder
- Returns:
- The bytes for name.
-
setName
public EffectiveSecurityHealthAnalyticsCustomModule.Builder setName(String value)
Output only. The resource name of the custom module. Its format is "organizations/{organization}/securityHealthAnalyticsSettings/effectiveCustomModules/{customModule}", or "folders/{folder}/securityHealthAnalyticsSettings/effectiveCustomModules/{customModule}", or "projects/{project}/securityHealthAnalyticsSettings/effectiveCustomModules/{customModule}"
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Parameters:
value
- The name to set.- Returns:
- This builder for chaining.
-
clearName
public EffectiveSecurityHealthAnalyticsCustomModule.Builder clearName()
Output only. The resource name of the custom module. Its format is "organizations/{organization}/securityHealthAnalyticsSettings/effectiveCustomModules/{customModule}", or "folders/{folder}/securityHealthAnalyticsSettings/effectiveCustomModules/{customModule}", or "projects/{project}/securityHealthAnalyticsSettings/effectiveCustomModules/{customModule}"
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Returns:
- This builder for chaining.
-
setNameBytes
public EffectiveSecurityHealthAnalyticsCustomModule.Builder setNameBytes(com.google.protobuf.ByteString value)
Output only. The resource name of the custom module. Its format is "organizations/{organization}/securityHealthAnalyticsSettings/effectiveCustomModules/{customModule}", or "folders/{folder}/securityHealthAnalyticsSettings/effectiveCustomModules/{customModule}", or "projects/{project}/securityHealthAnalyticsSettings/effectiveCustomModules/{customModule}"
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Parameters:
value
- The bytes for name to set.- Returns:
- This builder for chaining.
-
hasCustomConfig
public boolean hasCustomConfig()
Output only. The user-specified configuration for the module.
.google.cloud.securitycenter.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
hasCustomConfig
in interfaceEffectiveSecurityHealthAnalyticsCustomModuleOrBuilder
- Returns:
- Whether the customConfig field is set.
-
getCustomConfig
public CustomConfig getCustomConfig()
Output only. The user-specified configuration for the module.
.google.cloud.securitycenter.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getCustomConfig
in interfaceEffectiveSecurityHealthAnalyticsCustomModuleOrBuilder
- Returns:
- The customConfig.
-
setCustomConfig
public EffectiveSecurityHealthAnalyticsCustomModule.Builder setCustomConfig(CustomConfig value)
Output only. The user-specified configuration for the module.
.google.cloud.securitycenter.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
setCustomConfig
public EffectiveSecurityHealthAnalyticsCustomModule.Builder setCustomConfig(CustomConfig.Builder builderForValue)
Output only. The user-specified configuration for the module.
.google.cloud.securitycenter.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
mergeCustomConfig
public EffectiveSecurityHealthAnalyticsCustomModule.Builder mergeCustomConfig(CustomConfig value)
Output only. The user-specified configuration for the module.
.google.cloud.securitycenter.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
clearCustomConfig
public EffectiveSecurityHealthAnalyticsCustomModule.Builder clearCustomConfig()
Output only. The user-specified configuration for the module.
.google.cloud.securitycenter.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
getCustomConfigBuilder
public CustomConfig.Builder getCustomConfigBuilder()
Output only. The user-specified configuration for the module.
.google.cloud.securitycenter.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
getCustomConfigOrBuilder
public CustomConfigOrBuilder getCustomConfigOrBuilder()
Output only. The user-specified configuration for the module.
.google.cloud.securitycenter.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getCustomConfigOrBuilder
in interfaceEffectiveSecurityHealthAnalyticsCustomModuleOrBuilder
-
getEnablementStateValue
public int getEnablementStateValue()
Output only. The effective state of enablement for the module at the given level of the hierarchy.
.google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getEnablementStateValue
in interfaceEffectiveSecurityHealthAnalyticsCustomModuleOrBuilder
- Returns:
- The enum numeric value on the wire for enablementState.
-
setEnablementStateValue
public EffectiveSecurityHealthAnalyticsCustomModule.Builder setEnablementStateValue(int value)
Output only. The effective state of enablement for the module at the given level of the hierarchy.
.google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Parameters:
value
- The enum numeric value on the wire for enablementState to set.- Returns:
- This builder for chaining.
-
getEnablementState
public EffectiveSecurityHealthAnalyticsCustomModule.EnablementState getEnablementState()
Output only. The effective state of enablement for the module at the given level of the hierarchy.
.google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getEnablementState
in interfaceEffectiveSecurityHealthAnalyticsCustomModuleOrBuilder
- Returns:
- The enablementState.
-
setEnablementState
public EffectiveSecurityHealthAnalyticsCustomModule.Builder setEnablementState(EffectiveSecurityHealthAnalyticsCustomModule.EnablementState value)
Output only. The effective state of enablement for the module at the given level of the hierarchy.
.google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Parameters:
value
- The enablementState to set.- Returns:
- This builder for chaining.
-
clearEnablementState
public EffectiveSecurityHealthAnalyticsCustomModule.Builder clearEnablementState()
Output only. The effective state of enablement for the module at the given level of the hierarchy.
.google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Returns:
- This builder for chaining.
-
getDisplayName
public String getDisplayName()
Output only. The display name for the custom module. The name must be between 1 and 128 characters, start with a lowercase letter, and contain alphanumeric characters or underscores only.
string display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getDisplayName
in interfaceEffectiveSecurityHealthAnalyticsCustomModuleOrBuilder
- Returns:
- The displayName.
-
getDisplayNameBytes
public com.google.protobuf.ByteString getDisplayNameBytes()
Output only. The display name for the custom module. The name must be between 1 and 128 characters, start with a lowercase letter, and contain alphanumeric characters or underscores only.
string display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getDisplayNameBytes
in interfaceEffectiveSecurityHealthAnalyticsCustomModuleOrBuilder
- Returns:
- The bytes for displayName.
-
setDisplayName
public EffectiveSecurityHealthAnalyticsCustomModule.Builder setDisplayName(String value)
Output only. The display name for the custom module. The name must be between 1 and 128 characters, start with a lowercase letter, and contain alphanumeric characters or underscores only.
string display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Parameters:
value
- The displayName to set.- Returns:
- This builder for chaining.
-
clearDisplayName
public EffectiveSecurityHealthAnalyticsCustomModule.Builder clearDisplayName()
Output only. The display name for the custom module. The name must be between 1 and 128 characters, start with a lowercase letter, and contain alphanumeric characters or underscores only.
string display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Returns:
- This builder for chaining.
-
setDisplayNameBytes
public EffectiveSecurityHealthAnalyticsCustomModule.Builder setDisplayNameBytes(com.google.protobuf.ByteString value)
Output only. The display name for the custom module. The name must be between 1 and 128 characters, start with a lowercase letter, and contain alphanumeric characters or underscores only.
string display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Parameters:
value
- The bytes for displayName to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final EffectiveSecurityHealthAnalyticsCustomModule.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<EffectiveSecurityHealthAnalyticsCustomModule.Builder>
-
mergeUnknownFields
public final EffectiveSecurityHealthAnalyticsCustomModule.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<EffectiveSecurityHealthAnalyticsCustomModule.Builder>
-
-