Class CommandLineOuterClass.Option

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.devtools.build.lib.runtime.proto.CommandLineOuterClass.Option
All Implemented Interfaces:
CommandLineOuterClass.OptionOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable
Enclosing class:
CommandLineOuterClass

public static final class CommandLineOuterClass.Option extends com.google.protobuf.GeneratedMessage implements CommandLineOuterClass.OptionOrBuilder
 A single command line option.

 This represents the option itself, but does not take into account the type of
 option or how the parser interpreted it. If this option is part of a command
 line that represents the actual input that Bazel received, it would, for
 example, include expansion flags as they are. However, if this option
 represents the canonical form of the command line, with the values as Bazel
 understands them, then the expansion flag, which has no value, would not
 appear, and the flags it expands to would.
 
Protobuf type command_line.Option
See Also:
  • Field Details

    • COMBINED_FORM_FIELD_NUMBER

      public static final int COMBINED_FORM_FIELD_NUMBER
      See Also:
    • OPTION_NAME_FIELD_NUMBER

      public static final int OPTION_NAME_FIELD_NUMBER
      See Also:
    • OPTION_VALUE_FIELD_NUMBER

      public static final int OPTION_VALUE_FIELD_NUMBER
      See Also:
    • EFFECT_TAGS_FIELD_NUMBER

      public static final int EFFECT_TAGS_FIELD_NUMBER
      See Also:
    • METADATA_TAGS_FIELD_NUMBER

      public static final int METADATA_TAGS_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:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • getCombinedForm

      public String getCombinedForm()
       How the option looks with the option and its value combined. Depending on
       the purpose of this command line report, this could be the canonical
       form, or the way that the flag was set.
      
       Some examples: this might be `--foo=bar` form, or `--foo bar` with a space;
       for boolean flags, `--nobaz` is accepted on top of `--baz=false` and other
       negating values, or for a positive value, the unqualified `--baz` form
       is also accepted. This could also be a short `-b`, if the flag has an
       abbreviated form.
       
      string combined_form = 1;
      Specified by:
      getCombinedForm in interface CommandLineOuterClass.OptionOrBuilder
      Returns:
      The combinedForm.
    • getCombinedFormBytes

      public com.google.protobuf.ByteString getCombinedFormBytes()
       How the option looks with the option and its value combined. Depending on
       the purpose of this command line report, this could be the canonical
       form, or the way that the flag was set.
      
       Some examples: this might be `--foo=bar` form, or `--foo bar` with a space;
       for boolean flags, `--nobaz` is accepted on top of `--baz=false` and other
       negating values, or for a positive value, the unqualified `--baz` form
       is also accepted. This could also be a short `-b`, if the flag has an
       abbreviated form.
       
      string combined_form = 1;
      Specified by:
      getCombinedFormBytes in interface CommandLineOuterClass.OptionOrBuilder
      Returns:
      The bytes for combinedForm.
    • getOptionName

      public String getOptionName()
       The canonical name of the option, without the preceding dashes.
       
      string option_name = 2;
      Specified by:
      getOptionName in interface CommandLineOuterClass.OptionOrBuilder
      Returns:
      The optionName.
    • getOptionNameBytes

      public com.google.protobuf.ByteString getOptionNameBytes()
       The canonical name of the option, without the preceding dashes.
       
      string option_name = 2;
      Specified by:
      getOptionNameBytes in interface CommandLineOuterClass.OptionOrBuilder
      Returns:
      The bytes for optionName.
    • getOptionValue

      public String getOptionValue()
       The value of the flag, or unset for flags that do not take values.
       Especially for boolean flags, this should be in canonical form, the
       combined_form field above gives room for showing the flag as it was set
       if that is preferred.
       
      string option_value = 3;
      Specified by:
      getOptionValue in interface CommandLineOuterClass.OptionOrBuilder
      Returns:
      The optionValue.
    • getOptionValueBytes

      public com.google.protobuf.ByteString getOptionValueBytes()
       The value of the flag, or unset for flags that do not take values.
       Especially for boolean flags, this should be in canonical form, the
       combined_form field above gives room for showing the flag as it was set
       if that is preferred.
       
      string option_value = 3;
      Specified by:
      getOptionValueBytes in interface CommandLineOuterClass.OptionOrBuilder
      Returns:
      The bytes for optionValue.
    • getEffectTagsList

      public List<OptionFilters.OptionEffectTag> getEffectTagsList()
       This flag's tagged effects. See OptionEffectTag's java documentation for
       details.
       
      repeated .options.OptionEffectTag effect_tags = 4;
      Specified by:
      getEffectTagsList in interface CommandLineOuterClass.OptionOrBuilder
      Returns:
      A list containing the effectTags.
    • getEffectTagsCount

      public int getEffectTagsCount()
       This flag's tagged effects. See OptionEffectTag's java documentation for
       details.
       
      repeated .options.OptionEffectTag effect_tags = 4;
      Specified by:
      getEffectTagsCount in interface CommandLineOuterClass.OptionOrBuilder
      Returns:
      The count of effectTags.
    • getEffectTags

      public OptionFilters.OptionEffectTag getEffectTags(int index)
       This flag's tagged effects. See OptionEffectTag's java documentation for
       details.
       
      repeated .options.OptionEffectTag effect_tags = 4;
      Specified by:
      getEffectTags in interface CommandLineOuterClass.OptionOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The effectTags at the given index.
    • getEffectTagsValueList

      public List<Integer> getEffectTagsValueList()
       This flag's tagged effects. See OptionEffectTag's java documentation for
       details.
       
      repeated .options.OptionEffectTag effect_tags = 4;
      Specified by:
      getEffectTagsValueList in interface CommandLineOuterClass.OptionOrBuilder
      Returns:
      A list containing the enum numeric values on the wire for effectTags.
    • getEffectTagsValue

      public int getEffectTagsValue(int index)
       This flag's tagged effects. See OptionEffectTag's java documentation for
       details.
       
      repeated .options.OptionEffectTag effect_tags = 4;
      Specified by:
      getEffectTagsValue in interface CommandLineOuterClass.OptionOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The enum numeric value on the wire of effectTags at the given index.
    • getMetadataTagsList

      public List<OptionFilters.OptionMetadataTag> getMetadataTagsList()
       Metadata about the flag. See OptionMetadataTag's java documentation for
       details.
       
      repeated .options.OptionMetadataTag metadata_tags = 5;
      Specified by:
      getMetadataTagsList in interface CommandLineOuterClass.OptionOrBuilder
      Returns:
      A list containing the metadataTags.
    • getMetadataTagsCount

      public int getMetadataTagsCount()
       Metadata about the flag. See OptionMetadataTag's java documentation for
       details.
       
      repeated .options.OptionMetadataTag metadata_tags = 5;
      Specified by:
      getMetadataTagsCount in interface CommandLineOuterClass.OptionOrBuilder
      Returns:
      The count of metadataTags.
    • getMetadataTags

      public OptionFilters.OptionMetadataTag getMetadataTags(int index)
       Metadata about the flag. See OptionMetadataTag's java documentation for
       details.
       
      repeated .options.OptionMetadataTag metadata_tags = 5;
      Specified by:
      getMetadataTags in interface CommandLineOuterClass.OptionOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The metadataTags at the given index.
    • getMetadataTagsValueList

      public List<Integer> getMetadataTagsValueList()
       Metadata about the flag. See OptionMetadataTag's java documentation for
       details.
       
      repeated .options.OptionMetadataTag metadata_tags = 5;
      Specified by:
      getMetadataTagsValueList in interface CommandLineOuterClass.OptionOrBuilder
      Returns:
      A list containing the enum numeric values on the wire for metadataTags.
    • getMetadataTagsValue

      public int getMetadataTagsValue(int index)
       Metadata about the flag. See OptionMetadataTag's java documentation for
       details.
       
      repeated .options.OptionMetadataTag metadata_tags = 5;
      Specified by:
      getMetadataTagsValue in interface CommandLineOuterClass.OptionOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The enum numeric value on the wire of metadataTags at the given index.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static CommandLineOuterClass.Option parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static CommandLineOuterClass.Option parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static CommandLineOuterClass.Option parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static CommandLineOuterClass.Option parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static CommandLineOuterClass.Option parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static CommandLineOuterClass.Option parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static CommandLineOuterClass.Option parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static CommandLineOuterClass.Option parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static CommandLineOuterClass.Option parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static CommandLineOuterClass.Option parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static CommandLineOuterClass.Option parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static CommandLineOuterClass.Option parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public CommandLineOuterClass.Option.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static CommandLineOuterClass.Option.Builder newBuilder()
    • newBuilder

    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected CommandLineOuterClass.Option.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static CommandLineOuterClass.Option getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<CommandLineOuterClass.Option> parser()
    • getParserForType

      public com.google.protobuf.Parser<CommandLineOuterClass.Option> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public CommandLineOuterClass.Option getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder