Class SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource.Builder (0.10.0)

publicstaticfinalclass SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource.BuilderextendsGeneratedMessageV3.Builder<SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource.Builder>implementsSimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResourceOrBuilder

Manually constructed resource name. If the custom module evaluates against only the resource data, you can omit the iam_policy_data field. If it evaluates only the iam_policy_data field, you can omit the resource data.

Protobuf type google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource

Inheritance

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

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)

publicSimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource.Builder
Overrides

build()

publicSimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResourcebuild()
Returns
Type Description
SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource

buildPartial()

publicSimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResourcebuildPartial()
Returns
Type Description
SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource

clear()

publicSimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource.Builderclear()
Returns
Type Description
SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

publicSimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource.BuilderclearField(Descriptors.FieldDescriptorfield)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource.Builder
Overrides

clearIamPolicyData()

publicSimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource.BuilderclearIamPolicyData()

Optional. A representation of the IAM policy.

.google.iam.v1.Policy iam_policy_data = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

publicSimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource.Builder
Overrides

clearResourceData()

publicSimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource.BuilderclearResourceData()

Optional. A representation of the Google Cloud resource. Should match the Google Cloud resource JSON format.

.google.protobuf.Struct resource_data = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource.Builder

clearResourceType()

publicSimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource.BuilderclearResourceType()

Required. The type of the resource, for example, compute.googleapis.com/Disk.

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

Returns
Type Description
SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource.Builder

This builder for chaining.

clone()

publicSimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource.Builderclone()
Returns
Type Description
SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource.Builder
Overrides

getDefaultInstanceForType()

publicSimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResourcegetDefaultInstanceForType()
Returns
Type Description
SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource

getDescriptorForType()

publicDescriptors.DescriptorgetDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getIamPolicyData()

publicPolicygetIamPolicyData()

Optional. A representation of the IAM policy.

.google.iam.v1.Policy iam_policy_data = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
com.google.iam.v1.Policy

The iamPolicyData.

getIamPolicyDataBuilder()

publicPolicy.BuildergetIamPolicyDataBuilder()

Optional. A representation of the IAM policy.

.google.iam.v1.Policy iam_policy_data = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
com.google.iam.v1.Policy.Builder

getIamPolicyDataOrBuilder()

publicPolicyOrBuildergetIamPolicyDataOrBuilder()

Optional. A representation of the IAM policy.

.google.iam.v1.Policy iam_policy_data = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
com.google.iam.v1.PolicyOrBuilder

getResourceData()

publicStructgetResourceData()

Optional. A representation of the Google Cloud resource. Should match the Google Cloud resource JSON format.

.google.protobuf.Struct resource_data = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Struct

The resourceData.

getResourceDataBuilder()

publicStruct.BuildergetResourceDataBuilder()

Optional. A representation of the Google Cloud resource. Should match the Google Cloud resource JSON format.

.google.protobuf.Struct resource_data = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Builder

getResourceDataOrBuilder()

publicStructOrBuildergetResourceDataOrBuilder()

Optional. A representation of the Google Cloud resource. Should match the Google Cloud resource JSON format.

.google.protobuf.Struct resource_data = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
StructOrBuilder

getResourceType()

publicStringgetResourceType()

Required. The type of the resource, for example, compute.googleapis.com/Disk.

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

Returns
Type Description
String

The resourceType.

getResourceTypeBytes()

publicByteStringgetResourceTypeBytes()

Required. The type of the resource, for example, compute.googleapis.com/Disk.

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

Returns
Type Description
ByteString

The bytes for resourceType.

hasIamPolicyData()

publicbooleanhasIamPolicyData()

Optional. A representation of the IAM policy.

.google.iam.v1.Policy iam_policy_data = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the iamPolicyData field is set.

hasResourceData()

publicbooleanhasResourceData()

Optional. A representation of the Google Cloud resource. Should match the Google Cloud resource JSON format.

.google.protobuf.Struct resource_data = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the resourceData field is set.

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource other)

publicSimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource.BuildermergeFrom(SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResourceother)
Parameter
Name Description
other SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource
Returns
Type Description
SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

publicSimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource.BuildermergeFrom(Messageother)
Parameter
Name Description
other Message
Returns
Type Description
SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource.Builder
Overrides

mergeIamPolicyData(Policy value)

publicSimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource.BuildermergeIamPolicyData(Policyvalue)

Optional. A representation of the IAM policy.

.google.iam.v1.Policy iam_policy_data = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value com.google.iam.v1.Policy
Returns
Type Description
SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource.Builder

mergeResourceData(Struct value)

publicSimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource.BuildermergeResourceData(Structvalue)

Optional. A representation of the Google Cloud resource. Should match the Google Cloud resource JSON format.

.google.protobuf.Struct resource_data = 2 [(.google.api.field_behavior) = OPTIONAL];

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

mergeUnknownFields(UnknownFieldSet unknownFields)

publicfinalSimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

publicSimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource.Builder
Overrides

setIamPolicyData(Policy value)

publicSimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource.BuildersetIamPolicyData(Policyvalue)

Optional. A representation of the IAM policy.

.google.iam.v1.Policy iam_policy_data = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value com.google.iam.v1.Policy
Returns
Type Description
SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource.Builder

setIamPolicyData(Policy.Builder builderForValue)

publicSimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource.BuildersetIamPolicyData(Policy.BuilderbuilderForValue)

Optional. A representation of the IAM policy.

.google.iam.v1.Policy iam_policy_data = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue com.google.iam.v1.Policy.Builder
Returns
Type Description
SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource.Builder

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

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

setResourceData(Struct value)

publicSimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource.BuildersetResourceData(Structvalue)

Optional. A representation of the Google Cloud resource. Should match the Google Cloud resource JSON format.

.google.protobuf.Struct resource_data = 2 [(.google.api.field_behavior) = OPTIONAL];

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

setResourceData(Struct.Builder builderForValue)

publicSimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource.BuildersetResourceData(Struct.BuilderbuilderForValue)

Optional. A representation of the Google Cloud resource. Should match the Google Cloud resource JSON format.

.google.protobuf.Struct resource_data = 2 [(.google.api.field_behavior) = OPTIONAL];

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

setResourceType(String value)

publicSimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource.BuildersetResourceType(Stringvalue)

Required. The type of the resource, for example, compute.googleapis.com/Disk.

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

Parameter
Name Description
value String

The resourceType to set.

Returns
Type Description
SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource.Builder

This builder for chaining.

setResourceTypeBytes(ByteString value)

publicSimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource.BuildersetResourceTypeBytes(ByteStringvalue)

Required. The type of the resource, for example, compute.googleapis.com/Disk.

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

Parameter
Name Description
value ByteString

The bytes for resourceType to set.

Returns
Type Description
SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

publicfinalSimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource.BuildersetUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource.Builder
Overrides

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.