Class SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource (0.8.0)

public static final class SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource extends GeneratedMessageV3 implements SimulateSecurityHealthAnalyticsCustomModuleRequest.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<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource

Static Fields

IAM_POLICY_DATA_FIELD_NUMBER

public static final int IAM_POLICY_DATA_FIELD_NUMBER
Field Value
TypeDescription
int

RESOURCE_DATA_FIELD_NUMBER

public static final int RESOURCE_DATA_FIELD_NUMBER
Field Value
TypeDescription
int

RESOURCE_TYPE_FIELD_NUMBER

public static final int RESOURCE_TYPE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource getDefaultInstance()
Returns
TypeDescription
SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource.Builder newBuilder()
Returns
TypeDescription
SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource.Builder

newBuilder(SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource prototype)

public static SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource.Builder newBuilder(SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource prototype)
Parameter
NameDescription
prototypeSimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource
Returns
TypeDescription
SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource.Builder

parseDelimitedFrom(InputStream input)

public static SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource> parser()
Returns
TypeDescription
Parser<SimulatedResource>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource getDefaultInstanceForType()
Returns
TypeDescription
SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource

getIamPolicyData()

public Policy getIamPolicyData()

Optional. A representation of the IAM policy.

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

Returns
TypeDescription
com.google.iam.v1.Policy

The iamPolicyData.

getIamPolicyDataOrBuilder()

public PolicyOrBuilder getIamPolicyDataOrBuilder()

Optional. A representation of the IAM policy.

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

Returns
TypeDescription
com.google.iam.v1.PolicyOrBuilder

getParserForType()

public Parser<SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource> getParserForType()
Returns
TypeDescription
Parser<SimulatedResource>
Overrides

getResourceData()

public Struct getResourceData()

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
TypeDescription
Struct

The resourceData.

getResourceDataOrBuilder()

public StructOrBuilder getResourceDataOrBuilder()

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
TypeDescription
StructOrBuilder

getResourceType()

public String getResourceType()

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

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

Returns
TypeDescription
String

The resourceType.

getResourceTypeBytes()

public ByteString getResourceTypeBytes()

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

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

Returns
TypeDescription
ByteString

The bytes for resourceType.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hasIamPolicyData()

public boolean hasIamPolicyData()

Optional. A representation of the IAM policy.

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

Returns
TypeDescription
boolean

Whether the iamPolicyData field is set.

hasResourceData()

public boolean hasResourceData()

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
TypeDescription
boolean

Whether the resourceData field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource.Builder newBuilderForType()
Returns
TypeDescription
SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource.Builder toBuilder()
Returns
TypeDescription
SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException