Class MnemonicPolicy.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<MnemonicPolicy.Builder>
com.google.devtools.build.lib.runtime.proto.MnemonicPolicy.Builder
All Implemented Interfaces:
MnemonicPolicyOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
MnemonicPolicy

public static final class MnemonicPolicy.Builder extends com.google.protobuf.GeneratedMessage.Builder<MnemonicPolicy.Builder> implements MnemonicPolicyOrBuilder
Protobuf type blaze.strategy_policy.MnemonicPolicy
  • 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<MnemonicPolicy.Builder>
    • clear

      public MnemonicPolicy.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<MnemonicPolicy.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<MnemonicPolicy.Builder>
    • getDefaultInstanceForType

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

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

      public MnemonicPolicy buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public MnemonicPolicy.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<MnemonicPolicy.Builder>
    • mergeFrom

      public MnemonicPolicy.Builder mergeFrom(MnemonicPolicy other)
    • isInitialized

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

      public MnemonicPolicy.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<MnemonicPolicy.Builder>
      Throws:
      IOException
    • getDefaultAllowlistList

      public com.google.protobuf.ProtocolStringList getDefaultAllowlistList()
       Default allowed strategies for mnemonics not present in `strategy` list.
       
      repeated string default_allowlist = 1;
      Specified by:
      getDefaultAllowlistList in interface MnemonicPolicyOrBuilder
      Returns:
      A list containing the defaultAllowlist.
    • getDefaultAllowlistCount

      public int getDefaultAllowlistCount()
       Default allowed strategies for mnemonics not present in `strategy` list.
       
      repeated string default_allowlist = 1;
      Specified by:
      getDefaultAllowlistCount in interface MnemonicPolicyOrBuilder
      Returns:
      The count of defaultAllowlist.
    • getDefaultAllowlist

      public String getDefaultAllowlist(int index)
       Default allowed strategies for mnemonics not present in `strategy` list.
       
      repeated string default_allowlist = 1;
      Specified by:
      getDefaultAllowlist in interface MnemonicPolicyOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The defaultAllowlist at the given index.
    • getDefaultAllowlistBytes

      public com.google.protobuf.ByteString getDefaultAllowlistBytes(int index)
       Default allowed strategies for mnemonics not present in `strategy` list.
       
      repeated string default_allowlist = 1;
      Specified by:
      getDefaultAllowlistBytes in interface MnemonicPolicyOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the defaultAllowlist at the given index.
    • setDefaultAllowlist

      public MnemonicPolicy.Builder setDefaultAllowlist(int index, String value)
       Default allowed strategies for mnemonics not present in `strategy` list.
       
      repeated string default_allowlist = 1;
      Parameters:
      index - The index to set the value at.
      value - The defaultAllowlist to set.
      Returns:
      This builder for chaining.
    • addDefaultAllowlist

      public MnemonicPolicy.Builder addDefaultAllowlist(String value)
       Default allowed strategies for mnemonics not present in `strategy` list.
       
      repeated string default_allowlist = 1;
      Parameters:
      value - The defaultAllowlist to add.
      Returns:
      This builder for chaining.
    • addAllDefaultAllowlist

      public MnemonicPolicy.Builder addAllDefaultAllowlist(Iterable<String> values)
       Default allowed strategies for mnemonics not present in `strategy` list.
       
      repeated string default_allowlist = 1;
      Parameters:
      values - The defaultAllowlist to add.
      Returns:
      This builder for chaining.
    • clearDefaultAllowlist

      public MnemonicPolicy.Builder clearDefaultAllowlist()
       Default allowed strategies for mnemonics not present in `strategy` list.
       
      repeated string default_allowlist = 1;
      Returns:
      This builder for chaining.
    • addDefaultAllowlistBytes

      public MnemonicPolicy.Builder addDefaultAllowlistBytes(com.google.protobuf.ByteString value)
       Default allowed strategies for mnemonics not present in `strategy` list.
       
      repeated string default_allowlist = 1;
      Parameters:
      value - The bytes of the defaultAllowlist to add.
      Returns:
      This builder for chaining.
    • getStrategyAllowlistList

      public List<StrategiesForMnemonic> getStrategyAllowlistList()
      repeated .blaze.strategy_policy.StrategiesForMnemonic strategy_allowlist = 2;
      Specified by:
      getStrategyAllowlistList in interface MnemonicPolicyOrBuilder
    • getStrategyAllowlistCount

      public int getStrategyAllowlistCount()
      repeated .blaze.strategy_policy.StrategiesForMnemonic strategy_allowlist = 2;
      Specified by:
      getStrategyAllowlistCount in interface MnemonicPolicyOrBuilder
    • getStrategyAllowlist

      public StrategiesForMnemonic getStrategyAllowlist(int index)
      repeated .blaze.strategy_policy.StrategiesForMnemonic strategy_allowlist = 2;
      Specified by:
      getStrategyAllowlist in interface MnemonicPolicyOrBuilder
    • setStrategyAllowlist

      public MnemonicPolicy.Builder setStrategyAllowlist(int index, StrategiesForMnemonic value)
      repeated .blaze.strategy_policy.StrategiesForMnemonic strategy_allowlist = 2;
    • setStrategyAllowlist

      public MnemonicPolicy.Builder setStrategyAllowlist(int index, StrategiesForMnemonic.Builder builderForValue)
      repeated .blaze.strategy_policy.StrategiesForMnemonic strategy_allowlist = 2;
    • addStrategyAllowlist

      public MnemonicPolicy.Builder addStrategyAllowlist(StrategiesForMnemonic value)
      repeated .blaze.strategy_policy.StrategiesForMnemonic strategy_allowlist = 2;
    • addStrategyAllowlist

      public MnemonicPolicy.Builder addStrategyAllowlist(int index, StrategiesForMnemonic value)
      repeated .blaze.strategy_policy.StrategiesForMnemonic strategy_allowlist = 2;
    • addStrategyAllowlist

      public MnemonicPolicy.Builder addStrategyAllowlist(StrategiesForMnemonic.Builder builderForValue)
      repeated .blaze.strategy_policy.StrategiesForMnemonic strategy_allowlist = 2;
    • addStrategyAllowlist

      public MnemonicPolicy.Builder addStrategyAllowlist(int index, StrategiesForMnemonic.Builder builderForValue)
      repeated .blaze.strategy_policy.StrategiesForMnemonic strategy_allowlist = 2;
    • addAllStrategyAllowlist

      public MnemonicPolicy.Builder addAllStrategyAllowlist(Iterable<? extends StrategiesForMnemonic> values)
      repeated .blaze.strategy_policy.StrategiesForMnemonic strategy_allowlist = 2;
    • clearStrategyAllowlist

      public MnemonicPolicy.Builder clearStrategyAllowlist()
      repeated .blaze.strategy_policy.StrategiesForMnemonic strategy_allowlist = 2;
    • removeStrategyAllowlist

      public MnemonicPolicy.Builder removeStrategyAllowlist(int index)
      repeated .blaze.strategy_policy.StrategiesForMnemonic strategy_allowlist = 2;
    • getStrategyAllowlistBuilder

      public StrategiesForMnemonic.Builder getStrategyAllowlistBuilder(int index)
      repeated .blaze.strategy_policy.StrategiesForMnemonic strategy_allowlist = 2;
    • getStrategyAllowlistOrBuilder

      public StrategiesForMnemonicOrBuilder getStrategyAllowlistOrBuilder(int index)
      repeated .blaze.strategy_policy.StrategiesForMnemonic strategy_allowlist = 2;
      Specified by:
      getStrategyAllowlistOrBuilder in interface MnemonicPolicyOrBuilder
    • getStrategyAllowlistOrBuilderList

      public List<? extends StrategiesForMnemonicOrBuilder> getStrategyAllowlistOrBuilderList()
      repeated .blaze.strategy_policy.StrategiesForMnemonic strategy_allowlist = 2;
      Specified by:
      getStrategyAllowlistOrBuilderList in interface MnemonicPolicyOrBuilder
    • addStrategyAllowlistBuilder

      public StrategiesForMnemonic.Builder addStrategyAllowlistBuilder()
      repeated .blaze.strategy_policy.StrategiesForMnemonic strategy_allowlist = 2;
    • addStrategyAllowlistBuilder

      public StrategiesForMnemonic.Builder addStrategyAllowlistBuilder(int index)
      repeated .blaze.strategy_policy.StrategiesForMnemonic strategy_allowlist = 2;
    • getStrategyAllowlistBuilderList

      public List<StrategiesForMnemonic.Builder> getStrategyAllowlistBuilderList()
      repeated .blaze.strategy_policy.StrategiesForMnemonic strategy_allowlist = 2;