Class WafExpressionSet.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<WafExpressionSet.Builder>
com.google.cloud.compute.v1.WafExpressionSet.Builder
All Implemented Interfaces:
WafExpressionSetOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
WafExpressionSet

public static final class WafExpressionSet.Builder extends com.google.protobuf.GeneratedMessage.Builder<WafExpressionSet.Builder> implements WafExpressionSetOrBuilder
 
Protobuf type google.cloud.compute.v1.WafExpressionSet
  • 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<WafExpressionSet.Builder>
    • clear

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

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

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

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

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

      public WafExpressionSet.Builder mergeFrom(WafExpressionSet other)
    • isInitialized

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

      public WafExpressionSet.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<WafExpressionSet.Builder>
      Throws:
      IOException
    • getAliasesList

      public com.google.protobuf.ProtocolStringList getAliasesList()
       A list of alternate IDs. The format should be:
       - E.g. XSS-stable
       Generic suffix like "stable" is particularly useful if a policy
       likes to avail newer set of expressions without having to change
       the policy.
       A given alias name can't be used for more than one entity set.
       
      repeated string aliases = 159207166;
      Specified by:
      getAliasesList in interface WafExpressionSetOrBuilder
      Returns:
      A list containing the aliases.
    • getAliasesCount

      public int getAliasesCount()
       A list of alternate IDs. The format should be:
       - E.g. XSS-stable
       Generic suffix like "stable" is particularly useful if a policy
       likes to avail newer set of expressions without having to change
       the policy.
       A given alias name can't be used for more than one entity set.
       
      repeated string aliases = 159207166;
      Specified by:
      getAliasesCount in interface WafExpressionSetOrBuilder
      Returns:
      The count of aliases.
    • getAliases

      public String getAliases(int index)
       A list of alternate IDs. The format should be:
       - E.g. XSS-stable
       Generic suffix like "stable" is particularly useful if a policy
       likes to avail newer set of expressions without having to change
       the policy.
       A given alias name can't be used for more than one entity set.
       
      repeated string aliases = 159207166;
      Specified by:
      getAliases in interface WafExpressionSetOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The aliases at the given index.
    • getAliasesBytes

      public com.google.protobuf.ByteString getAliasesBytes(int index)
       A list of alternate IDs. The format should be:
       - E.g. XSS-stable
       Generic suffix like "stable" is particularly useful if a policy
       likes to avail newer set of expressions without having to change
       the policy.
       A given alias name can't be used for more than one entity set.
       
      repeated string aliases = 159207166;
      Specified by:
      getAliasesBytes in interface WafExpressionSetOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the aliases at the given index.
    • setAliases

      public WafExpressionSet.Builder setAliases(int index, String value)
       A list of alternate IDs. The format should be:
       - E.g. XSS-stable
       Generic suffix like "stable" is particularly useful if a policy
       likes to avail newer set of expressions without having to change
       the policy.
       A given alias name can't be used for more than one entity set.
       
      repeated string aliases = 159207166;
      Parameters:
      index - The index to set the value at.
      value - The aliases to set.
      Returns:
      This builder for chaining.
    • addAliases

      public WafExpressionSet.Builder addAliases(String value)
       A list of alternate IDs. The format should be:
       - E.g. XSS-stable
       Generic suffix like "stable" is particularly useful if a policy
       likes to avail newer set of expressions without having to change
       the policy.
       A given alias name can't be used for more than one entity set.
       
      repeated string aliases = 159207166;
      Parameters:
      value - The aliases to add.
      Returns:
      This builder for chaining.
    • addAllAliases

      public WafExpressionSet.Builder addAllAliases(Iterable<String> values)
       A list of alternate IDs. The format should be:
       - E.g. XSS-stable
       Generic suffix like "stable" is particularly useful if a policy
       likes to avail newer set of expressions without having to change
       the policy.
       A given alias name can't be used for more than one entity set.
       
      repeated string aliases = 159207166;
      Parameters:
      values - The aliases to add.
      Returns:
      This builder for chaining.
    • clearAliases

      public WafExpressionSet.Builder clearAliases()
       A list of alternate IDs. The format should be:
       - E.g. XSS-stable
       Generic suffix like "stable" is particularly useful if a policy
       likes to avail newer set of expressions without having to change
       the policy.
       A given alias name can't be used for more than one entity set.
       
      repeated string aliases = 159207166;
      Returns:
      This builder for chaining.
    • addAliasesBytes

      public WafExpressionSet.Builder addAliasesBytes(com.google.protobuf.ByteString value)
       A list of alternate IDs. The format should be:
       - E.g. XSS-stable
       Generic suffix like "stable" is particularly useful if a policy
       likes to avail newer set of expressions without having to change
       the policy.
       A given alias name can't be used for more than one entity set.
       
      repeated string aliases = 159207166;
      Parameters:
      value - The bytes of the aliases to add.
      Returns:
      This builder for chaining.
    • getExpressionsList

      public List<WafExpressionSetExpression> getExpressionsList()
       List of available expressions.
       
      repeated .google.cloud.compute.v1.WafExpressionSetExpression expressions = 175554779;
      Specified by:
      getExpressionsList in interface WafExpressionSetOrBuilder
    • getExpressionsCount

      public int getExpressionsCount()
       List of available expressions.
       
      repeated .google.cloud.compute.v1.WafExpressionSetExpression expressions = 175554779;
      Specified by:
      getExpressionsCount in interface WafExpressionSetOrBuilder
    • getExpressions

      public WafExpressionSetExpression getExpressions(int index)
       List of available expressions.
       
      repeated .google.cloud.compute.v1.WafExpressionSetExpression expressions = 175554779;
      Specified by:
      getExpressions in interface WafExpressionSetOrBuilder
    • setExpressions

      public WafExpressionSet.Builder setExpressions(int index, WafExpressionSetExpression value)
       List of available expressions.
       
      repeated .google.cloud.compute.v1.WafExpressionSetExpression expressions = 175554779;
    • setExpressions

      public WafExpressionSet.Builder setExpressions(int index, WafExpressionSetExpression.Builder builderForValue)
       List of available expressions.
       
      repeated .google.cloud.compute.v1.WafExpressionSetExpression expressions = 175554779;
    • addExpressions

       List of available expressions.
       
      repeated .google.cloud.compute.v1.WafExpressionSetExpression expressions = 175554779;
    • addExpressions

      public WafExpressionSet.Builder addExpressions(int index, WafExpressionSetExpression value)
       List of available expressions.
       
      repeated .google.cloud.compute.v1.WafExpressionSetExpression expressions = 175554779;
    • addExpressions

      public WafExpressionSet.Builder addExpressions(WafExpressionSetExpression.Builder builderForValue)
       List of available expressions.
       
      repeated .google.cloud.compute.v1.WafExpressionSetExpression expressions = 175554779;
    • addExpressions

      public WafExpressionSet.Builder addExpressions(int index, WafExpressionSetExpression.Builder builderForValue)
       List of available expressions.
       
      repeated .google.cloud.compute.v1.WafExpressionSetExpression expressions = 175554779;
    • addAllExpressions

      public WafExpressionSet.Builder addAllExpressions(Iterable<? extends WafExpressionSetExpression> values)
       List of available expressions.
       
      repeated .google.cloud.compute.v1.WafExpressionSetExpression expressions = 175554779;
    • clearExpressions

      public WafExpressionSet.Builder clearExpressions()
       List of available expressions.
       
      repeated .google.cloud.compute.v1.WafExpressionSetExpression expressions = 175554779;
    • removeExpressions

      public WafExpressionSet.Builder removeExpressions(int index)
       List of available expressions.
       
      repeated .google.cloud.compute.v1.WafExpressionSetExpression expressions = 175554779;
    • getExpressionsBuilder

      public WafExpressionSetExpression.Builder getExpressionsBuilder(int index)
       List of available expressions.
       
      repeated .google.cloud.compute.v1.WafExpressionSetExpression expressions = 175554779;
    • getExpressionsOrBuilder

      public WafExpressionSetExpressionOrBuilder getExpressionsOrBuilder(int index)
       List of available expressions.
       
      repeated .google.cloud.compute.v1.WafExpressionSetExpression expressions = 175554779;
      Specified by:
      getExpressionsOrBuilder in interface WafExpressionSetOrBuilder
    • getExpressionsOrBuilderList

      public List<? extends WafExpressionSetExpressionOrBuilder> getExpressionsOrBuilderList()
       List of available expressions.
       
      repeated .google.cloud.compute.v1.WafExpressionSetExpression expressions = 175554779;
      Specified by:
      getExpressionsOrBuilderList in interface WafExpressionSetOrBuilder
    • addExpressionsBuilder

      public WafExpressionSetExpression.Builder addExpressionsBuilder()
       List of available expressions.
       
      repeated .google.cloud.compute.v1.WafExpressionSetExpression expressions = 175554779;
    • addExpressionsBuilder

      public WafExpressionSetExpression.Builder addExpressionsBuilder(int index)
       List of available expressions.
       
      repeated .google.cloud.compute.v1.WafExpressionSetExpression expressions = 175554779;
    • getExpressionsBuilderList

      public List<WafExpressionSetExpression.Builder> getExpressionsBuilderList()
       List of available expressions.
       
      repeated .google.cloud.compute.v1.WafExpressionSetExpression expressions = 175554779;
    • hasId

      public boolean hasId()
       Google specified expression set ID. The format should be:
       - E.g. XSS-20170329
       required
       
      optional string id = 3355;
      Specified by:
      hasId in interface WafExpressionSetOrBuilder
      Returns:
      Whether the id field is set.
    • getId

      public String getId()
       Google specified expression set ID. The format should be:
       - E.g. XSS-20170329
       required
       
      optional string id = 3355;
      Specified by:
      getId in interface WafExpressionSetOrBuilder
      Returns:
      The id.
    • getIdBytes

      public com.google.protobuf.ByteString getIdBytes()
       Google specified expression set ID. The format should be:
       - E.g. XSS-20170329
       required
       
      optional string id = 3355;
      Specified by:
      getIdBytes in interface WafExpressionSetOrBuilder
      Returns:
      The bytes for id.
    • setId

      public WafExpressionSet.Builder setId(String value)
       Google specified expression set ID. The format should be:
       - E.g. XSS-20170329
       required
       
      optional string id = 3355;
      Parameters:
      value - The id to set.
      Returns:
      This builder for chaining.
    • clearId

      public WafExpressionSet.Builder clearId()
       Google specified expression set ID. The format should be:
       - E.g. XSS-20170329
       required
       
      optional string id = 3355;
      Returns:
      This builder for chaining.
    • setIdBytes

      public WafExpressionSet.Builder setIdBytes(com.google.protobuf.ByteString value)
       Google specified expression set ID. The format should be:
       - E.g. XSS-20170329
       required
       
      optional string id = 3355;
      Parameters:
      value - The bytes for id to set.
      Returns:
      This builder for chaining.