Class AddressGroup.Builder

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

public static final class AddressGroup.Builder extends com.google.protobuf.GeneratedMessage.Builder<AddressGroup.Builder> implements AddressGroupOrBuilder
 AddressGroup is a resource that specifies how a collection of IP/DNS used
 in Firewall Policy.
 
Protobuf type google.cloud.networksecurity.v1.AddressGroup
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<AddressGroup.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<AddressGroup.Builder>
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<AddressGroup.Builder>
    • clear

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

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

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

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

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

      public AddressGroup.Builder mergeFrom(AddressGroup other)
    • isInitialized

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

      public AddressGroup.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<AddressGroup.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       Required. Name of the AddressGroup resource. It matches pattern
       `projects/*/locations/{location}/addressGroups/<address_group>`.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getName in interface AddressGroupOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Required. Name of the AddressGroup resource. It matches pattern
       `projects/*/locations/{location}/addressGroups/<address_group>`.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getNameBytes in interface AddressGroupOrBuilder
      Returns:
      The bytes for name.
    • setName

      public AddressGroup.Builder setName(String value)
       Required. Name of the AddressGroup resource. It matches pattern
       `projects/*/locations/{location}/addressGroups/<address_group>`.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public AddressGroup.Builder clearName()
       Required. Name of the AddressGroup resource. It matches pattern
       `projects/*/locations/{location}/addressGroups/<address_group>`.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setNameBytes

      public AddressGroup.Builder setNameBytes(com.google.protobuf.ByteString value)
       Required. Name of the AddressGroup resource. It matches pattern
       `projects/*/locations/{location}/addressGroups/<address_group>`.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getDescription

      public String getDescription()
       Optional. Free-text description of the resource.
       
      string description = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDescription in interface AddressGroupOrBuilder
      Returns:
      The description.
    • getDescriptionBytes

      public com.google.protobuf.ByteString getDescriptionBytes()
       Optional. Free-text description of the resource.
       
      string description = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDescriptionBytes in interface AddressGroupOrBuilder
      Returns:
      The bytes for description.
    • setDescription

      public AddressGroup.Builder setDescription(String value)
       Optional. Free-text description of the resource.
       
      string description = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The description to set.
      Returns:
      This builder for chaining.
    • clearDescription

      public AddressGroup.Builder clearDescription()
       Optional. Free-text description of the resource.
       
      string description = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setDescriptionBytes

      public AddressGroup.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
       Optional. Free-text description of the resource.
       
      string description = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for description to set.
      Returns:
      This builder for chaining.
    • hasCreateTime

      public boolean hasCreateTime()
       Output only. The timestamp when the resource was created.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasCreateTime in interface AddressGroupOrBuilder
      Returns:
      Whether the createTime field is set.
    • getCreateTime

      public com.google.protobuf.Timestamp getCreateTime()
       Output only. The timestamp when the resource was created.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTime in interface AddressGroupOrBuilder
      Returns:
      The createTime.
    • setCreateTime

      public AddressGroup.Builder setCreateTime(com.google.protobuf.Timestamp value)
       Output only. The timestamp when the resource was created.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setCreateTime

      public AddressGroup.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. The timestamp when the resource was created.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeCreateTime

      public AddressGroup.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
       Output only. The timestamp when the resource was created.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearCreateTime

      public AddressGroup.Builder clearCreateTime()
       Output only. The timestamp when the resource was created.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
       Output only. The timestamp when the resource was created.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
       Output only. The timestamp when the resource was created.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTimeOrBuilder in interface AddressGroupOrBuilder
    • hasUpdateTime

      public boolean hasUpdateTime()
       Output only. The timestamp when the resource was updated.
       
      .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasUpdateTime in interface AddressGroupOrBuilder
      Returns:
      Whether the updateTime field is set.
    • getUpdateTime

      public com.google.protobuf.Timestamp getUpdateTime()
       Output only. The timestamp when the resource was updated.
       
      .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTime in interface AddressGroupOrBuilder
      Returns:
      The updateTime.
    • setUpdateTime

      public AddressGroup.Builder setUpdateTime(com.google.protobuf.Timestamp value)
       Output only. The timestamp when the resource was updated.
       
      .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setUpdateTime

      public AddressGroup.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. The timestamp when the resource was updated.
       
      .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeUpdateTime

      public AddressGroup.Builder mergeUpdateTime(com.google.protobuf.Timestamp value)
       Output only. The timestamp when the resource was updated.
       
      .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearUpdateTime

      public AddressGroup.Builder clearUpdateTime()
       Output only. The timestamp when the resource was updated.
       
      .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUpdateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()
       Output only. The timestamp when the resource was updated.
       
      .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUpdateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
       Output only. The timestamp when the resource was updated.
       
      .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTimeOrBuilder in interface AddressGroupOrBuilder
    • getLabelsCount

      public int getLabelsCount()
      Description copied from interface: AddressGroupOrBuilder
       Optional. Set of label tags associated with the AddressGroup resource.
       
      map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsCount in interface AddressGroupOrBuilder
    • containsLabels

      public boolean containsLabels(String key)
       Optional. Set of label tags associated with the AddressGroup resource.
       
      map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      containsLabels in interface AddressGroupOrBuilder
    • getLabels

      @Deprecated public Map<String,String> getLabels()
      Deprecated.
      Use getLabelsMap() instead.
      Specified by:
      getLabels in interface AddressGroupOrBuilder
    • getLabelsMap

      public Map<String,String> getLabelsMap()
       Optional. Set of label tags associated with the AddressGroup resource.
       
      map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsMap in interface AddressGroupOrBuilder
    • getLabelsOrDefault

      public String getLabelsOrDefault(String key, String defaultValue)
       Optional. Set of label tags associated with the AddressGroup resource.
       
      map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsOrDefault in interface AddressGroupOrBuilder
    • getLabelsOrThrow

      public String getLabelsOrThrow(String key)
       Optional. Set of label tags associated with the AddressGroup resource.
       
      map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsOrThrow in interface AddressGroupOrBuilder
    • clearLabels

      public AddressGroup.Builder clearLabels()
    • removeLabels

      public AddressGroup.Builder removeLabels(String key)
       Optional. Set of label tags associated with the AddressGroup resource.
       
      map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];
    • getMutableLabels

      @Deprecated public Map<String,String> getMutableLabels()
      Deprecated.
      Use alternate mutation accessors instead.
    • putLabels

      public AddressGroup.Builder putLabels(String key, String value)
       Optional. Set of label tags associated with the AddressGroup resource.
       
      map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];
    • putAllLabels

      public AddressGroup.Builder putAllLabels(Map<String,String> values)
       Optional. Set of label tags associated with the AddressGroup resource.
       
      map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];
    • getTypeValue

      public int getTypeValue()
       Required. The type of the Address Group. Possible values are "IPv4" or
       "IPV6".
       
      .google.cloud.networksecurity.v1.AddressGroup.Type type = 6 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getTypeValue in interface AddressGroupOrBuilder
      Returns:
      The enum numeric value on the wire for type.
    • setTypeValue

      public AddressGroup.Builder setTypeValue(int value)
       Required. The type of the Address Group. Possible values are "IPv4" or
       "IPV6".
       
      .google.cloud.networksecurity.v1.AddressGroup.Type type = 6 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The enum numeric value on the wire for type to set.
      Returns:
      This builder for chaining.
    • getType

      public AddressGroup.Type getType()
       Required. The type of the Address Group. Possible values are "IPv4" or
       "IPV6".
       
      .google.cloud.networksecurity.v1.AddressGroup.Type type = 6 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getType in interface AddressGroupOrBuilder
      Returns:
      The type.
    • setType

      public AddressGroup.Builder setType(AddressGroup.Type value)
       Required. The type of the Address Group. Possible values are "IPv4" or
       "IPV6".
       
      .google.cloud.networksecurity.v1.AddressGroup.Type type = 6 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The type to set.
      Returns:
      This builder for chaining.
    • clearType

      public AddressGroup.Builder clearType()
       Required. The type of the Address Group. Possible values are "IPv4" or
       "IPV6".
       
      .google.cloud.networksecurity.v1.AddressGroup.Type type = 6 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • getItemsList

      public com.google.protobuf.ProtocolStringList getItemsList()
       Optional. List of items.
       
      repeated string items = 7 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getItemsList in interface AddressGroupOrBuilder
      Returns:
      A list containing the items.
    • getItemsCount

      public int getItemsCount()
       Optional. List of items.
       
      repeated string items = 7 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getItemsCount in interface AddressGroupOrBuilder
      Returns:
      The count of items.
    • getItems

      public String getItems(int index)
       Optional. List of items.
       
      repeated string items = 7 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getItems in interface AddressGroupOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The items at the given index.
    • getItemsBytes

      public com.google.protobuf.ByteString getItemsBytes(int index)
       Optional. List of items.
       
      repeated string items = 7 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getItemsBytes in interface AddressGroupOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the items at the given index.
    • setItems

      public AddressGroup.Builder setItems(int index, String value)
       Optional. List of items.
       
      repeated string items = 7 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      index - The index to set the value at.
      value - The items to set.
      Returns:
      This builder for chaining.
    • addItems

      public AddressGroup.Builder addItems(String value)
       Optional. List of items.
       
      repeated string items = 7 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The items to add.
      Returns:
      This builder for chaining.
    • addAllItems

      public AddressGroup.Builder addAllItems(Iterable<String> values)
       Optional. List of items.
       
      repeated string items = 7 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      values - The items to add.
      Returns:
      This builder for chaining.
    • clearItems

      public AddressGroup.Builder clearItems()
       Optional. List of items.
       
      repeated string items = 7 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • addItemsBytes

      public AddressGroup.Builder addItemsBytes(com.google.protobuf.ByteString value)
       Optional. List of items.
       
      repeated string items = 7 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes of the items to add.
      Returns:
      This builder for chaining.
    • getCapacity

      public int getCapacity()
       Required. Capacity of the Address Group
       
      int32 capacity = 8 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getCapacity in interface AddressGroupOrBuilder
      Returns:
      The capacity.
    • setCapacity

      public AddressGroup.Builder setCapacity(int value)
       Required. Capacity of the Address Group
       
      int32 capacity = 8 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The capacity to set.
      Returns:
      This builder for chaining.
    • clearCapacity

      public AddressGroup.Builder clearCapacity()
       Required. Capacity of the Address Group
       
      int32 capacity = 8 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • getSelfLink

      public String getSelfLink()
       Output only. Server-defined fully-qualified URL for this resource.
       
      string self_link = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getSelfLink in interface AddressGroupOrBuilder
      Returns:
      The selfLink.
    • getSelfLinkBytes

      public com.google.protobuf.ByteString getSelfLinkBytes()
       Output only. Server-defined fully-qualified URL for this resource.
       
      string self_link = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getSelfLinkBytes in interface AddressGroupOrBuilder
      Returns:
      The bytes for selfLink.
    • setSelfLink

      public AddressGroup.Builder setSelfLink(String value)
       Output only. Server-defined fully-qualified URL for this resource.
       
      string self_link = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The selfLink to set.
      Returns:
      This builder for chaining.
    • clearSelfLink

      public AddressGroup.Builder clearSelfLink()
       Output only. Server-defined fully-qualified URL for this resource.
       
      string self_link = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setSelfLinkBytes

      public AddressGroup.Builder setSelfLinkBytes(com.google.protobuf.ByteString value)
       Output only. Server-defined fully-qualified URL for this resource.
       
      string self_link = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for selfLink to set.
      Returns:
      This builder for chaining.
    • getPurposeList

      public List<AddressGroup.Purpose> getPurposeList()
       Optional. List of supported purposes of the Address Group.
       
      repeated .google.cloud.networksecurity.v1.AddressGroup.Purpose purpose = 10 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPurposeList in interface AddressGroupOrBuilder
      Returns:
      A list containing the purpose.
    • getPurposeCount

      public int getPurposeCount()
       Optional. List of supported purposes of the Address Group.
       
      repeated .google.cloud.networksecurity.v1.AddressGroup.Purpose purpose = 10 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPurposeCount in interface AddressGroupOrBuilder
      Returns:
      The count of purpose.
    • getPurpose

      public AddressGroup.Purpose getPurpose(int index)
       Optional. List of supported purposes of the Address Group.
       
      repeated .google.cloud.networksecurity.v1.AddressGroup.Purpose purpose = 10 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPurpose in interface AddressGroupOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The purpose at the given index.
    • setPurpose

      public AddressGroup.Builder setPurpose(int index, AddressGroup.Purpose value)
       Optional. List of supported purposes of the Address Group.
       
      repeated .google.cloud.networksecurity.v1.AddressGroup.Purpose purpose = 10 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      index - The index to set the value at.
      value - The purpose to set.
      Returns:
      This builder for chaining.
    • addPurpose

      public AddressGroup.Builder addPurpose(AddressGroup.Purpose value)
       Optional. List of supported purposes of the Address Group.
       
      repeated .google.cloud.networksecurity.v1.AddressGroup.Purpose purpose = 10 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The purpose to add.
      Returns:
      This builder for chaining.
    • addAllPurpose

      public AddressGroup.Builder addAllPurpose(Iterable<? extends AddressGroup.Purpose> values)
       Optional. List of supported purposes of the Address Group.
       
      repeated .google.cloud.networksecurity.v1.AddressGroup.Purpose purpose = 10 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      values - The purpose to add.
      Returns:
      This builder for chaining.
    • clearPurpose

      public AddressGroup.Builder clearPurpose()
       Optional. List of supported purposes of the Address Group.
       
      repeated .google.cloud.networksecurity.v1.AddressGroup.Purpose purpose = 10 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • getPurposeValueList

      public List<Integer> getPurposeValueList()
       Optional. List of supported purposes of the Address Group.
       
      repeated .google.cloud.networksecurity.v1.AddressGroup.Purpose purpose = 10 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPurposeValueList in interface AddressGroupOrBuilder
      Returns:
      A list containing the enum numeric values on the wire for purpose.
    • getPurposeValue

      public int getPurposeValue(int index)
       Optional. List of supported purposes of the Address Group.
       
      repeated .google.cloud.networksecurity.v1.AddressGroup.Purpose purpose = 10 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPurposeValue in interface AddressGroupOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The enum numeric value on the wire of purpose at the given index.
    • setPurposeValue

      public AddressGroup.Builder setPurposeValue(int index, int value)
       Optional. List of supported purposes of the Address Group.
       
      repeated .google.cloud.networksecurity.v1.AddressGroup.Purpose purpose = 10 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      index - The index to set the value at.
      value - The enum numeric value on the wire for purpose to set.
      Returns:
      This builder for chaining.
    • addPurposeValue

      public AddressGroup.Builder addPurposeValue(int value)
       Optional. List of supported purposes of the Address Group.
       
      repeated .google.cloud.networksecurity.v1.AddressGroup.Purpose purpose = 10 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The enum numeric value on the wire for purpose to add.
      Returns:
      This builder for chaining.
    • addAllPurposeValue

      public AddressGroup.Builder addAllPurposeValue(Iterable<Integer> values)
       Optional. List of supported purposes of the Address Group.
       
      repeated .google.cloud.networksecurity.v1.AddressGroup.Purpose purpose = 10 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      values - The enum numeric values on the wire for purpose to add.
      Returns:
      This builder for chaining.