Class InvocationPolicyOuterClass.FlagPolicy

    • Method Detail

      • newInstance

        protected java.lang.Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getUnknownFields

        public final com.google.protobuf.UnknownFieldSet getUnknownFields()
        Specified by:
        getUnknownFields in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getUnknownFields in class com.google.protobuf.GeneratedMessageV3
      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
      • 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 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:
        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.
      • 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 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:
        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.
      • isInitialized

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

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

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

        public boolean equals​(java.lang.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 InvocationPolicyOuterClass.FlagPolicy parseFrom​(java.nio.ByteBuffer data)
                                                               throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static InvocationPolicyOuterClass.FlagPolicy parseFrom​(java.nio.ByteBuffer data,
                                                                      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                               throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static InvocationPolicyOuterClass.FlagPolicy parseFrom​(com.google.protobuf.ByteString data)
                                                               throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static InvocationPolicyOuterClass.FlagPolicy parseFrom​(com.google.protobuf.ByteString data,
                                                                      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                               throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static InvocationPolicyOuterClass.FlagPolicy parseFrom​(byte[] data)
                                                               throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

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

        public static InvocationPolicyOuterClass.FlagPolicy parseFrom​(java.io.InputStream input,
                                                                      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                               throws java.io.IOException
        Throws:
        java.io.IOException
      • parseDelimitedFrom

        public static InvocationPolicyOuterClass.FlagPolicy parseDelimitedFrom​(java.io.InputStream input,
                                                                               com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                                        throws java.io.IOException
        Throws:
        java.io.IOException
      • parseFrom

        public static InvocationPolicyOuterClass.FlagPolicy parseFrom​(com.google.protobuf.CodedInputStream input,
                                                                      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                               throws java.io.IOException
        Throws:
        java.io.IOException
      • newBuilderForType

        public InvocationPolicyOuterClass.FlagPolicy.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • newBuilderForType

        protected InvocationPolicyOuterClass.FlagPolicy.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getParserForType

        public com.google.protobuf.Parser<InvocationPolicyOuterClass.FlagPolicy> 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.GeneratedMessageV3
      • getDefaultInstanceForType

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