Interface PolicyOrBuilder

  • All Superinterfaces:
    com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
    All Known Implementing Classes:
    Policy, Policy.Builder

    public interface PolicyOrBuilder
    extends com.google.protobuf.MessageOrBuilder
    • Method Detail

      • getVersion

        int getVersion()
         Version of the `Policy`. Default version is 0;
         
        int32 version = 1;
        Returns:
        The version.
      • getConstraint

        String getConstraint()
         The name of the `Constraint` the `Policy` is configuring, for example,
         `constraints/serviceuser.services`.
        
         Immutable after creation.
         
        string constraint = 2;
        Returns:
        The constraint.
      • getConstraintBytes

        com.google.protobuf.ByteString getConstraintBytes()
         The name of the `Constraint` the `Policy` is configuring, for example,
         `constraints/serviceuser.services`.
        
         Immutable after creation.
         
        string constraint = 2;
        Returns:
        The bytes for constraint.
      • getEtag

        com.google.protobuf.ByteString getEtag()
         An opaque tag indicating the current version of the `Policy`, used for
         concurrency control.
        
         When the `Policy` is returned from either a `GetPolicy` or a
         `ListOrgPolicy` request, this `etag` indicates the version of the current
         `Policy` to use when executing a read-modify-write loop.
        
         When the `Policy` is returned from a `GetEffectivePolicy` request, the
         `etag` will be unset.
        
         When the `Policy` is used in a `SetOrgPolicy` method, use the `etag` value
         that was returned from a `GetOrgPolicy` request as part of a
         read-modify-write loop for concurrency control. Not setting the `etag`in a
         `SetOrgPolicy` request will result in an unconditional write of the
         `Policy`.
         
        bytes etag = 3;
        Returns:
        The etag.
      • hasUpdateTime

        boolean hasUpdateTime()
         The time stamp the `Policy` was previously updated. This is set by the
         server, not specified by the caller, and represents the last time a call to
         `SetOrgPolicy` was made for that `Policy`. Any value set by the client will
         be ignored.
         
        .google.protobuf.Timestamp update_time = 4;
        Returns:
        Whether the updateTime field is set.
      • getUpdateTime

        com.google.protobuf.Timestamp getUpdateTime()
         The time stamp the `Policy` was previously updated. This is set by the
         server, not specified by the caller, and represents the last time a call to
         `SetOrgPolicy` was made for that `Policy`. Any value set by the client will
         be ignored.
         
        .google.protobuf.Timestamp update_time = 4;
        Returns:
        The updateTime.
      • getUpdateTimeOrBuilder

        com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
         The time stamp the `Policy` was previously updated. This is set by the
         server, not specified by the caller, and represents the last time a call to
         `SetOrgPolicy` was made for that `Policy`. Any value set by the client will
         be ignored.
         
        .google.protobuf.Timestamp update_time = 4;
      • hasListPolicy

        boolean hasListPolicy()
         List of values either allowed or disallowed.
         
        .google.cloud.orgpolicy.v1.Policy.ListPolicy list_policy = 5;
        Returns:
        Whether the listPolicy field is set.
      • getListPolicy

        Policy.ListPolicy getListPolicy()
         List of values either allowed or disallowed.
         
        .google.cloud.orgpolicy.v1.Policy.ListPolicy list_policy = 5;
        Returns:
        The listPolicy.
      • getListPolicyOrBuilder

        Policy.ListPolicyOrBuilder getListPolicyOrBuilder()
         List of values either allowed or disallowed.
         
        .google.cloud.orgpolicy.v1.Policy.ListPolicy list_policy = 5;
      • hasBooleanPolicy

        boolean hasBooleanPolicy()
         For boolean `Constraints`, whether to enforce the `Constraint` or not.
         
        .google.cloud.orgpolicy.v1.Policy.BooleanPolicy boolean_policy = 6;
        Returns:
        Whether the booleanPolicy field is set.
      • getBooleanPolicy

        Policy.BooleanPolicy getBooleanPolicy()
         For boolean `Constraints`, whether to enforce the `Constraint` or not.
         
        .google.cloud.orgpolicy.v1.Policy.BooleanPolicy boolean_policy = 6;
        Returns:
        The booleanPolicy.
      • getBooleanPolicyOrBuilder

        Policy.BooleanPolicyOrBuilder getBooleanPolicyOrBuilder()
         For boolean `Constraints`, whether to enforce the `Constraint` or not.
         
        .google.cloud.orgpolicy.v1.Policy.BooleanPolicy boolean_policy = 6;
      • hasRestoreDefault

        boolean hasRestoreDefault()
         Restores the default behavior of the constraint; independent of
         `Constraint` type.
         
        .google.cloud.orgpolicy.v1.Policy.RestoreDefault restore_default = 7;
        Returns:
        Whether the restoreDefault field is set.
      • getRestoreDefault

        Policy.RestoreDefault getRestoreDefault()
         Restores the default behavior of the constraint; independent of
         `Constraint` type.
         
        .google.cloud.orgpolicy.v1.Policy.RestoreDefault restore_default = 7;
        Returns:
        The restoreDefault.
      • getRestoreDefaultOrBuilder

        Policy.RestoreDefaultOrBuilder getRestoreDefaultOrBuilder()
         Restores the default behavior of the constraint; independent of
         `Constraint` type.
         
        .google.cloud.orgpolicy.v1.Policy.RestoreDefault restore_default = 7;