Interface InvocationPolicyOuterClass.FlagPolicyOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
InvocationPolicyOuterClass.FlagPolicy, InvocationPolicyOuterClass.FlagPolicy.Builder
Enclosing class:
InvocationPolicyOuterClass

public static interface InvocationPolicyOuterClass.FlagPolicyOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Details

    • 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

      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

      List<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

      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.
    • getSetValue

      .blaze.invocation_policy.SetValue set_value = 3;
      Returns:
      The setValue.
    • getSetValueOrBuilder

      .blaze.invocation_policy.SetValue set_value = 3;
    • hasUseDefault

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

      .blaze.invocation_policy.UseDefault use_default = 4;
      Returns:
      The useDefault.
    • getUseDefaultOrBuilder

      .blaze.invocation_policy.UseDefault use_default = 4;
    • hasDisallowValues

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

      .blaze.invocation_policy.DisallowValues disallow_values = 5;
      Returns:
      The disallowValues.
    • getDisallowValuesOrBuilder

      .blaze.invocation_policy.DisallowValues disallow_values = 5;
    • hasAllowValues

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

      .blaze.invocation_policy.AllowValues allow_values = 6;
      Returns:
      The allowValues.
    • getAllowValuesOrBuilder

      .blaze.invocation_policy.AllowValues allow_values = 6;
    • getOperationCase