Class InvocationPolicyOuterClass.FlagPolicy.Builder

    • Method Detail

      • 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.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.GeneratedMessageV3.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

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

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

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.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:
        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:
        java.io.IOException
      • 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.
      • 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:
        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.
      • 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.