Interface InvocationPolicyOuterClass.DisallowValuesOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
InvocationPolicyOuterClass.DisallowValues,InvocationPolicyOuterClass.DisallowValues.Builder
- Enclosing class:
- InvocationPolicyOuterClass
public static interface InvocationPolicyOuterClass.DisallowValuesOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetDisallowedValues(int index)It is an error for the user to use any of these values (that is, the Bazel command will fail), unless new_value or use_default is set.com.google.protobuf.ByteStringgetDisallowedValuesBytes(int index)It is an error for the user to use any of these values (that is, the Bazel command will fail), unless new_value or use_default is set.intgetDisallowedValuesCount()It is an error for the user to use any of these values (that is, the Bazel command will fail), unless new_value or use_default is set.java.util.List<java.lang.String>getDisallowedValuesList()It is an error for the user to use any of these values (that is, the Bazel command will fail), unless new_value or use_default is set.java.lang.StringgetNewValue()If set and if the value of the flag is disallowed (including the default value of the flag if the user doesn't specify a value), use this value as the value of the flag instead of raising an error.com.google.protobuf.ByteStringgetNewValueBytes()If set and if the value of the flag is disallowed (including the default value of the flag if the user doesn't specify a value), use this value as the value of the flag instead of raising an error.InvocationPolicyOuterClass.DisallowValues.ReplacementValueCasegetReplacementValueCase()InvocationPolicyOuterClass.UseDefaultgetUseDefault()If set and if the value of the flag is disallowed, use the default value of the flag instead of raising an error.InvocationPolicyOuterClass.UseDefaultOrBuildergetUseDefaultOrBuilder()If set and if the value of the flag is disallowed, use the default value of the flag instead of raising an error.booleanhasNewValue()If set and if the value of the flag is disallowed (including the default value of the flag if the user doesn't specify a value), use this value as the value of the flag instead of raising an error.booleanhasUseDefault()If set and if the value of the flag is disallowed, use the default value of the flag instead of raising an error.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getDisallowedValuesList
java.util.List<java.lang.String> getDisallowedValuesList()
It is an error for the user to use any of these values (that is, the Bazel command will fail), unless new_value or use_default is set. For repeatable flags, if any one of the values in the flag matches a value in the list of disallowed values, an error is thrown. Care must be taken for flags with complicated converters. For example, it's possible for a repeated flag to be of type List<List<T>>, so that "--foo=a,b --foo=c,d" results in foo=[["a","b"], ["c", "d"]]. In this case, it is not possible to disallow just "b", nor will ["b", "a"] match, nor will ["b", "c"] (but ["a", "b"] will still match).
repeated string disallowed_values = 1;- Returns:
- A list containing the disallowedValues.
-
getDisallowedValuesCount
int getDisallowedValuesCount()
It is an error for the user to use any of these values (that is, the Bazel command will fail), unless new_value or use_default is set. For repeatable flags, if any one of the values in the flag matches a value in the list of disallowed values, an error is thrown. Care must be taken for flags with complicated converters. For example, it's possible for a repeated flag to be of type List<List<T>>, so that "--foo=a,b --foo=c,d" results in foo=[["a","b"], ["c", "d"]]. In this case, it is not possible to disallow just "b", nor will ["b", "a"] match, nor will ["b", "c"] (but ["a", "b"] will still match).
repeated string disallowed_values = 1;- Returns:
- The count of disallowedValues.
-
getDisallowedValues
java.lang.String getDisallowedValues(int index)
It is an error for the user to use any of these values (that is, the Bazel command will fail), unless new_value or use_default is set. For repeatable flags, if any one of the values in the flag matches a value in the list of disallowed values, an error is thrown. Care must be taken for flags with complicated converters. For example, it's possible for a repeated flag to be of type List<List<T>>, so that "--foo=a,b --foo=c,d" results in foo=[["a","b"], ["c", "d"]]. In this case, it is not possible to disallow just "b", nor will ["b", "a"] match, nor will ["b", "c"] (but ["a", "b"] will still match).
repeated string disallowed_values = 1;- Parameters:
index- The index of the element to return.- Returns:
- The disallowedValues at the given index.
-
getDisallowedValuesBytes
com.google.protobuf.ByteString getDisallowedValuesBytes(int index)
It is an error for the user to use any of these values (that is, the Bazel command will fail), unless new_value or use_default is set. For repeatable flags, if any one of the values in the flag matches a value in the list of disallowed values, an error is thrown. Care must be taken for flags with complicated converters. For example, it's possible for a repeated flag to be of type List<List<T>>, so that "--foo=a,b --foo=c,d" results in foo=[["a","b"], ["c", "d"]]. In this case, it is not possible to disallow just "b", nor will ["b", "a"] match, nor will ["b", "c"] (but ["a", "b"] will still match).
repeated string disallowed_values = 1;- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the disallowedValues at the given index.
-
hasNewValue
boolean hasNewValue()
If set and if the value of the flag is disallowed (including the default value of the flag if the user doesn't specify a value), use this value as the value of the flag instead of raising an error. This does not apply to repeatable flags and is ignored if the flag is a repeatable flag.
string new_value = 3;- Returns:
- Whether the newValue field is set.
-
getNewValue
java.lang.String getNewValue()
If set and if the value of the flag is disallowed (including the default value of the flag if the user doesn't specify a value), use this value as the value of the flag instead of raising an error. This does not apply to repeatable flags and is ignored if the flag is a repeatable flag.
string new_value = 3;- Returns:
- The newValue.
-
getNewValueBytes
com.google.protobuf.ByteString getNewValueBytes()
If set and if the value of the flag is disallowed (including the default value of the flag if the user doesn't specify a value), use this value as the value of the flag instead of raising an error. This does not apply to repeatable flags and is ignored if the flag is a repeatable flag.
string new_value = 3;- Returns:
- The bytes for newValue.
-
hasUseDefault
boolean hasUseDefault()
If set and if the value of the flag is disallowed, use the default value of the flag instead of raising an error. Unlike new_value, this works for repeatable flags, but note that the default value for repeatable flags is always empty. Note that it is an error to disallow the default value of the flag and to set use_default, unless the flag is a repeatable flag where the default value is always the empty list.
.blaze.invocation_policy.UseDefault use_default = 4;- Returns:
- Whether the useDefault field is set.
-
getUseDefault
InvocationPolicyOuterClass.UseDefault getUseDefault()
If set and if the value of the flag is disallowed, use the default value of the flag instead of raising an error. Unlike new_value, this works for repeatable flags, but note that the default value for repeatable flags is always empty. Note that it is an error to disallow the default value of the flag and to set use_default, unless the flag is a repeatable flag where the default value is always the empty list.
.blaze.invocation_policy.UseDefault use_default = 4;- Returns:
- The useDefault.
-
getUseDefaultOrBuilder
InvocationPolicyOuterClass.UseDefaultOrBuilder getUseDefaultOrBuilder()
If set and if the value of the flag is disallowed, use the default value of the flag instead of raising an error. Unlike new_value, this works for repeatable flags, but note that the default value for repeatable flags is always empty. Note that it is an error to disallow the default value of the flag and to set use_default, unless the flag is a repeatable flag where the default value is always the empty list.
.blaze.invocation_policy.UseDefault use_default = 4;
-
getReplacementValueCase
InvocationPolicyOuterClass.DisallowValues.ReplacementValueCase getReplacementValueCase()
-
-