Class InvocationPolicyOuterClass.FlagPolicy.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<InvocationPolicyOuterClass.FlagPolicy.Builder>
-
- com.google.devtools.build.lib.runtime.proto.InvocationPolicyOuterClass.FlagPolicy.Builder
-
- All Implemented Interfaces:
InvocationPolicyOuterClass.FlagPolicyOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,java.lang.Cloneable
- Enclosing class:
- InvocationPolicyOuterClass.FlagPolicy
public static final class InvocationPolicyOuterClass.FlagPolicy.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<InvocationPolicyOuterClass.FlagPolicy.Builder> implements InvocationPolicyOuterClass.FlagPolicyOrBuilder
A policy for controlling the value of a flag.
Protobuf typeblaze.invocation_policy.FlagPolicy
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description InvocationPolicyOuterClass.FlagPolicy.BuilderaddAllCommands(java.lang.Iterable<java.lang.String> values)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.FlagPolicy.BuilderaddCommands(java.lang.String value)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.FlagPolicy.BuilderaddCommandsBytes(com.google.protobuf.ByteString value)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.FlagPolicy.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)InvocationPolicyOuterClass.FlagPolicybuild()InvocationPolicyOuterClass.FlagPolicybuildPartial()InvocationPolicyOuterClass.FlagPolicy.Builderclear()InvocationPolicyOuterClass.FlagPolicy.BuilderclearAllowValues().blaze.invocation_policy.AllowValues allow_values = 6;InvocationPolicyOuterClass.FlagPolicy.BuilderclearCommands()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.FlagPolicy.BuilderclearDisallowValues().blaze.invocation_policy.DisallowValues disallow_values = 5;InvocationPolicyOuterClass.FlagPolicy.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)InvocationPolicyOuterClass.FlagPolicy.BuilderclearFlagName()The name of the flag to enforce this policy on.InvocationPolicyOuterClass.FlagPolicy.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)InvocationPolicyOuterClass.FlagPolicy.BuilderclearOperation()InvocationPolicyOuterClass.FlagPolicy.BuilderclearSetValue().blaze.invocation_policy.SetValue set_value = 3;InvocationPolicyOuterClass.FlagPolicy.BuilderclearUseDefault().blaze.invocation_policy.UseDefault use_default = 4;InvocationPolicyOuterClass.FlagPolicy.Builderclone()InvocationPolicyOuterClass.AllowValuesgetAllowValues().blaze.invocation_policy.AllowValues allow_values = 6;InvocationPolicyOuterClass.AllowValues.BuildergetAllowValuesBuilder().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.com.google.protobuf.ProtocolStringListgetCommandsList()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.FlagPolicygetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()InvocationPolicyOuterClass.DisallowValuesgetDisallowValues().blaze.invocation_policy.DisallowValues disallow_values = 5;InvocationPolicyOuterClass.DisallowValues.BuildergetDisallowValuesBuilder().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.SetValue.BuildergetSetValueBuilder().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.UseDefault.BuildergetUseDefaultBuilder().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;protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()InvocationPolicyOuterClass.FlagPolicy.BuildermergeAllowValues(InvocationPolicyOuterClass.AllowValues value).blaze.invocation_policy.AllowValues allow_values = 6;InvocationPolicyOuterClass.FlagPolicy.BuildermergeDisallowValues(InvocationPolicyOuterClass.DisallowValues value).blaze.invocation_policy.DisallowValues disallow_values = 5;InvocationPolicyOuterClass.FlagPolicy.BuildermergeFrom(InvocationPolicyOuterClass.FlagPolicy other)InvocationPolicyOuterClass.FlagPolicy.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)InvocationPolicyOuterClass.FlagPolicy.BuildermergeFrom(com.google.protobuf.Message other)InvocationPolicyOuterClass.FlagPolicy.BuildermergeSetValue(InvocationPolicyOuterClass.SetValue value).blaze.invocation_policy.SetValue set_value = 3;InvocationPolicyOuterClass.FlagPolicy.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)InvocationPolicyOuterClass.FlagPolicy.BuildermergeUseDefault(InvocationPolicyOuterClass.UseDefault value).blaze.invocation_policy.UseDefault use_default = 4;InvocationPolicyOuterClass.FlagPolicy.BuildersetAllowValues(InvocationPolicyOuterClass.AllowValues value).blaze.invocation_policy.AllowValues allow_values = 6;InvocationPolicyOuterClass.FlagPolicy.BuildersetAllowValues(InvocationPolicyOuterClass.AllowValues.Builder builderForValue).blaze.invocation_policy.AllowValues allow_values = 6;InvocationPolicyOuterClass.FlagPolicy.BuildersetCommands(int index, java.lang.String value)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.FlagPolicy.BuildersetDisallowValues(InvocationPolicyOuterClass.DisallowValues value).blaze.invocation_policy.DisallowValues disallow_values = 5;InvocationPolicyOuterClass.FlagPolicy.BuildersetDisallowValues(InvocationPolicyOuterClass.DisallowValues.Builder builderForValue).blaze.invocation_policy.DisallowValues disallow_values = 5;InvocationPolicyOuterClass.FlagPolicy.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)InvocationPolicyOuterClass.FlagPolicy.BuildersetFlagName(java.lang.String value)The name of the flag to enforce this policy on.InvocationPolicyOuterClass.FlagPolicy.BuildersetFlagNameBytes(com.google.protobuf.ByteString value)The name of the flag to enforce this policy on.InvocationPolicyOuterClass.FlagPolicy.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)InvocationPolicyOuterClass.FlagPolicy.BuildersetSetValue(InvocationPolicyOuterClass.SetValue value).blaze.invocation_policy.SetValue set_value = 3;InvocationPolicyOuterClass.FlagPolicy.BuildersetSetValue(InvocationPolicyOuterClass.SetValue.Builder builderForValue).blaze.invocation_policy.SetValue set_value = 3;InvocationPolicyOuterClass.FlagPolicy.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)InvocationPolicyOuterClass.FlagPolicy.BuildersetUseDefault(InvocationPolicyOuterClass.UseDefault value).blaze.invocation_policy.UseDefault use_default = 4;InvocationPolicyOuterClass.FlagPolicy.BuildersetUseDefault(InvocationPolicyOuterClass.UseDefault.Builder builderForValue).blaze.invocation_policy.UseDefault use_default = 4;-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<InvocationPolicyOuterClass.FlagPolicy.Builder>
-
clear
public InvocationPolicyOuterClass.FlagPolicy.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<InvocationPolicyOuterClass.FlagPolicy.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<InvocationPolicyOuterClass.FlagPolicy.Builder>
-
getDefaultInstanceForType
public InvocationPolicyOuterClass.FlagPolicy getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public InvocationPolicyOuterClass.FlagPolicy build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public InvocationPolicyOuterClass.FlagPolicy buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public InvocationPolicyOuterClass.FlagPolicy.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<InvocationPolicyOuterClass.FlagPolicy.Builder>
-
setField
public InvocationPolicyOuterClass.FlagPolicy.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<InvocationPolicyOuterClass.FlagPolicy.Builder>
-
clearField
public InvocationPolicyOuterClass.FlagPolicy.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<InvocationPolicyOuterClass.FlagPolicy.Builder>
-
clearOneof
public InvocationPolicyOuterClass.FlagPolicy.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<InvocationPolicyOuterClass.FlagPolicy.Builder>
-
setRepeatedField
public InvocationPolicyOuterClass.FlagPolicy.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<InvocationPolicyOuterClass.FlagPolicy.Builder>
-
addRepeatedField
public InvocationPolicyOuterClass.FlagPolicy.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<InvocationPolicyOuterClass.FlagPolicy.Builder>
-
mergeFrom
public InvocationPolicyOuterClass.FlagPolicy.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<InvocationPolicyOuterClass.FlagPolicy.Builder>
-
mergeFrom
public InvocationPolicyOuterClass.FlagPolicy.Builder mergeFrom(InvocationPolicyOuterClass.FlagPolicy other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<InvocationPolicyOuterClass.FlagPolicy.Builder>
-
mergeFrom
public InvocationPolicyOuterClass.FlagPolicy.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<InvocationPolicyOuterClass.FlagPolicy.Builder>- Throws:
java.io.IOException
-
getOperationCase
public InvocationPolicyOuterClass.FlagPolicy.OperationCase getOperationCase()
- Specified by:
getOperationCasein interfaceInvocationPolicyOuterClass.FlagPolicyOrBuilder
-
clearOperation
public InvocationPolicyOuterClass.FlagPolicy.Builder clearOperation()
-
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
public 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;- 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.
-
setFlagName
public InvocationPolicyOuterClass.FlagPolicy.Builder setFlagName(java.lang.String value)
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;- Parameters:
value- The flagName to set.- Returns:
- This builder for chaining.
-
clearFlagName
public InvocationPolicyOuterClass.FlagPolicy.Builder clearFlagName()
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:
- This builder for chaining.
-
setFlagNameBytes
public InvocationPolicyOuterClass.FlagPolicy.Builder setFlagNameBytes(com.google.protobuf.ByteString value)
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;- Parameters:
value- The bytes for flagName to set.- Returns:
- This builder for chaining.
-
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
public 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;- 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.
-
setCommands
public InvocationPolicyOuterClass.FlagPolicy.Builder setCommands(int index, java.lang.String value)
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 to set the value at.value- The commands to set.- Returns:
- This builder for chaining.
-
addCommands
public InvocationPolicyOuterClass.FlagPolicy.Builder addCommands(java.lang.String value)
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:
value- The commands to add.- Returns:
- This builder for chaining.
-
addAllCommands
public InvocationPolicyOuterClass.FlagPolicy.Builder addAllCommands(java.lang.Iterable<java.lang.String> values)
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:
values- The commands to add.- Returns:
- This builder for chaining.
-
clearCommands
public InvocationPolicyOuterClass.FlagPolicy.Builder clearCommands()
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:
- This builder for chaining.
-
addCommandsBytes
public InvocationPolicyOuterClass.FlagPolicy.Builder addCommandsBytes(com.google.protobuf.ByteString value)
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:
value- The bytes of the commands to add.- Returns:
- This builder for chaining.
-
hasSetValue
public boolean hasSetValue()
.blaze.invocation_policy.SetValue set_value = 3;- Specified by:
hasSetValuein interfaceInvocationPolicyOuterClass.FlagPolicyOrBuilder- Returns:
- Whether the setValue field is set.
-
getSetValue
public InvocationPolicyOuterClass.SetValue getSetValue()
.blaze.invocation_policy.SetValue set_value = 3;- Specified by:
getSetValuein interfaceInvocationPolicyOuterClass.FlagPolicyOrBuilder- Returns:
- The setValue.
-
setSetValue
public InvocationPolicyOuterClass.FlagPolicy.Builder setSetValue(InvocationPolicyOuterClass.SetValue value)
.blaze.invocation_policy.SetValue set_value = 3;
-
setSetValue
public InvocationPolicyOuterClass.FlagPolicy.Builder setSetValue(InvocationPolicyOuterClass.SetValue.Builder builderForValue)
.blaze.invocation_policy.SetValue set_value = 3;
-
mergeSetValue
public InvocationPolicyOuterClass.FlagPolicy.Builder mergeSetValue(InvocationPolicyOuterClass.SetValue value)
.blaze.invocation_policy.SetValue set_value = 3;
-
clearSetValue
public InvocationPolicyOuterClass.FlagPolicy.Builder clearSetValue()
.blaze.invocation_policy.SetValue set_value = 3;
-
getSetValueBuilder
public InvocationPolicyOuterClass.SetValue.Builder getSetValueBuilder()
.blaze.invocation_policy.SetValue set_value = 3;
-
getSetValueOrBuilder
public InvocationPolicyOuterClass.SetValueOrBuilder 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
public InvocationPolicyOuterClass.UseDefault getUseDefault()
.blaze.invocation_policy.UseDefault use_default = 4;- Specified by:
getUseDefaultin interfaceInvocationPolicyOuterClass.FlagPolicyOrBuilder- Returns:
- The useDefault.
-
setUseDefault
public InvocationPolicyOuterClass.FlagPolicy.Builder setUseDefault(InvocationPolicyOuterClass.UseDefault value)
.blaze.invocation_policy.UseDefault use_default = 4;
-
setUseDefault
public InvocationPolicyOuterClass.FlagPolicy.Builder setUseDefault(InvocationPolicyOuterClass.UseDefault.Builder builderForValue)
.blaze.invocation_policy.UseDefault use_default = 4;
-
mergeUseDefault
public InvocationPolicyOuterClass.FlagPolicy.Builder mergeUseDefault(InvocationPolicyOuterClass.UseDefault value)
.blaze.invocation_policy.UseDefault use_default = 4;
-
clearUseDefault
public InvocationPolicyOuterClass.FlagPolicy.Builder clearUseDefault()
.blaze.invocation_policy.UseDefault use_default = 4;
-
getUseDefaultBuilder
public InvocationPolicyOuterClass.UseDefault.Builder getUseDefaultBuilder()
.blaze.invocation_policy.UseDefault use_default = 4;
-
getUseDefaultOrBuilder
public InvocationPolicyOuterClass.UseDefaultOrBuilder 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
public InvocationPolicyOuterClass.DisallowValues getDisallowValues()
.blaze.invocation_policy.DisallowValues disallow_values = 5;- Specified by:
getDisallowValuesin interfaceInvocationPolicyOuterClass.FlagPolicyOrBuilder- Returns:
- The disallowValues.
-
setDisallowValues
public InvocationPolicyOuterClass.FlagPolicy.Builder setDisallowValues(InvocationPolicyOuterClass.DisallowValues value)
.blaze.invocation_policy.DisallowValues disallow_values = 5;
-
setDisallowValues
public InvocationPolicyOuterClass.FlagPolicy.Builder setDisallowValues(InvocationPolicyOuterClass.DisallowValues.Builder builderForValue)
.blaze.invocation_policy.DisallowValues disallow_values = 5;
-
mergeDisallowValues
public InvocationPolicyOuterClass.FlagPolicy.Builder mergeDisallowValues(InvocationPolicyOuterClass.DisallowValues value)
.blaze.invocation_policy.DisallowValues disallow_values = 5;
-
clearDisallowValues
public InvocationPolicyOuterClass.FlagPolicy.Builder clearDisallowValues()
.blaze.invocation_policy.DisallowValues disallow_values = 5;
-
getDisallowValuesBuilder
public InvocationPolicyOuterClass.DisallowValues.Builder getDisallowValuesBuilder()
.blaze.invocation_policy.DisallowValues disallow_values = 5;
-
getDisallowValuesOrBuilder
public InvocationPolicyOuterClass.DisallowValuesOrBuilder 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
public InvocationPolicyOuterClass.AllowValues getAllowValues()
.blaze.invocation_policy.AllowValues allow_values = 6;- Specified by:
getAllowValuesin interfaceInvocationPolicyOuterClass.FlagPolicyOrBuilder- Returns:
- The allowValues.
-
setAllowValues
public InvocationPolicyOuterClass.FlagPolicy.Builder setAllowValues(InvocationPolicyOuterClass.AllowValues value)
.blaze.invocation_policy.AllowValues allow_values = 6;
-
setAllowValues
public InvocationPolicyOuterClass.FlagPolicy.Builder setAllowValues(InvocationPolicyOuterClass.AllowValues.Builder builderForValue)
.blaze.invocation_policy.AllowValues allow_values = 6;
-
mergeAllowValues
public InvocationPolicyOuterClass.FlagPolicy.Builder mergeAllowValues(InvocationPolicyOuterClass.AllowValues value)
.blaze.invocation_policy.AllowValues allow_values = 6;
-
clearAllowValues
public InvocationPolicyOuterClass.FlagPolicy.Builder clearAllowValues()
.blaze.invocation_policy.AllowValues allow_values = 6;
-
getAllowValuesBuilder
public InvocationPolicyOuterClass.AllowValues.Builder getAllowValuesBuilder()
.blaze.invocation_policy.AllowValues allow_values = 6;
-
getAllowValuesOrBuilder
public InvocationPolicyOuterClass.AllowValuesOrBuilder getAllowValuesOrBuilder()
.blaze.invocation_policy.AllowValues allow_values = 6;- Specified by:
getAllowValuesOrBuilderin interfaceInvocationPolicyOuterClass.FlagPolicyOrBuilder
-
setUnknownFields
public final InvocationPolicyOuterClass.FlagPolicy.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<InvocationPolicyOuterClass.FlagPolicy.Builder>
-
mergeUnknownFields
public final InvocationPolicyOuterClass.FlagPolicy.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<InvocationPolicyOuterClass.FlagPolicy.Builder>
-
-