Class AuthzPolicy.AuthzRule.RequestResource.TagValueIdSet.Builder

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

public static final class AuthzPolicy.AuthzRule.RequestResource.TagValueIdSet.Builder extends com.google.protobuf.GeneratedMessage.Builder<AuthzPolicy.AuthzRule.RequestResource.TagValueIdSet.Builder> implements AuthzPolicy.AuthzRule.RequestResource.TagValueIdSetOrBuilder
 Describes a set of resource tag value permanent IDs to match against
 the resource manager tags value associated with the source VM of a
 request.
 
Protobuf type google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.RequestResource.TagValueIdSet
  • 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<AuthzPolicy.AuthzRule.RequestResource.TagValueIdSet.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<AuthzPolicy.AuthzRule.RequestResource.TagValueIdSet.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<AuthzPolicy.AuthzRule.RequestResource.TagValueIdSet.Builder>
    • getDefaultInstanceForType

      public AuthzPolicy.AuthzRule.RequestResource.TagValueIdSet getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public AuthzPolicy.AuthzRule.RequestResource.TagValueIdSet.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<AuthzPolicy.AuthzRule.RequestResource.TagValueIdSet.Builder>
    • mergeFrom

    • isInitialized

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

      public AuthzPolicy.AuthzRule.RequestResource.TagValueIdSet.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<AuthzPolicy.AuthzRule.RequestResource.TagValueIdSet.Builder>
      Throws:
      IOException
    • getIdsList

      public List<Long> getIdsList()
       Required. A list of resource tag value permanent IDs to match against
       the resource manager tags value associated with the source VM of a
       request. The match follows AND semantics which means all
       the ids must match. Limited to 5 ids in the Tag value id set.
       
      repeated int64 ids = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getIdsList in interface AuthzPolicy.AuthzRule.RequestResource.TagValueIdSetOrBuilder
      Returns:
      A list containing the ids.
    • getIdsCount

      public int getIdsCount()
       Required. A list of resource tag value permanent IDs to match against
       the resource manager tags value associated with the source VM of a
       request. The match follows AND semantics which means all
       the ids must match. Limited to 5 ids in the Tag value id set.
       
      repeated int64 ids = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getIdsCount in interface AuthzPolicy.AuthzRule.RequestResource.TagValueIdSetOrBuilder
      Returns:
      The count of ids.
    • getIds

      public long getIds(int index)
       Required. A list of resource tag value permanent IDs to match against
       the resource manager tags value associated with the source VM of a
       request. The match follows AND semantics which means all
       the ids must match. Limited to 5 ids in the Tag value id set.
       
      repeated int64 ids = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getIds in interface AuthzPolicy.AuthzRule.RequestResource.TagValueIdSetOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The ids at the given index.
    • setIds

      public AuthzPolicy.AuthzRule.RequestResource.TagValueIdSet.Builder setIds(int index, long value)
       Required. A list of resource tag value permanent IDs to match against
       the resource manager tags value associated with the source VM of a
       request. The match follows AND semantics which means all
       the ids must match. Limited to 5 ids in the Tag value id set.
       
      repeated int64 ids = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      index - The index to set the value at.
      value - The ids to set.
      Returns:
      This builder for chaining.
    • addIds

       Required. A list of resource tag value permanent IDs to match against
       the resource manager tags value associated with the source VM of a
       request. The match follows AND semantics which means all
       the ids must match. Limited to 5 ids in the Tag value id set.
       
      repeated int64 ids = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The ids to add.
      Returns:
      This builder for chaining.
    • addAllIds

       Required. A list of resource tag value permanent IDs to match against
       the resource manager tags value associated with the source VM of a
       request. The match follows AND semantics which means all
       the ids must match. Limited to 5 ids in the Tag value id set.
       
      repeated int64 ids = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      values - The ids to add.
      Returns:
      This builder for chaining.
    • clearIds

       Required. A list of resource tag value permanent IDs to match against
       the resource manager tags value associated with the source VM of a
       request. The match follows AND semantics which means all
       the ids must match. Limited to 5 ids in the Tag value id set.
       
      repeated int64 ids = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.