Class ReplayConfig.Builder (0.34.0)

public static final class ReplayConfig.Builder extends GeneratedMessageV3.Builder<ReplayConfig.Builder> implements ReplayConfigOrBuilder

The configuration used for a Replay.

Protobuf type google.cloud.policysimulator.v1.ReplayConfig

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ReplayConfig build()
Returns
Type Description
ReplayConfig

buildPartial()

public ReplayConfig buildPartial()
Returns
Type Description
ReplayConfig

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearLogSource()

public ReplayConfig.Builder clearLogSource()

The logs to use as input for the Replay.

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

Returns
Type Description
ReplayConfig.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPolicyOverlay()

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

clone()

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

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

getDefaultInstanceForType()

public ReplayConfig getDefaultInstanceForType()
Returns
Type Description
ReplayConfig

getDescriptorForType()

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

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.

getMutablePolicyOverlay() (deprecated)

public Map<String,Policy> getMutablePolicyOverlay()

Use alternate mutation accessors instead.

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

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

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.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ReplayConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

putAllPolicyOverlay(Map<String,Policy> values)

public ReplayConfig.Builder putAllPolicyOverlay(Map<String,Policy> values)

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
values Map<String,com.google.iam.v1.Policy>
Returns
Type Description
ReplayConfig.Builder

putPolicyOverlay(String key, Policy value)

public ReplayConfig.Builder putPolicyOverlay(String key, Policy value)

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
value com.google.iam.v1.Policy
Returns
Type Description
ReplayConfig.Builder

putPolicyOverlayBuilderIfAbsent(String key)

public Policy.Builder putPolicyOverlayBuilderIfAbsent(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.Builder

removePolicyOverlay(String key)

public ReplayConfig.Builder removePolicyOverlay(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
ReplayConfig.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setLogSource(ReplayConfig.LogSource value)

public ReplayConfig.Builder setLogSource(ReplayConfig.LogSource value)

The logs to use as input for the Replay.

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

Parameter
Name Description
value ReplayConfig.LogSource

The logSource to set.

Returns
Type Description
ReplayConfig.Builder

This builder for chaining.

setLogSourceValue(int value)

public ReplayConfig.Builder setLogSourceValue(int value)

The logs to use as input for the Replay.

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

Parameter
Name Description
value int

The enum numeric value on the wire for logSource to set.

Returns
Type Description
ReplayConfig.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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