Class Constraint.ListConstraint.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Constraint.ListConstraint.Builder>
com.google.cloud.orgpolicy.v2.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.GeneratedMessage.Builder<Constraint.ListConstraint.Builder> implements Constraint.ListConstraintOrBuilder
 A constraint type that allows or disallows a list of string values, which
 are configured in the
 [`PolicyRule`][google.cloud.orgpolicy.v2.PolicySpec.PolicyRule].
 
Protobuf type google.cloud.orgpolicy.v2.Constraint.ListConstraint
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
     
    Indicates whether values grouped into categories can be used in `Policy.allowed_values` and `Policy.denied_values`.
    Indicates whether subtrees of the Resource Manager resource hierarchy can be used in `Policy.allowed_values` and `Policy.denied_values`.
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    boolean
    Indicates whether values grouped into categories can be used in `Policy.allowed_values` and `Policy.denied_values`.
    boolean
    Indicates whether subtrees of the Resource Manager resource hierarchy can be used in `Policy.allowed_values` and `Policy.denied_values`.
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
     
    mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    mergeFrom(com.google.protobuf.Message other)
     
    setSupportsIn(boolean value)
    Indicates whether values grouped into categories can be used in `Policy.allowed_values` and `Policy.denied_values`.
    setSupportsUnder(boolean value)
    Indicates whether subtrees of the Resource Manager resource hierarchy can be used in `Policy.allowed_values` and `Policy.denied_values`.

    Methods inherited from class com.google.protobuf.GeneratedMessage.Builder

    addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, 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

    Methods inherited from interface com.google.protobuf.Message.Builder

    mergeDelimitedFrom, mergeDelimitedFrom

    Methods inherited from interface com.google.protobuf.MessageLite.Builder

    mergeFrom

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • getDescriptor

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

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

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

    • isInitialized

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