Class InvocationPolicyOuterClass.FlagPolicy.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.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, Cloneable
Enclosing class:
InvocationPolicyOuterClass.FlagPolicy

public static final class InvocationPolicyOuterClass.FlagPolicy.Builder extends com.google.protobuf.GeneratedMessage.Builder<InvocationPolicyOuterClass.FlagPolicy.Builder> implements InvocationPolicyOuterClass.FlagPolicyOrBuilder
 A policy for controlling the value of a flag.
 
Protobuf type blaze.invocation_policy.FlagPolicy
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<InvocationPolicyOuterClass.FlagPolicy.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<InvocationPolicyOuterClass.FlagPolicy.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<InvocationPolicyOuterClass.FlagPolicy.Builder>
    • getDefaultInstanceForType

      public InvocationPolicyOuterClass.FlagPolicy getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public InvocationPolicyOuterClass.FlagPolicy.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<InvocationPolicyOuterClass.FlagPolicy.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<InvocationPolicyOuterClass.FlagPolicy.Builder>
    • mergeFrom

      public InvocationPolicyOuterClass.FlagPolicy.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<InvocationPolicyOuterClass.FlagPolicy.Builder>
      Throws:
      IOException
    • getOperationCase

      Specified by:
      getOperationCase in interface InvocationPolicyOuterClass.FlagPolicyOrBuilder
    • 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:
      hasFlagName in interface InvocationPolicyOuterClass.FlagPolicyOrBuilder
      Returns:
      Whether the flagName field is set.
    • getFlagName

      public 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:
      getFlagName in interface InvocationPolicyOuterClass.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:
      getFlagNameBytes in interface InvocationPolicyOuterClass.FlagPolicyOrBuilder
      Returns:
      The bytes for flagName.
    • setFlagName

       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

       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:
      getCommandsList in interface InvocationPolicyOuterClass.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:
      getCommandsCount in interface InvocationPolicyOuterClass.FlagPolicyOrBuilder
      Returns:
      The count of commands.
    • getCommands

      public 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:
      getCommands in interface InvocationPolicyOuterClass.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:
      getCommandsBytes in interface InvocationPolicyOuterClass.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, 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

       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

       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

       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:
      hasSetValue in interface InvocationPolicyOuterClass.FlagPolicyOrBuilder
      Returns:
      Whether the setValue field is set.
    • getSetValue

      .blaze.invocation_policy.SetValue set_value = 3;
      Specified by:
      getSetValue in interface InvocationPolicyOuterClass.FlagPolicyOrBuilder
      Returns:
      The setValue.
    • setSetValue

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

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

      .blaze.invocation_policy.SetValue set_value = 3;
    • 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:
      getSetValueOrBuilder in interface InvocationPolicyOuterClass.FlagPolicyOrBuilder
    • hasUseDefault

      public boolean hasUseDefault()
      .blaze.invocation_policy.UseDefault use_default = 4;
      Specified by:
      hasUseDefault in interface InvocationPolicyOuterClass.FlagPolicyOrBuilder
      Returns:
      Whether the useDefault field is set.
    • getUseDefault

      public InvocationPolicyOuterClass.UseDefault getUseDefault()
      .blaze.invocation_policy.UseDefault use_default = 4;
      Specified by:
      getUseDefault in interface InvocationPolicyOuterClass.FlagPolicyOrBuilder
      Returns:
      The useDefault.
    • setUseDefault

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

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

      .blaze.invocation_policy.UseDefault use_default = 4;
    • 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:
      getUseDefaultOrBuilder in interface InvocationPolicyOuterClass.FlagPolicyOrBuilder
    • hasDisallowValues

      public boolean hasDisallowValues()
      .blaze.invocation_policy.DisallowValues disallow_values = 5;
      Specified by:
      hasDisallowValues in interface InvocationPolicyOuterClass.FlagPolicyOrBuilder
      Returns:
      Whether the disallowValues field is set.
    • getDisallowValues

      public InvocationPolicyOuterClass.DisallowValues getDisallowValues()
      .blaze.invocation_policy.DisallowValues disallow_values = 5;
      Specified by:
      getDisallowValues in interface InvocationPolicyOuterClass.FlagPolicyOrBuilder
      Returns:
      The disallowValues.
    • setDisallowValues

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

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

      .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:
      getDisallowValuesOrBuilder in interface InvocationPolicyOuterClass.FlagPolicyOrBuilder
    • hasAllowValues

      public boolean hasAllowValues()
      .blaze.invocation_policy.AllowValues allow_values = 6;
      Specified by:
      hasAllowValues in interface InvocationPolicyOuterClass.FlagPolicyOrBuilder
      Returns:
      Whether the allowValues field is set.
    • getAllowValues

      public InvocationPolicyOuterClass.AllowValues getAllowValues()
      .blaze.invocation_policy.AllowValues allow_values = 6;
      Specified by:
      getAllowValues in interface InvocationPolicyOuterClass.FlagPolicyOrBuilder
      Returns:
      The allowValues.
    • setAllowValues

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

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

      .blaze.invocation_policy.AllowValues allow_values = 6;
    • 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:
      getAllowValuesOrBuilder in interface InvocationPolicyOuterClass.FlagPolicyOrBuilder