Class Constraint.BooleanConstraint.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Constraint.BooleanConstraint.Builder>
com.google.cloud.orgpolicy.v2.Constraint.BooleanConstraint.Builder
All Implemented Interfaces:
Constraint.BooleanConstraintOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Constraint.BooleanConstraint

public static final class Constraint.BooleanConstraint.Builder extends com.google.protobuf.GeneratedMessage.Builder<Constraint.BooleanConstraint.Builder> implements Constraint.BooleanConstraintOrBuilder
 A constraint type is enforced or not enforced, which is configured in the
 [`PolicyRule`][google.cloud.orgpolicy.v2.PolicySpec.PolicyRule].

 If `customConstraintDefinition` is defined, this constraint is a managed
 constraint.
 
Protobuf type google.cloud.orgpolicy.v2.Constraint.BooleanConstraint
  • 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.BooleanConstraint.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.BooleanConstraint.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.BooleanConstraint.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

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

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

      public boolean hasCustomConstraintDefinition()
       Custom constraint definition. Defines this as a managed constraint.
       
      .google.cloud.orgpolicy.v2.Constraint.CustomConstraintDefinition custom_constraint_definition = 1;
      Specified by:
      hasCustomConstraintDefinition in interface Constraint.BooleanConstraintOrBuilder
      Returns:
      Whether the customConstraintDefinition field is set.
    • getCustomConstraintDefinition

      public Constraint.CustomConstraintDefinition getCustomConstraintDefinition()
       Custom constraint definition. Defines this as a managed constraint.
       
      .google.cloud.orgpolicy.v2.Constraint.CustomConstraintDefinition custom_constraint_definition = 1;
      Specified by:
      getCustomConstraintDefinition in interface Constraint.BooleanConstraintOrBuilder
      Returns:
      The customConstraintDefinition.
    • setCustomConstraintDefinition

       Custom constraint definition. Defines this as a managed constraint.
       
      .google.cloud.orgpolicy.v2.Constraint.CustomConstraintDefinition custom_constraint_definition = 1;
    • setCustomConstraintDefinition

      public Constraint.BooleanConstraint.Builder setCustomConstraintDefinition(Constraint.CustomConstraintDefinition.Builder builderForValue)
       Custom constraint definition. Defines this as a managed constraint.
       
      .google.cloud.orgpolicy.v2.Constraint.CustomConstraintDefinition custom_constraint_definition = 1;
    • mergeCustomConstraintDefinition

      public Constraint.BooleanConstraint.Builder mergeCustomConstraintDefinition(Constraint.CustomConstraintDefinition value)
       Custom constraint definition. Defines this as a managed constraint.
       
      .google.cloud.orgpolicy.v2.Constraint.CustomConstraintDefinition custom_constraint_definition = 1;
    • clearCustomConstraintDefinition

      public Constraint.BooleanConstraint.Builder clearCustomConstraintDefinition()
       Custom constraint definition. Defines this as a managed constraint.
       
      .google.cloud.orgpolicy.v2.Constraint.CustomConstraintDefinition custom_constraint_definition = 1;
    • getCustomConstraintDefinitionBuilder

      public Constraint.CustomConstraintDefinition.Builder getCustomConstraintDefinitionBuilder()
       Custom constraint definition. Defines this as a managed constraint.
       
      .google.cloud.orgpolicy.v2.Constraint.CustomConstraintDefinition custom_constraint_definition = 1;
    • getCustomConstraintDefinitionOrBuilder

      public Constraint.CustomConstraintDefinitionOrBuilder getCustomConstraintDefinitionOrBuilder()
       Custom constraint definition. Defines this as a managed constraint.
       
      .google.cloud.orgpolicy.v2.Constraint.CustomConstraintDefinition custom_constraint_definition = 1;
      Specified by:
      getCustomConstraintDefinitionOrBuilder in interface Constraint.BooleanConstraintOrBuilder