Class Constraint.ListConstraint.Builder

  • All Implemented Interfaces:
    Constraint.ListConstraintOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    Constraint.ListConstraint

    public static final class Constraint.ListConstraint.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<Constraint.ListConstraint.Builder>
    implements Constraint.ListConstraintOrBuilder
     A `Constraint` that allows or disallows a list of string values, which are
     configured by an Organization's policy administrator with a `Policy`.
     
    Protobuf type google.cloud.orgpolicy.v2.Constraint.ListConstraint
    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Constraint.ListConstraint.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<Constraint.ListConstraint.Builder>
      • getDefaultInstanceForType

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

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

        public Constraint.ListConstraint buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • setRepeatedField

        public Constraint.ListConstraint.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<Constraint.ListConstraint.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Constraint.ListConstraint.Builder>
      • mergeFrom

        public Constraint.ListConstraint.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<Constraint.ListConstraint.Builder>
        Throws:
        IOException
      • getSupportsIn

        public boolean getSupportsIn()
         Indicates whether values grouped into categories can be used in
         `Policy.allowed_values` and `Policy.denied_values`. For example,
         `"in:Python"` would match any value in the 'Python' group.
         
        bool supports_in = 1;
        Specified by:
        getSupportsIn in interface Constraint.ListConstraintOrBuilder
        Returns:
        The supportsIn.
      • setSupportsIn

        public Constraint.ListConstraint.Builder setSupportsIn​(boolean value)
         Indicates whether values grouped into categories can be used in
         `Policy.allowed_values` and `Policy.denied_values`. For example,
         `"in:Python"` would match any value in the 'Python' group.
         
        bool supports_in = 1;
        Parameters:
        value - The supportsIn to set.
        Returns:
        This builder for chaining.
      • clearSupportsIn

        public Constraint.ListConstraint.Builder clearSupportsIn()
         Indicates whether values grouped into categories can be used in
         `Policy.allowed_values` and `Policy.denied_values`. For example,
         `"in:Python"` would match any value in the 'Python' group.
         
        bool supports_in = 1;
        Returns:
        This builder for chaining.
      • getSupportsUnder

        public boolean getSupportsUnder()
         Indicates whether subtrees of Cloud Resource Manager resource hierarchy
         can be used in `Policy.allowed_values` and `Policy.denied_values`. For
         example, `"under:folders/123"` would match any resource under the
         'folders/123' folder.
         
        bool supports_under = 2;
        Specified by:
        getSupportsUnder in interface Constraint.ListConstraintOrBuilder
        Returns:
        The supportsUnder.
      • setSupportsUnder

        public Constraint.ListConstraint.Builder setSupportsUnder​(boolean value)
         Indicates whether subtrees of Cloud Resource Manager resource hierarchy
         can be used in `Policy.allowed_values` and `Policy.denied_values`. For
         example, `"under:folders/123"` would match any resource under the
         'folders/123' folder.
         
        bool supports_under = 2;
        Parameters:
        value - The supportsUnder to set.
        Returns:
        This builder for chaining.
      • clearSupportsUnder

        public Constraint.ListConstraint.Builder clearSupportsUnder()
         Indicates whether subtrees of Cloud Resource Manager resource hierarchy
         can be used in `Policy.allowed_values` and `Policy.denied_values`. For
         example, `"under:folders/123"` would match any resource under the
         'folders/123' folder.
         
        bool supports_under = 2;
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final Constraint.ListConstraint.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<Constraint.ListConstraint.Builder>
      • mergeUnknownFields

        public final Constraint.ListConstraint.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<Constraint.ListConstraint.Builder>