Interface InvocationPolicyOuterClass.FlagPolicyOrBuilder

    • Method Detail

      • hasFlagName

        boolean hasFlagName()
         The name of the flag to enforce this policy on.
         Note that this should be the full name of the flag, not the abbreviated
         name of the flag. If the user specifies the abbreviated name of a flag,
         that flag will be matched using its full name.
         The "no" prefix will not be parsed, so for boolean flags, use
         the flag's full name and explicitly set it to true or false.
         
        optional string flag_name = 1;
        Returns:
        Whether the flagName field is set.
      • getFlagName

        java.lang.String getFlagName()
         The name of the flag to enforce this policy on.
         Note that this should be the full name of the flag, not the abbreviated
         name of the flag. If the user specifies the abbreviated name of a flag,
         that flag will be matched using its full name.
         The "no" prefix will not be parsed, so for boolean flags, use
         the flag's full name and explicitly set it to true or false.
         
        optional string flag_name = 1;
        Returns:
        The flagName.
      • getFlagNameBytes

        com.google.protobuf.ByteString getFlagNameBytes()
         The name of the flag to enforce this policy on.
         Note that this should be the full name of the flag, not the abbreviated
         name of the flag. If the user specifies the abbreviated name of a flag,
         that flag will be matched using its full name.
         The "no" prefix will not be parsed, so for boolean flags, use
         the flag's full name and explicitly set it to true or false.
         
        optional string flag_name = 1;
        Returns:
        The bytes for flagName.
      • getCommandsList

        java.util.List<java.lang.String> getCommandsList()
         If set, this flag policy is applied only if one of the given commands or a
         command that inherits from one of the given commands is being run. For
         instance, if "build" is one of the commands here, then this policy will
         apply to any command that inherits from build, such as info, coverage, or
         test. If empty, this flag policy is applied for all commands. This allows
         the policy setter to add all policies to the proto without having to
         determine which Bazel command the user is actually running. Additionally,
         Bazel allows multiple flags to be defined by the same name, and the
         specific flag definition is determined by the command.
         
        repeated string commands = 2;
        Returns:
        A list containing the commands.
      • getCommandsCount

        int getCommandsCount()
         If set, this flag policy is applied only if one of the given commands or a
         command that inherits from one of the given commands is being run. For
         instance, if "build" is one of the commands here, then this policy will
         apply to any command that inherits from build, such as info, coverage, or
         test. If empty, this flag policy is applied for all commands. This allows
         the policy setter to add all policies to the proto without having to
         determine which Bazel command the user is actually running. Additionally,
         Bazel allows multiple flags to be defined by the same name, and the
         specific flag definition is determined by the command.
         
        repeated string commands = 2;
        Returns:
        The count of commands.
      • getCommands

        java.lang.String getCommands​(int index)
         If set, this flag policy is applied only if one of the given commands or a
         command that inherits from one of the given commands is being run. For
         instance, if "build" is one of the commands here, then this policy will
         apply to any command that inherits from build, such as info, coverage, or
         test. If empty, this flag policy is applied for all commands. This allows
         the policy setter to add all policies to the proto without having to
         determine which Bazel command the user is actually running. Additionally,
         Bazel allows multiple flags to be defined by the same name, and the
         specific flag definition is determined by the command.
         
        repeated string commands = 2;
        Parameters:
        index - The index of the element to return.
        Returns:
        The commands at the given index.
      • getCommandsBytes

        com.google.protobuf.ByteString getCommandsBytes​(int index)
         If set, this flag policy is applied only if one of the given commands or a
         command that inherits from one of the given commands is being run. For
         instance, if "build" is one of the commands here, then this policy will
         apply to any command that inherits from build, such as info, coverage, or
         test. If empty, this flag policy is applied for all commands. This allows
         the policy setter to add all policies to the proto without having to
         determine which Bazel command the user is actually running. Additionally,
         Bazel allows multiple flags to be defined by the same name, and the
         specific flag definition is determined by the command.
         
        repeated string commands = 2;
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the commands at the given index.
      • hasSetValue

        boolean hasSetValue()
        .blaze.invocation_policy.SetValue set_value = 3;
        Returns:
        Whether the setValue field is set.
      • hasUseDefault

        boolean hasUseDefault()
        .blaze.invocation_policy.UseDefault use_default = 4;
        Returns:
        Whether the useDefault field is set.
      • hasDisallowValues

        boolean hasDisallowValues()
        .blaze.invocation_policy.DisallowValues disallow_values = 5;
        Returns:
        Whether the disallowValues field is set.
      • hasAllowValues

        boolean hasAllowValues()
        .blaze.invocation_policy.AllowValues allow_values = 6;
        Returns:
        Whether the allowValues field is set.