Class AnalyzerOrgPolicy.Rule.Builder

    • 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<AnalyzerOrgPolicy.Rule.Builder>
      • clear

        public AnalyzerOrgPolicy.Rule.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.GeneratedMessageV3.Builder<AnalyzerOrgPolicy.Rule.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<AnalyzerOrgPolicy.Rule.Builder>
      • getDefaultInstanceForType

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

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

        public AnalyzerOrgPolicy.Rule buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public AnalyzerOrgPolicy.Rule.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<AnalyzerOrgPolicy.Rule.Builder>
      • clearField

        public AnalyzerOrgPolicy.Rule.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<AnalyzerOrgPolicy.Rule.Builder>
      • clearOneof

        public AnalyzerOrgPolicy.Rule.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<AnalyzerOrgPolicy.Rule.Builder>
      • setRepeatedField

        public AnalyzerOrgPolicy.Rule.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<AnalyzerOrgPolicy.Rule.Builder>
      • addRepeatedField

        public AnalyzerOrgPolicy.Rule.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                               Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AnalyzerOrgPolicy.Rule.Builder>
      • isInitialized

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

        public AnalyzerOrgPolicy.Rule.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<AnalyzerOrgPolicy.Rule.Builder>
        Throws:
        IOException
      • hasValues

        public boolean hasValues()
         List of values to be used for this PolicyRule. This field can be set
         only in Policies for list constraints.
         
        .google.cloud.asset.v1.AnalyzerOrgPolicy.Rule.StringValues values = 3;
        Specified by:
        hasValues in interface AnalyzerOrgPolicy.RuleOrBuilder
        Returns:
        Whether the values field is set.
      • clearValues

        public AnalyzerOrgPolicy.Rule.Builder clearValues()
         List of values to be used for this PolicyRule. This field can be set
         only in Policies for list constraints.
         
        .google.cloud.asset.v1.AnalyzerOrgPolicy.Rule.StringValues values = 3;
      • getValuesBuilder

        public AnalyzerOrgPolicy.Rule.StringValues.Builder getValuesBuilder()
         List of values to be used for this PolicyRule. This field can be set
         only in Policies for list constraints.
         
        .google.cloud.asset.v1.AnalyzerOrgPolicy.Rule.StringValues values = 3;
      • hasAllowAll

        public boolean hasAllowAll()
         Setting this to true means that all values are allowed. This field can
         be set only in Policies for list constraints.
         
        bool allow_all = 4;
        Specified by:
        hasAllowAll in interface AnalyzerOrgPolicy.RuleOrBuilder
        Returns:
        Whether the allowAll field is set.
      • getAllowAll

        public boolean getAllowAll()
         Setting this to true means that all values are allowed. This field can
         be set only in Policies for list constraints.
         
        bool allow_all = 4;
        Specified by:
        getAllowAll in interface AnalyzerOrgPolicy.RuleOrBuilder
        Returns:
        The allowAll.
      • setAllowAll

        public AnalyzerOrgPolicy.Rule.Builder setAllowAll​(boolean value)
         Setting this to true means that all values are allowed. This field can
         be set only in Policies for list constraints.
         
        bool allow_all = 4;
        Parameters:
        value - The allowAll to set.
        Returns:
        This builder for chaining.
      • clearAllowAll

        public AnalyzerOrgPolicy.Rule.Builder clearAllowAll()
         Setting this to true means that all values are allowed. This field can
         be set only in Policies for list constraints.
         
        bool allow_all = 4;
        Returns:
        This builder for chaining.
      • hasDenyAll

        public boolean hasDenyAll()
         Setting this to true means that all values are denied. This field can
         be set only in Policies for list constraints.
         
        bool deny_all = 5;
        Specified by:
        hasDenyAll in interface AnalyzerOrgPolicy.RuleOrBuilder
        Returns:
        Whether the denyAll field is set.
      • getDenyAll

        public boolean getDenyAll()
         Setting this to true means that all values are denied. This field can
         be set only in Policies for list constraints.
         
        bool deny_all = 5;
        Specified by:
        getDenyAll in interface AnalyzerOrgPolicy.RuleOrBuilder
        Returns:
        The denyAll.
      • setDenyAll

        public AnalyzerOrgPolicy.Rule.Builder setDenyAll​(boolean value)
         Setting this to true means that all values are denied. This field can
         be set only in Policies for list constraints.
         
        bool deny_all = 5;
        Parameters:
        value - The denyAll to set.
        Returns:
        This builder for chaining.
      • clearDenyAll

        public AnalyzerOrgPolicy.Rule.Builder clearDenyAll()
         Setting this to true means that all values are denied. This field can
         be set only in Policies for list constraints.
         
        bool deny_all = 5;
        Returns:
        This builder for chaining.
      • hasEnforce

        public boolean hasEnforce()
         If `true`, then the `Policy` is enforced. If `false`, then any
         configuration is acceptable.
         This field can be set only in Policies for boolean constraints.
         
        bool enforce = 6;
        Specified by:
        hasEnforce in interface AnalyzerOrgPolicy.RuleOrBuilder
        Returns:
        Whether the enforce field is set.
      • getEnforce

        public boolean getEnforce()
         If `true`, then the `Policy` is enforced. If `false`, then any
         configuration is acceptable.
         This field can be set only in Policies for boolean constraints.
         
        bool enforce = 6;
        Specified by:
        getEnforce in interface AnalyzerOrgPolicy.RuleOrBuilder
        Returns:
        The enforce.
      • setEnforce

        public AnalyzerOrgPolicy.Rule.Builder setEnforce​(boolean value)
         If `true`, then the `Policy` is enforced. If `false`, then any
         configuration is acceptable.
         This field can be set only in Policies for boolean constraints.
         
        bool enforce = 6;
        Parameters:
        value - The enforce to set.
        Returns:
        This builder for chaining.
      • clearEnforce

        public AnalyzerOrgPolicy.Rule.Builder clearEnforce()
         If `true`, then the `Policy` is enforced. If `false`, then any
         configuration is acceptable.
         This field can be set only in Policies for boolean constraints.
         
        bool enforce = 6;
        Returns:
        This builder for chaining.
      • hasCondition

        public boolean hasCondition()
         The evaluating condition for this rule.
         
        .google.type.Expr condition = 7;
        Specified by:
        hasCondition in interface AnalyzerOrgPolicy.RuleOrBuilder
        Returns:
        Whether the condition field is set.
      • getCondition

        public com.google.type.Expr getCondition()
         The evaluating condition for this rule.
         
        .google.type.Expr condition = 7;
        Specified by:
        getCondition in interface AnalyzerOrgPolicy.RuleOrBuilder
        Returns:
        The condition.
      • setCondition

        public AnalyzerOrgPolicy.Rule.Builder setCondition​(com.google.type.Expr value)
         The evaluating condition for this rule.
         
        .google.type.Expr condition = 7;
      • setCondition

        public AnalyzerOrgPolicy.Rule.Builder setCondition​(com.google.type.Expr.Builder builderForValue)
         The evaluating condition for this rule.
         
        .google.type.Expr condition = 7;
      • mergeCondition

        public AnalyzerOrgPolicy.Rule.Builder mergeCondition​(com.google.type.Expr value)
         The evaluating condition for this rule.
         
        .google.type.Expr condition = 7;
      • getConditionBuilder

        public com.google.type.Expr.Builder getConditionBuilder()
         The evaluating condition for this rule.
         
        .google.type.Expr condition = 7;
      • setUnknownFields

        public final AnalyzerOrgPolicy.Rule.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<AnalyzerOrgPolicy.Rule.Builder>
      • mergeUnknownFields

        public final AnalyzerOrgPolicy.Rule.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<AnalyzerOrgPolicy.Rule.Builder>