Class ReplayConfig.Builder (0.1.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ReplayConfig build()
Returns
TypeDescription
ReplayConfig

buildPartial()

public ReplayConfig buildPartial()
Returns
TypeDescription
ReplayConfig

clear()

public ReplayConfig.Builder clear()
Returns
TypeDescription
ReplayConfig.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public ReplayConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
ReplayConfig.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ReplayConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ReplayConfig.Builder
Overrides

clearPolicyOverlay()

public ReplayConfig.Builder clearPolicyOverlay()
Returns
TypeDescription
ReplayConfig.Builder

clone()

public ReplayConfig.Builder clone()
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
boolean

getDefaultInstanceForType()

public ReplayConfig getDefaultInstanceForType()
Returns
TypeDescription
ReplayConfig

getDescriptorForType()

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

The enum numeric value on the wire for logSource.

getMutablePolicyOverlay()

public Map<String,Policy> getMutablePolicyOverlay()

Use alternate mutation accessors instead.

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

getPolicyOverlay()

public Map<String,Policy> getPolicyOverlay()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
keyString
defaultValuecom.google.iam.v1.Policy
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
com.google.iam.v1.Policy

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

internalGetMutableMapField(int number)

protected MapField internalGetMutableMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ReplayConfig other)

public ReplayConfig.Builder mergeFrom(ReplayConfig other)
Parameter
NameDescription
otherReplayConfig
Returns
TypeDescription
ReplayConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public ReplayConfig.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ReplayConfig.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ReplayConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valuesMap<String,com.google.iam.v1.Policy>
Returns
TypeDescription
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
NameDescription
keyString
valuecom.google.iam.v1.Policy
Returns
TypeDescription
ReplayConfig.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
NameDescription
keyString
Returns
TypeDescription
ReplayConfig.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

The logSource to set.

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

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

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ReplayConfig.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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