Class 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 type google.cloud.policysimulator.v1.ReplayConfig
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetMapField

        protected com.google.protobuf.MapField internalGetMapField​(int number)
        Overrides:
        internalGetMapField in class com.google.protobuf.GeneratedMessageV3.Builder<ReplayConfig.Builder>
      • internalGetMutableMapField

        protected com.google.protobuf.MapField internalGetMutableMapField​(int number)
        Overrides:
        internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<ReplayConfig.Builder>
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<ReplayConfig.Builder>
      • clear

        public ReplayConfig.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<ReplayConfig.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<ReplayConfig.Builder>
      • getDefaultInstanceForType

        public ReplayConfig getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public ReplayConfig build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public ReplayConfig buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public ReplayConfig.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<ReplayConfig.Builder>
      • setField

        public ReplayConfig.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                             Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<ReplayConfig.Builder>
      • clearField

        public ReplayConfig.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<ReplayConfig.Builder>
      • clearOneof

        public ReplayConfig.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.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 interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ReplayConfig.Builder>
      • addRepeatedField

        public ReplayConfig.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                     Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ReplayConfig.Builder>
      • mergeFrom

        public ReplayConfig.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ReplayConfig.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.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 interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.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 interface ReplayConfigOrBuilder
      • 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 interface ReplayConfigOrBuilder
      • 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 interface ReplayConfigOrBuilder
      • 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 interface ReplayConfigOrBuilder
      • 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 interface ReplayConfigOrBuilder
      • 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 interface ReplayConfigOrBuilder
        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 interface ReplayConfigOrBuilder
        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 interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ReplayConfig.Builder>
      • mergeUnknownFields

        public final ReplayConfig.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ReplayConfig.Builder>