public static final class ReplayConfig.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ReplayConfig.Builder> implements ReplayConfigOrBuilder
The configuration used for a [Replay][google.cloud.policysimulator.v1.Replay].Protobuf type
google.cloud.policysimulator.v1.ReplayConfig| Modifier and Type | Method and Description |
|---|---|
ReplayConfig.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
ReplayConfig |
build() |
ReplayConfig |
buildPartial() |
ReplayConfig.Builder |
clear() |
ReplayConfig.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
ReplayConfig.Builder |
clearLogSource()
The logs to use as input for the
[Replay][google.cloud.policysimulator.v1.Replay].
|
ReplayConfig.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
ReplayConfig.Builder |
clearPolicyOverlay() |
ReplayConfig.Builder |
clone() |
boolean |
containsPolicyOverlay(String key)
A mapping of the resources that you want to simulate policies for and the
policies that you want to simulate.
|
ReplayConfig |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
ReplayConfig.LogSource |
getLogSource()
The logs to use as input for the
[Replay][google.cloud.policysimulator.v1.Replay].
|
int |
getLogSourceValue()
The logs to use as input for the
[Replay][google.cloud.policysimulator.v1.Replay].
|
Map<String,com.google.iam.v1.Policy> |
getMutablePolicyOverlay()
Deprecated.
|
Map<String,com.google.iam.v1.Policy> |
getPolicyOverlay()
Deprecated.
|
int |
getPolicyOverlayCount()
A mapping of the resources that you want to simulate policies for and the
policies that you want to simulate.
|
Map<String,com.google.iam.v1.Policy> |
getPolicyOverlayMap()
A mapping of the resources that you want to simulate policies for and the
policies that you want to simulate.
|
com.google.iam.v1.Policy |
getPolicyOverlayOrDefault(String key,
com.google.iam.v1.Policy defaultValue)
A mapping of the resources that you want to simulate policies for and the
policies that you want to simulate.
|
com.google.iam.v1.Policy |
getPolicyOverlayOrThrow(String key)
A mapping of the resources that you want to simulate policies for and the
policies that you want to simulate.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapField |
internalGetMapField(int number) |
protected com.google.protobuf.MapField |
internalGetMutableMapField(int number) |
boolean |
isInitialized() |
ReplayConfig.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
ReplayConfig.Builder |
mergeFrom(com.google.protobuf.Message other) |
ReplayConfig.Builder |
mergeFrom(ReplayConfig other) |
ReplayConfig.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
ReplayConfig.Builder |
putAllPolicyOverlay(Map<String,com.google.iam.v1.Policy> values)
A mapping of the resources that you want to simulate policies for and the
policies that you want to simulate.
|
ReplayConfig.Builder |
putPolicyOverlay(String key,
com.google.iam.v1.Policy value)
A mapping of the resources that you want to simulate policies for and the
policies that you want to simulate.
|
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.
|
ReplayConfig.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
ReplayConfig.Builder |
setLogSource(ReplayConfig.LogSource value)
The logs to use as input for the
[Replay][google.cloud.policysimulator.v1.Replay].
|
ReplayConfig.Builder |
setLogSourceValue(int value)
The logs to use as input for the
[Replay][google.cloud.policysimulator.v1.Replay].
|
ReplayConfig.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
ReplayConfig.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapFieldReflection, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField in class com.google.protobuf.GeneratedMessageV3.Builder<ReplayConfig.Builder>protected com.google.protobuf.MapField internalGetMutableMapField(int number)
internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<ReplayConfig.Builder>protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<ReplayConfig.Builder>public ReplayConfig.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<ReplayConfig.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<ReplayConfig.Builder>public ReplayConfig getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic ReplayConfig build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic ReplayConfig buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic ReplayConfig.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<ReplayConfig.Builder>public ReplayConfig.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<ReplayConfig.Builder>public ReplayConfig.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<ReplayConfig.Builder>public ReplayConfig.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<ReplayConfig.Builder>public ReplayConfig.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ReplayConfig.Builder>public ReplayConfig.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ReplayConfig.Builder>public ReplayConfig.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<ReplayConfig.Builder>public ReplayConfig.Builder mergeFrom(ReplayConfig other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<ReplayConfig.Builder>public ReplayConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<ReplayConfig.Builder>IOExceptionpublic int getPolicyOverlayCount()
ReplayConfigOrBuilderA 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][google.iam.v1.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;getPolicyOverlayCount in interface ReplayConfigOrBuilderpublic 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][google.iam.v1.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;containsPolicyOverlay in interface ReplayConfigOrBuilder@Deprecated public Map<String,com.google.iam.v1.Policy> getPolicyOverlay()
getPolicyOverlayMap() instead.getPolicyOverlay in interface ReplayConfigOrBuilderpublic Map<String,com.google.iam.v1.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][google.iam.v1.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;getPolicyOverlayMap in interface ReplayConfigOrBuilderpublic com.google.iam.v1.Policy getPolicyOverlayOrDefault(String key, com.google.iam.v1.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][google.iam.v1.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;getPolicyOverlayOrDefault in interface ReplayConfigOrBuilderpublic com.google.iam.v1.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][google.iam.v1.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;getPolicyOverlayOrThrow in interface ReplayConfigOrBuilderpublic ReplayConfig.Builder clearPolicyOverlay()
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][google.iam.v1.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;@Deprecated public Map<String,com.google.iam.v1.Policy> getMutablePolicyOverlay()
public ReplayConfig.Builder putPolicyOverlay(String key, com.google.iam.v1.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][google.iam.v1.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;public ReplayConfig.Builder putAllPolicyOverlay(Map<String,com.google.iam.v1.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][google.iam.v1.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;public int getLogSourceValue()
The logs to use as input for the [Replay][google.cloud.policysimulator.v1.Replay].
.google.cloud.policysimulator.v1.ReplayConfig.LogSource log_source = 2;getLogSourceValue in interface ReplayConfigOrBuilderpublic ReplayConfig.Builder setLogSourceValue(int value)
The logs to use as input for the [Replay][google.cloud.policysimulator.v1.Replay].
.google.cloud.policysimulator.v1.ReplayConfig.LogSource log_source = 2;value - The enum numeric value on the wire for logSource to set.public ReplayConfig.LogSource getLogSource()
The logs to use as input for the [Replay][google.cloud.policysimulator.v1.Replay].
.google.cloud.policysimulator.v1.ReplayConfig.LogSource log_source = 2;getLogSource in interface ReplayConfigOrBuilderpublic ReplayConfig.Builder setLogSource(ReplayConfig.LogSource value)
The logs to use as input for the [Replay][google.cloud.policysimulator.v1.Replay].
.google.cloud.policysimulator.v1.ReplayConfig.LogSource log_source = 2;value - The logSource to set.public ReplayConfig.Builder clearLogSource()
The logs to use as input for the [Replay][google.cloud.policysimulator.v1.Replay].
.google.cloud.policysimulator.v1.ReplayConfig.LogSource log_source = 2;public final ReplayConfig.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ReplayConfig.Builder>public final ReplayConfig.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ReplayConfig.Builder>Copyright © 2023 Google LLC. All rights reserved.