Class InvocationPolicyOuterClass.FlagPolicy
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.devtools.build.lib.runtime.proto.InvocationPolicyOuterClass.FlagPolicy
- All Implemented Interfaces:
InvocationPolicyOuterClass.FlagPolicyOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
- Enclosing class:
- InvocationPolicyOuterClass
public static final class InvocationPolicyOuterClass.FlagPolicy
extends com.google.protobuf.GeneratedMessage
implements InvocationPolicyOuterClass.FlagPolicyOrBuilder
A policy for controlling the value of a flag.Protobuf type
blaze.invocation_policy.FlagPolicy- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA policy for controlling the value of a flag.static enumNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionboolean.blaze.invocation_policy.AllowValues allow_values = 6;.blaze.invocation_policy.AllowValues allow_values = 6;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.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.intIf 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.ProtocolStringListIf 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.static final com.google.protobuf.Descriptors.Descriptor.blaze.invocation_policy.DisallowValues disallow_values = 5;.blaze.invocation_policy.DisallowValues disallow_values = 5;The name of the flag to enforce this policy on.com.google.protobuf.ByteStringThe name of the flag to enforce this policy on.com.google.protobuf.Parser<InvocationPolicyOuterClass.FlagPolicy>int.blaze.invocation_policy.SetValue set_value = 3;.blaze.invocation_policy.SetValue set_value = 3;.blaze.invocation_policy.UseDefault use_default = 4;.blaze.invocation_policy.UseDefault use_default = 4;boolean.blaze.invocation_policy.AllowValues allow_values = 6;boolean.blaze.invocation_policy.DisallowValues disallow_values = 5;booleanThe name of the flag to enforce this policy on.inthashCode()boolean.blaze.invocation_policy.SetValue set_value = 3;boolean.blaze.invocation_policy.UseDefault use_default = 4;protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleannewBuilder(InvocationPolicyOuterClass.FlagPolicy prototype) newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) parseDelimitedFrom(InputStream input) parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(byte[] data) parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(com.google.protobuf.ByteString data) parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(com.google.protobuf.CodedInputStream input) parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(InputStream input) parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(ByteBuffer data) parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<InvocationPolicyOuterClass.FlagPolicy>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
FLAG_NAME_FIELD_NUMBER
public static final int FLAG_NAME_FIELD_NUMBER- See Also:
-
COMMANDS_FIELD_NUMBER
public static final int COMMANDS_FIELD_NUMBER- See Also:
-
SET_VALUE_FIELD_NUMBER
public static final int SET_VALUE_FIELD_NUMBER- See Also:
-
USE_DEFAULT_FIELD_NUMBER
public static final int USE_DEFAULT_FIELD_NUMBER- See Also:
-
DISALLOW_VALUES_FIELD_NUMBER
public static final int DISALLOW_VALUES_FIELD_NUMBER- See Also:
-
ALLOW_VALUES_FIELD_NUMBER
public static final int ALLOW_VALUES_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
getOperationCase
- Specified by:
getOperationCasein interfaceInvocationPolicyOuterClass.FlagPolicyOrBuilder
-
hasFlagName
public 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;- Specified by:
hasFlagNamein interfaceInvocationPolicyOuterClass.FlagPolicyOrBuilder- Returns:
- Whether the flagName field is set.
-
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;- Specified by:
getFlagNamein interfaceInvocationPolicyOuterClass.FlagPolicyOrBuilder- Returns:
- The flagName.
-
getFlagNameBytes
public 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;- Specified by:
getFlagNameBytesin interfaceInvocationPolicyOuterClass.FlagPolicyOrBuilder- Returns:
- The bytes for flagName.
-
getCommandsList
public com.google.protobuf.ProtocolStringList 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;- Specified by:
getCommandsListin interfaceInvocationPolicyOuterClass.FlagPolicyOrBuilder- Returns:
- A list containing the commands.
-
getCommandsCount
public 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;- Specified by:
getCommandsCountin interfaceInvocationPolicyOuterClass.FlagPolicyOrBuilder- Returns:
- The count of commands.
-
getCommands
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;- Specified by:
getCommandsin interfaceInvocationPolicyOuterClass.FlagPolicyOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The commands at the given index.
-
getCommandsBytes
public 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;- Specified by:
getCommandsBytesin interfaceInvocationPolicyOuterClass.FlagPolicyOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the commands at the given index.
-
hasSetValue
public boolean hasSetValue().blaze.invocation_policy.SetValue set_value = 3;- Specified by:
hasSetValuein interfaceInvocationPolicyOuterClass.FlagPolicyOrBuilder- Returns:
- Whether the setValue field is set.
-
getSetValue
.blaze.invocation_policy.SetValue set_value = 3;- Specified by:
getSetValuein interfaceInvocationPolicyOuterClass.FlagPolicyOrBuilder- Returns:
- The setValue.
-
getSetValueOrBuilder
.blaze.invocation_policy.SetValue set_value = 3;- Specified by:
getSetValueOrBuilderin interfaceInvocationPolicyOuterClass.FlagPolicyOrBuilder
-
hasUseDefault
public boolean hasUseDefault().blaze.invocation_policy.UseDefault use_default = 4;- Specified by:
hasUseDefaultin interfaceInvocationPolicyOuterClass.FlagPolicyOrBuilder- Returns:
- Whether the useDefault field is set.
-
getUseDefault
.blaze.invocation_policy.UseDefault use_default = 4;- Specified by:
getUseDefaultin interfaceInvocationPolicyOuterClass.FlagPolicyOrBuilder- Returns:
- The useDefault.
-
getUseDefaultOrBuilder
.blaze.invocation_policy.UseDefault use_default = 4;- Specified by:
getUseDefaultOrBuilderin interfaceInvocationPolicyOuterClass.FlagPolicyOrBuilder
-
hasDisallowValues
public boolean hasDisallowValues().blaze.invocation_policy.DisallowValues disallow_values = 5;- Specified by:
hasDisallowValuesin interfaceInvocationPolicyOuterClass.FlagPolicyOrBuilder- Returns:
- Whether the disallowValues field is set.
-
getDisallowValues
.blaze.invocation_policy.DisallowValues disallow_values = 5;- Specified by:
getDisallowValuesin interfaceInvocationPolicyOuterClass.FlagPolicyOrBuilder- Returns:
- The disallowValues.
-
getDisallowValuesOrBuilder
.blaze.invocation_policy.DisallowValues disallow_values = 5;- Specified by:
getDisallowValuesOrBuilderin interfaceInvocationPolicyOuterClass.FlagPolicyOrBuilder
-
hasAllowValues
public boolean hasAllowValues().blaze.invocation_policy.AllowValues allow_values = 6;- Specified by:
hasAllowValuesin interfaceInvocationPolicyOuterClass.FlagPolicyOrBuilder- Returns:
- Whether the allowValues field is set.
-
getAllowValues
.blaze.invocation_policy.AllowValues allow_values = 6;- Specified by:
getAllowValuesin interfaceInvocationPolicyOuterClass.FlagPolicyOrBuilder- Returns:
- The allowValues.
-
getAllowValuesOrBuilder
.blaze.invocation_policy.AllowValues allow_values = 6;- Specified by:
getAllowValuesOrBuilderin interfaceInvocationPolicyOuterClass.FlagPolicyOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static InvocationPolicyOuterClass.FlagPolicy parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static InvocationPolicyOuterClass.FlagPolicy parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static InvocationPolicyOuterClass.FlagPolicy parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static InvocationPolicyOuterClass.FlagPolicy parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static InvocationPolicyOuterClass.FlagPolicy parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static InvocationPolicyOuterClass.FlagPolicy parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static InvocationPolicyOuterClass.FlagPolicy parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
public static InvocationPolicyOuterClass.FlagPolicy parseDelimitedFrom(InputStream input) throws IOException - Throws:
IOException
-
parseDelimitedFrom
public static InvocationPolicyOuterClass.FlagPolicy parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static InvocationPolicyOuterClass.FlagPolicy parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static InvocationPolicyOuterClass.FlagPolicy parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
public static InvocationPolicyOuterClass.FlagPolicy.Builder newBuilder(InvocationPolicyOuterClass.FlagPolicy prototype) -
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected InvocationPolicyOuterClass.FlagPolicy.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-