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.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(ReplayConfig other)
ReplayConfig.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
ReplayConfig.Builder
mergeFrom(com.google.protobuf.Message 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)
-
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:
internalGetMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ReplayConfig.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ReplayConfig.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<ReplayConfig.Builder>
-
clear
public ReplayConfig.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<ReplayConfig.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<ReplayConfig.Builder>
-
getDefaultInstanceForType
public ReplayConfig getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public ReplayConfig build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ReplayConfig buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public ReplayConfig.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<ReplayConfig.Builder>
-
setField
public ReplayConfig.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ReplayConfig.Builder>
-
clearField
public ReplayConfig.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ReplayConfig.Builder>
-
clearOneof
public ReplayConfig.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<ReplayConfig.Builder>
-
setRepeatedField
public ReplayConfig.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ReplayConfig.Builder>
-
addRepeatedField
public ReplayConfig.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ReplayConfig.Builder>
-
mergeFrom
public ReplayConfig.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ReplayConfig.Builder>
-
mergeFrom
public ReplayConfig.Builder mergeFrom(ReplayConfig other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ReplayConfig.Builder>
- Throws:
IOException
-
getPolicyOverlayCount
public int getPolicyOverlayCount()
Description copied from interface:ReplayConfigOrBuilder
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:
getPolicyOverlayCount
in 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:
containsPolicyOverlay
in interfaceReplayConfigOrBuilder
-
getPolicyOverlay
@Deprecated public Map<String,com.google.iam.v1.Policy> getPolicyOverlay()
Deprecated.UsegetPolicyOverlayMap()
instead.- Specified by:
getPolicyOverlay
in 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:
getPolicyOverlayMap
in 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:
getPolicyOverlayOrDefault
in 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:
getPolicyOverlayOrThrow
in 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:
getLogSourceValue
in 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:
getLogSource
in 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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ReplayConfig.Builder>
-
mergeUnknownFields
public final ReplayConfig.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ReplayConfig.Builder>
-
-