Class ReplayConfig (0.23.0)

public final class ReplayConfig extends GeneratedMessageV3 implements ReplayConfigOrBuilder

The configuration used for a Replay.

Protobuf type google.cloud.policysimulator.v1.ReplayConfig

Static Fields

LOG_SOURCE_FIELD_NUMBER

public static final int LOG_SOURCE_FIELD_NUMBER
Field Value
Type Description
int

POLICY_OVERLAY_FIELD_NUMBER

public static final int POLICY_OVERLAY_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static ReplayConfig getDefaultInstance()
Returns
Type Description
ReplayConfig

getDescriptor()

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

newBuilder()

public static ReplayConfig.Builder newBuilder()
Returns
Type Description
ReplayConfig.Builder

newBuilder(ReplayConfig prototype)

public static ReplayConfig.Builder newBuilder(ReplayConfig prototype)
Parameter
Name Description
prototype ReplayConfig
Returns
Type Description
ReplayConfig.Builder

parseDelimitedFrom(InputStream input)

public static ReplayConfig parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ReplayConfig
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ReplayConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ReplayConfig
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static ReplayConfig parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
ReplayConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ReplayConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ReplayConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ReplayConfig parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
ReplayConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ReplayConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ReplayConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ReplayConfig parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
ReplayConfig
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ReplayConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ReplayConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static ReplayConfig parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ReplayConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ReplayConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ReplayConfig
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static ReplayConfig parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
ReplayConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ReplayConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ReplayConfig
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<ReplayConfig> parser()
Returns
Type Description
Parser<ReplayConfig>

Methods

containsPolicyOverlay(String key)

public boolean containsPolicyOverlay(String key)

A mapping of the resources that you want to simulate policies for and the policies that you want to simulate.

Keys are the full resource names for the resources. For example, //cloudresourcemanager.googleapis.com/projects/my-project. For examples of full resource names for Google Cloud services, see https://cloud.google.com/iam/help/troubleshooter/full-resource-names.

Values are Policy objects representing the policies that you want to simulate.

Replays automatically take into account any IAM policies inherited through the resource hierarchy, and any policies set on descendant resources. You do not need to include these policies in the policy overlay.

map<string, .google.iam.v1.Policy> policy_overlay = 1;

Parameter
Name Description
key String
Returns
Type Description
boolean

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public ReplayConfig getDefaultInstanceForType()
Returns
Type Description
ReplayConfig

getLogSource()

public ReplayConfig.LogSource getLogSource()

The logs to use as input for the Replay.

.google.cloud.policysimulator.v1.ReplayConfig.LogSource log_source = 2;

Returns
Type Description
ReplayConfig.LogSource

The logSource.

getLogSourceValue()

public int getLogSourceValue()

The logs to use as input for the Replay.

.google.cloud.policysimulator.v1.ReplayConfig.LogSource log_source = 2;

Returns
Type Description
int

The enum numeric value on the wire for logSource.

getParserForType()

public Parser<ReplayConfig> getParserForType()
Returns
Type Description
Parser<ReplayConfig>
Overrides

getPolicyOverlay() (deprecated)

public Map<String,Policy> getPolicyOverlay()
Returns
Type Description
Map<String,com.google.iam.v1.Policy>

getPolicyOverlayCount()

public int getPolicyOverlayCount()

A mapping of the resources that you want to simulate policies for and the policies that you want to simulate.

Keys are the full resource names for the resources. For example, //cloudresourcemanager.googleapis.com/projects/my-project. For examples of full resource names for Google Cloud services, see https://cloud.google.com/iam/help/troubleshooter/full-resource-names.

Values are Policy objects representing the policies that you want to simulate.

Replays automatically take into account any IAM policies inherited through the resource hierarchy, and any policies set on descendant resources. You do not need to include these policies in the policy overlay.

map<string, .google.iam.v1.Policy> policy_overlay = 1;

Returns
Type Description
int

getPolicyOverlayMap()

public Map<String,Policy> getPolicyOverlayMap()

A mapping of the resources that you want to simulate policies for and the policies that you want to simulate.

Keys are the full resource names for the resources. For example, //cloudresourcemanager.googleapis.com/projects/my-project. For examples of full resource names for Google Cloud services, see https://cloud.google.com/iam/help/troubleshooter/full-resource-names.

Values are Policy objects representing the policies that you want to simulate.

Replays automatically take into account any IAM policies inherited through the resource hierarchy, and any policies set on descendant resources. You do not need to include these policies in the policy overlay.

map<string, .google.iam.v1.Policy> policy_overlay = 1;

Returns
Type Description
Map<String,com.google.iam.v1.Policy>

getPolicyOverlayOrDefault(String key, Policy defaultValue)

public Policy getPolicyOverlayOrDefault(String key, Policy defaultValue)

A mapping of the resources that you want to simulate policies for and the policies that you want to simulate.

Keys are the full resource names for the resources. For example, //cloudresourcemanager.googleapis.com/projects/my-project. For examples of full resource names for Google Cloud services, see https://cloud.google.com/iam/help/troubleshooter/full-resource-names.

Values are Policy objects representing the policies that you want to simulate.

Replays automatically take into account any IAM policies inherited through the resource hierarchy, and any policies set on descendant resources. You do not need to include these policies in the policy overlay.

map<string, .google.iam.v1.Policy> policy_overlay = 1;

Parameters
Name Description
key String
defaultValue com.google.iam.v1.Policy
Returns
Type Description
com.google.iam.v1.Policy

getPolicyOverlayOrThrow(String key)

public Policy getPolicyOverlayOrThrow(String key)

A mapping of the resources that you want to simulate policies for and the policies that you want to simulate.

Keys are the full resource names for the resources. For example, //cloudresourcemanager.googleapis.com/projects/my-project. For examples of full resource names for Google Cloud services, see https://cloud.google.com/iam/help/troubleshooter/full-resource-names.

Values are Policy objects representing the policies that you want to simulate.

Replays automatically take into account any IAM policies inherited through the resource hierarchy, and any policies set on descendant resources. You do not need to include these policies in the policy overlay.

map<string, .google.iam.v1.Policy> policy_overlay = 1;

Parameter
Name Description
key String
Returns
Type Description
com.google.iam.v1.Policy

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public ReplayConfig.Builder newBuilderForType()
Returns
Type Description
ReplayConfig.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ReplayConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
ReplayConfig.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public ReplayConfig.Builder toBuilder()
Returns
Type Description
ReplayConfig.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException