Class CommandLineOuterClass.Option
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- 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,java.io.Serializable
- Enclosing class:
- CommandLineOuterClass
public static final class CommandLineOuterClass.Option extends com.google.protobuf.GeneratedMessageV3 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 typecommand_line.Option- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCommandLineOuterClass.Option.BuilderA single command line option.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intCOMBINED_FORM_FIELD_NUMBERstatic intEFFECT_TAGS_FIELD_NUMBERstatic intMETADATA_TAGS_FIELD_NUMBERstatic intOPTION_NAME_FIELD_NUMBERstatic intOPTION_VALUE_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.lang.StringgetCombinedForm()How the option looks with the option and its value combined.com.google.protobuf.ByteStringgetCombinedFormBytes()How the option looks with the option and its value combined.static CommandLineOuterClass.OptiongetDefaultInstance()CommandLineOuterClass.OptiongetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()OptionFilters.OptionEffectTaggetEffectTags(int index)This flag's tagged effects.intgetEffectTagsCount()This flag's tagged effects.java.util.List<OptionFilters.OptionEffectTag>getEffectTagsList()This flag's tagged effects.intgetEffectTagsValue(int index)This flag's tagged effects.java.util.List<java.lang.Integer>getEffectTagsValueList()This flag's tagged effects.OptionFilters.OptionMetadataTaggetMetadataTags(int index)Metadata about the flag.intgetMetadataTagsCount()Metadata about the flag.java.util.List<OptionFilters.OptionMetadataTag>getMetadataTagsList()Metadata about the flag.intgetMetadataTagsValue(int index)Metadata about the flag.java.util.List<java.lang.Integer>getMetadataTagsValueList()Metadata about the flag.java.lang.StringgetOptionName()The canonical name of the option, without the preceding dashes.com.google.protobuf.ByteStringgetOptionNameBytes()The canonical name of the option, without the preceding dashes.java.lang.StringgetOptionValue()The value of the flag, or unset for flags that do not take values.com.google.protobuf.ByteStringgetOptionValueBytes()The value of the flag, or unset for flags that do not take values.com.google.protobuf.Parser<CommandLineOuterClass.Option>getParserForType()intgetSerializedSize()com.google.protobuf.UnknownFieldSetgetUnknownFields()inthashCode()protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static CommandLineOuterClass.Option.BuildernewBuilder()static CommandLineOuterClass.Option.BuildernewBuilder(CommandLineOuterClass.Option prototype)CommandLineOuterClass.Option.BuildernewBuilderForType()protected CommandLineOuterClass.Option.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected java.lang.ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static CommandLineOuterClass.OptionparseDelimitedFrom(java.io.InputStream input)static CommandLineOuterClass.OptionparseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static CommandLineOuterClass.OptionparseFrom(byte[] data)static CommandLineOuterClass.OptionparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static CommandLineOuterClass.OptionparseFrom(com.google.protobuf.ByteString data)static CommandLineOuterClass.OptionparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static CommandLineOuterClass.OptionparseFrom(com.google.protobuf.CodedInputStream input)static CommandLineOuterClass.OptionparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static CommandLineOuterClass.OptionparseFrom(java.io.InputStream input)static CommandLineOuterClass.OptionparseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static CommandLineOuterClass.OptionparseFrom(java.nio.ByteBuffer data)static CommandLineOuterClass.OptionparseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<CommandLineOuterClass.Option>parser()CommandLineOuterClass.Option.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
COMBINED_FORM_FIELD_NUMBER
public static final int COMBINED_FORM_FIELD_NUMBER
- See Also:
- Constant Field Values
-
OPTION_NAME_FIELD_NUMBER
public static final int OPTION_NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
OPTION_VALUE_FIELD_NUMBER
public static final int OPTION_VALUE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
EFFECT_TAGS_FIELD_NUMBER
public static final int EFFECT_TAGS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
METADATA_TAGS_FIELD_NUMBER
public static final int METADATA_TAGS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected java.lang.Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getUnknownFields
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
- Specified by:
getUnknownFieldsin interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3
-
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
-
getCombinedForm
public java.lang.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:
getCombinedFormin interfaceCommandLineOuterClass.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:
getCombinedFormBytesin interfaceCommandLineOuterClass.OptionOrBuilder- Returns:
- The bytes for combinedForm.
-
getOptionName
public java.lang.String getOptionName()
The canonical name of the option, without the preceding dashes.
string option_name = 2;- Specified by:
getOptionNamein interfaceCommandLineOuterClass.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:
getOptionNameBytesin interfaceCommandLineOuterClass.OptionOrBuilder- Returns:
- The bytes for optionName.
-
getOptionValue
public java.lang.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:
getOptionValuein interfaceCommandLineOuterClass.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:
getOptionValueBytesin interfaceCommandLineOuterClass.OptionOrBuilder- Returns:
- The bytes for optionValue.
-
getEffectTagsList
public java.util.List<OptionFilters.OptionEffectTag> getEffectTagsList()
This flag's tagged effects. See OptionEffectTag's java documentation for details.
repeated .options.OptionEffectTag effect_tags = 4;- Specified by:
getEffectTagsListin interfaceCommandLineOuterClass.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:
getEffectTagsCountin interfaceCommandLineOuterClass.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:
getEffectTagsin interfaceCommandLineOuterClass.OptionOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The effectTags at the given index.
-
getEffectTagsValueList
public java.util.List<java.lang.Integer> getEffectTagsValueList()
This flag's tagged effects. See OptionEffectTag's java documentation for details.
repeated .options.OptionEffectTag effect_tags = 4;- Specified by:
getEffectTagsValueListin interfaceCommandLineOuterClass.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:
getEffectTagsValuein interfaceCommandLineOuterClass.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 java.util.List<OptionFilters.OptionMetadataTag> getMetadataTagsList()
Metadata about the flag. See OptionMetadataTag's java documentation for details.
repeated .options.OptionMetadataTag metadata_tags = 5;- Specified by:
getMetadataTagsListin interfaceCommandLineOuterClass.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:
getMetadataTagsCountin interfaceCommandLineOuterClass.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:
getMetadataTagsin interfaceCommandLineOuterClass.OptionOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The metadataTags at the given index.
-
getMetadataTagsValueList
public java.util.List<java.lang.Integer> getMetadataTagsValueList()
Metadata about the flag. See OptionMetadataTag's java documentation for details.
repeated .options.OptionMetadataTag metadata_tags = 5;- Specified by:
getMetadataTagsValueListin interfaceCommandLineOuterClass.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:
getMetadataTagsValuein interfaceCommandLineOuterClass.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:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
java.io.IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(java.lang.Object obj)
- 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 CommandLineOuterClass.Option parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CommandLineOuterClass.Option parseFrom(java.nio.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(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static CommandLineOuterClass.Option parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static CommandLineOuterClass.Option parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static CommandLineOuterClass.Option parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static CommandLineOuterClass.Option parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static CommandLineOuterClass.Option parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
newBuilderForType
public CommandLineOuterClass.Option.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static CommandLineOuterClass.Option.Builder newBuilder()
-
newBuilder
public static CommandLineOuterClass.Option.Builder newBuilder(CommandLineOuterClass.Option prototype)
-
toBuilder
public CommandLineOuterClass.Option.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected CommandLineOuterClass.Option.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
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:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public CommandLineOuterClass.Option getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-