Class SimulateSecurityHealthAnalyticsCustomModuleRequest.Builder (2.49.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public SimulateSecurityHealthAnalyticsCustomModuleRequest build()
Returns
TypeDescription
SimulateSecurityHealthAnalyticsCustomModuleRequest

buildPartial()

public SimulateSecurityHealthAnalyticsCustomModuleRequest buildPartial()
Returns
TypeDescription
SimulateSecurityHealthAnalyticsCustomModuleRequest

clear()

public SimulateSecurityHealthAnalyticsCustomModuleRequest.Builder clear()
Returns
TypeDescription
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
TypeDescription
SimulateSecurityHealthAnalyticsCustomModuleRequest.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public SimulateSecurityHealthAnalyticsCustomModuleRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
SimulateSecurityHealthAnalyticsCustomModuleRequest.Builder

clone()

public SimulateSecurityHealthAnalyticsCustomModuleRequest.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
CustomConfigOrBuilder

getDefaultInstanceForType()

public SimulateSecurityHealthAnalyticsCustomModuleRequest getDefaultInstanceForType()
Returns
TypeDescription
SimulateSecurityHealthAnalyticsCustomModuleRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the resource 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 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
NameDescription
valueCustomConfig
Returns
TypeDescription
SimulateSecurityHealthAnalyticsCustomModuleRequest.Builder

mergeFrom(SimulateSecurityHealthAnalyticsCustomModuleRequest other)

public SimulateSecurityHealthAnalyticsCustomModuleRequest.Builder mergeFrom(SimulateSecurityHealthAnalyticsCustomModuleRequest other)
Parameter
NameDescription
otherSimulateSecurityHealthAnalyticsCustomModuleRequest
Returns
TypeDescription
SimulateSecurityHealthAnalyticsCustomModuleRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public SimulateSecurityHealthAnalyticsCustomModuleRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueSimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource
Returns
TypeDescription
SimulateSecurityHealthAnalyticsCustomModuleRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SimulateSecurityHealthAnalyticsCustomModuleRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueCustomConfig
Returns
TypeDescription
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
NameDescription
builderForValueCustomConfig.Builder
Returns
TypeDescription
SimulateSecurityHealthAnalyticsCustomModuleRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public SimulateSecurityHealthAnalyticsCustomModuleRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The parent to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueSimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource
Returns
TypeDescription
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
NameDescription
builderForValueSimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource.Builder
Returns
TypeDescription
SimulateSecurityHealthAnalyticsCustomModuleRequest.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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