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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description InvocationPolicyOuterClass.AllowValuesgetAllowValues().blaze.invocation_policy.AllowValues allow_values = 6;InvocationPolicyOuterClass.AllowValuesOrBuildergetAllowValuesOrBuilder().blaze.invocation_policy.AllowValues allow_values = 6;java.lang.StringgetCommands(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.com.google.protobuf.ByteStringgetCommandsBytes(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.intgetCommandsCount()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.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.InvocationPolicyOuterClass.DisallowValuesgetDisallowValues().blaze.invocation_policy.DisallowValues disallow_values = 5;InvocationPolicyOuterClass.DisallowValuesOrBuildergetDisallowValuesOrBuilder().blaze.invocation_policy.DisallowValues disallow_values = 5;java.lang.StringgetFlagName()The name of the flag to enforce this policy on.com.google.protobuf.ByteStringgetFlagNameBytes()The name of the flag to enforce this policy on.InvocationPolicyOuterClass.FlagPolicy.OperationCasegetOperationCase()InvocationPolicyOuterClass.SetValuegetSetValue().blaze.invocation_policy.SetValue set_value = 3;InvocationPolicyOuterClass.SetValueOrBuildergetSetValueOrBuilder().blaze.invocation_policy.SetValue set_value = 3;InvocationPolicyOuterClass.UseDefaultgetUseDefault().blaze.invocation_policy.UseDefault use_default = 4;InvocationPolicyOuterClass.UseDefaultOrBuildergetUseDefaultOrBuilder().blaze.invocation_policy.UseDefault use_default = 4;booleanhasAllowValues().blaze.invocation_policy.AllowValues allow_values = 6;booleanhasDisallowValues().blaze.invocation_policy.DisallowValues disallow_values = 5;booleanhasFlagName()The name of the flag to enforce this policy on.booleanhasSetValue().blaze.invocation_policy.SetValue set_value = 3;booleanhasUseDefault().blaze.invocation_policy.UseDefault use_default = 4;-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
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.
-
getSetValue
InvocationPolicyOuterClass.SetValue getSetValue()
.blaze.invocation_policy.SetValue set_value = 3;- Returns:
- The setValue.
-
getSetValueOrBuilder
InvocationPolicyOuterClass.SetValueOrBuilder 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
InvocationPolicyOuterClass.UseDefault getUseDefault()
.blaze.invocation_policy.UseDefault use_default = 4;- Returns:
- The useDefault.
-
getUseDefaultOrBuilder
InvocationPolicyOuterClass.UseDefaultOrBuilder 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
InvocationPolicyOuterClass.DisallowValues getDisallowValues()
.blaze.invocation_policy.DisallowValues disallow_values = 5;- Returns:
- The disallowValues.
-
getDisallowValuesOrBuilder
InvocationPolicyOuterClass.DisallowValuesOrBuilder 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
InvocationPolicyOuterClass.AllowValues getAllowValues()
.blaze.invocation_policy.AllowValues allow_values = 6;- Returns:
- The allowValues.
-
getAllowValuesOrBuilder
InvocationPolicyOuterClass.AllowValuesOrBuilder getAllowValuesOrBuilder()
.blaze.invocation_policy.AllowValues allow_values = 6;
-
getOperationCase
InvocationPolicyOuterClass.FlagPolicy.OperationCase getOperationCase()
-
-