Class SimulateSecurityHealthAnalyticsCustomModuleRequest.Builder (2.63.0)

public static final class SimulateSecurityHealthAnalyticsCustomModuleRequest.Builder extends GeneratedMessageV3.Builder<SimulateSecurityHealthAnalyticsCustomModuleRequest.Builder> implements SimulateSecurityHealthAnalyticsCustomModuleRequestOrBuilder

Request message to simulate a CustomConfig against a given test resource. Maximum size of the request is 4 MB by default.

Protobuf type google.cloud.securitycenter.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest

Inheritance

Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > SimulateSecurityHealthAnalyticsCustomModuleRequest.Builder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public SimulateSecurityHealthAnalyticsCustomModuleRequest build()
Returns
Type Description
SimulateSecurityHealthAnalyticsCustomModuleRequest

buildPartial()

public SimulateSecurityHealthAnalyticsCustomModuleRequest buildPartial()
Returns
Type Description
SimulateSecurityHealthAnalyticsCustomModuleRequest

clear()

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

clearCustomConfig()

public SimulateSecurityHealthAnalyticsCustomModuleRequest.Builder clearCustomConfig()

Required. The custom configuration that you need to test.

.google.cloud.securitycenter.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
SimulateSecurityHealthAnalyticsCustomModuleRequest.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public SimulateSecurityHealthAnalyticsCustomModuleRequest.Builder clearParent()

Required. The relative resource name of the organization, project, or folder. For more information about relative resource names, see Relative Resource Name Example: organizations/{organization_id}

string parent = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
SimulateSecurityHealthAnalyticsCustomModuleRequest.Builder

This builder for chaining.

clearResource()

public SimulateSecurityHealthAnalyticsCustomModuleRequest.Builder clearResource()

Required. Resource data to simulate custom module against.

.google.cloud.securitycenter.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource resource = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
SimulateSecurityHealthAnalyticsCustomModuleRequest.Builder

clone()

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

getCustomConfig()

public CustomConfig getCustomConfig()

Required. The custom configuration that you need to test.

.google.cloud.securitycenter.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CustomConfig

The customConfig.

getCustomConfigBuilder()

public CustomConfig.Builder getCustomConfigBuilder()

Required. The custom configuration that you need to test.

.google.cloud.securitycenter.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CustomConfig.Builder

getCustomConfigOrBuilder()

public CustomConfigOrBuilder getCustomConfigOrBuilder()

Required. The custom configuration that you need to test.

.google.cloud.securitycenter.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CustomConfigOrBuilder

getDefaultInstanceForType()

public SimulateSecurityHealthAnalyticsCustomModuleRequest getDefaultInstanceForType()
Returns
Type Description
SimulateSecurityHealthAnalyticsCustomModuleRequest

getDescriptorForType()

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

getParent()

public String getParent()

Required. The relative resource name of the organization, project, or folder. For more information about relative resource names, see Relative Resource Name Example: organizations/{organization_id}

string parent = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The relative resource name of the organization, project, or folder. For more information about relative resource names, see Relative Resource Name Example: organizations/{organization_id}

string parent = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for parent.

getResource()

public SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource getResource()

Required. Resource data to simulate custom module against.

.google.cloud.securitycenter.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource resource = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource

The resource.

getResourceBuilder()

public SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource.Builder getResourceBuilder()

Required. Resource data to simulate custom module against.

.google.cloud.securitycenter.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource resource = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource.Builder

getResourceOrBuilder()

public SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResourceOrBuilder getResourceOrBuilder()

Required. Resource data to simulate custom module against.

.google.cloud.securitycenter.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource resource = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResourceOrBuilder

hasCustomConfig()

public boolean hasCustomConfig()

Required. The custom configuration that you need to test.

.google.cloud.securitycenter.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the customConfig field is set.

hasResource()

public boolean hasResource()

Required. Resource data to simulate custom module against.

.google.cloud.securitycenter.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource resource = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the resource field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCustomConfig(CustomConfig value)

public SimulateSecurityHealthAnalyticsCustomModuleRequest.Builder mergeCustomConfig(CustomConfig value)

Required. The custom configuration that you need to test.

.google.cloud.securitycenter.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value CustomConfig
Returns
Type Description
SimulateSecurityHealthAnalyticsCustomModuleRequest.Builder

mergeFrom(SimulateSecurityHealthAnalyticsCustomModuleRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeResource(SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource value)

public SimulateSecurityHealthAnalyticsCustomModuleRequest.Builder mergeResource(SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource value)

Required. Resource data to simulate custom module against.

.google.cloud.securitycenter.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource resource = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource
Returns
Type Description
SimulateSecurityHealthAnalyticsCustomModuleRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setCustomConfig(CustomConfig value)

public SimulateSecurityHealthAnalyticsCustomModuleRequest.Builder setCustomConfig(CustomConfig value)

Required. The custom configuration that you need to test.

.google.cloud.securitycenter.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value CustomConfig
Returns
Type Description
SimulateSecurityHealthAnalyticsCustomModuleRequest.Builder

setCustomConfig(CustomConfig.Builder builderForValue)

public SimulateSecurityHealthAnalyticsCustomModuleRequest.Builder setCustomConfig(CustomConfig.Builder builderForValue)

Required. The custom configuration that you need to test.

.google.cloud.securitycenter.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = REQUIRED];

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setParent(String value)

public SimulateSecurityHealthAnalyticsCustomModuleRequest.Builder setParent(String value)

Required. The relative resource name of the organization, project, or folder. For more information about relative resource names, see Relative Resource Name Example: organizations/{organization_id}

string parent = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
SimulateSecurityHealthAnalyticsCustomModuleRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public SimulateSecurityHealthAnalyticsCustomModuleRequest.Builder setParentBytes(ByteString value)

Required. The relative resource name of the organization, project, or folder. For more information about relative resource names, see Relative Resource Name Example: organizations/{organization_id}

string parent = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
SimulateSecurityHealthAnalyticsCustomModuleRequest.Builder

This builder for chaining.

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

public SimulateSecurityHealthAnalyticsCustomModuleRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
SimulateSecurityHealthAnalyticsCustomModuleRequest.Builder
Overrides

setResource(SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource value)

public SimulateSecurityHealthAnalyticsCustomModuleRequest.Builder setResource(SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource value)

Required. Resource data to simulate custom module against.

.google.cloud.securitycenter.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource resource = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource
Returns
Type Description
SimulateSecurityHealthAnalyticsCustomModuleRequest.Builder

setResource(SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource.Builder builderForValue)

public SimulateSecurityHealthAnalyticsCustomModuleRequest.Builder setResource(SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource.Builder builderForValue)

Required. Resource data to simulate custom module against.

.google.cloud.securitycenter.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource resource = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource.Builder
Returns
Type Description
SimulateSecurityHealthAnalyticsCustomModuleRequest.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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