Class ReplayConfig.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<ReplayConfig.Builder>
-
- com.google.cloud.policysimulator.v1.ReplayConfig.Builder
-
- All Implemented Interfaces:
ReplayConfigOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- ReplayConfig
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 typegoogle.cloud.policysimulator.v1.ReplayConfig
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ReplayConfig.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)ReplayConfigbuild()ReplayConfigbuildPartial()ReplayConfig.Builderclear()ReplayConfig.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)ReplayConfig.BuilderclearLogSource()The logs to use as input for the [Replay][google.cloud.policysimulator.v1.Replay].ReplayConfig.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)ReplayConfig.BuilderclearPolicyOverlay()ReplayConfig.Builderclone()booleancontainsPolicyOverlay(String key)A mapping of the resources that you want to simulate policies for and the policies that you want to simulate.ReplayConfiggetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()ReplayConfig.LogSourcegetLogSource()The logs to use as input for the [Replay][google.cloud.policysimulator.v1.Replay].intgetLogSourceValue()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.intgetPolicyOverlayCount()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.PolicygetPolicyOverlayOrDefault(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.PolicygetPolicyOverlayOrThrow(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.FieldAccessorTableinternalGetFieldAccessorTable()protected com.google.protobuf.MapFieldinternalGetMapField(int number)protected com.google.protobuf.MapFieldinternalGetMutableMapField(int number)booleanisInitialized()ReplayConfig.BuildermergeFrom(ReplayConfig other)ReplayConfig.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)ReplayConfig.BuildermergeFrom(com.google.protobuf.Message other)ReplayConfig.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)ReplayConfig.BuilderputAllPolicyOverlay(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.BuilderputPolicyOverlay(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.BuilderremovePolicyOverlay(String key)A mapping of the resources that you want to simulate policies for and the policies that you want to simulate.ReplayConfig.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)ReplayConfig.BuildersetLogSource(ReplayConfig.LogSource value)The logs to use as input for the [Replay][google.cloud.policysimulator.v1.Replay].ReplayConfig.BuildersetLogSourceValue(int value)The logs to use as input for the [Replay][google.cloud.policysimulator.v1.Replay].ReplayConfig.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)ReplayConfig.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ReplayConfig.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ReplayConfig.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<ReplayConfig.Builder>
-
clear
public ReplayConfig.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<ReplayConfig.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<ReplayConfig.Builder>
-
getDefaultInstanceForType
public ReplayConfig getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public ReplayConfig build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ReplayConfig buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public ReplayConfig.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<ReplayConfig.Builder>
-
setField
public ReplayConfig.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ReplayConfig.Builder>
-
clearField
public ReplayConfig.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ReplayConfig.Builder>
-
clearOneof
public ReplayConfig.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<ReplayConfig.Builder>
-
setRepeatedField
public ReplayConfig.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ReplayConfig.Builder>
-
addRepeatedField
public ReplayConfig.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ReplayConfig.Builder>
-
mergeFrom
public ReplayConfig.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ReplayConfig.Builder>
-
mergeFrom
public ReplayConfig.Builder mergeFrom(ReplayConfig other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<ReplayConfig.Builder>
-
mergeFrom
public ReplayConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ReplayConfig.Builder>- Throws:
IOException
-
getPolicyOverlayCount
public int getPolicyOverlayCount()
Description copied from interface: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;- Specified by:
getPolicyOverlayCountin interfaceReplayConfigOrBuilder
-
containsPolicyOverlay
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][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;- Specified by:
containsPolicyOverlayin interfaceReplayConfigOrBuilder
-
getPolicyOverlay
@Deprecated public Map<String,com.google.iam.v1.Policy> getPolicyOverlay()
Deprecated.UsegetPolicyOverlayMap()instead.- Specified by:
getPolicyOverlayin interfaceReplayConfigOrBuilder
-
getPolicyOverlayMap
public 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;- Specified by:
getPolicyOverlayMapin interfaceReplayConfigOrBuilder
-
getPolicyOverlayOrDefault
public 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;- Specified by:
getPolicyOverlayOrDefaultin interfaceReplayConfigOrBuilder
-
getPolicyOverlayOrThrow
public 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;- Specified by:
getPolicyOverlayOrThrowin interfaceReplayConfigOrBuilder
-
clearPolicyOverlay
public ReplayConfig.Builder clearPolicyOverlay()
-
removePolicyOverlay
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;
-
getMutablePolicyOverlay
@Deprecated public Map<String,com.google.iam.v1.Policy> getMutablePolicyOverlay()
Deprecated.Use alternate mutation accessors instead.
-
putPolicyOverlay
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;
-
putAllPolicyOverlay
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;
-
getLogSourceValue
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;- Specified by:
getLogSourceValuein interfaceReplayConfigOrBuilder- Returns:
- The enum numeric value on the wire for logSource.
-
setLogSourceValue
public 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;- Parameters:
value- The enum numeric value on the wire for logSource to set.- Returns:
- This builder for chaining.
-
getLogSource
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;- Specified by:
getLogSourcein interfaceReplayConfigOrBuilder- Returns:
- The logSource.
-
setLogSource
public 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;- Parameters:
value- The logSource to set.- Returns:
- This builder for chaining.
-
clearLogSource
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;- Returns:
- This builder for chaining.
-
setUnknownFields
public final ReplayConfig.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ReplayConfig.Builder>
-
mergeUnknownFields
public final ReplayConfig.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ReplayConfig.Builder>
-
-