Class ReplayConfig.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.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.GeneratedMessage.Builder<ReplayConfig.Builder> implements ReplayConfigOrBuilder
 The configuration used for a
 [Replay][google.cloud.policysimulator.v1.Replay].
 
Protobuf type google.cloud.policysimulator.v1.ReplayConfig
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<ReplayConfig.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<ReplayConfig.Builder>
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.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.GeneratedMessage.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.GeneratedMessage.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
    • 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>
    • mergeFrom

      public ReplayConfig.Builder mergeFrom(ReplayConfig other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.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
    • getPolicyOverlay

      @Deprecated public Map<String,Policy> getPolicyOverlay()
      Deprecated.
      Specified by:
      getPolicyOverlay in interface ReplayConfigOrBuilder
    • 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][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 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][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 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
    • 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,Policy> getMutablePolicyOverlay()
      Deprecated.
      Use alternate mutation accessors instead.
    • putPolicyOverlay

      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][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,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;
    • putPolicyOverlayBuilderIfAbsent

      public Policy.Builder putPolicyOverlayBuilderIfAbsent(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;
    • 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.