Class AuthzPolicy.AuthzRule.From.Builder

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

public static final class AuthzPolicy.AuthzRule.From.Builder extends com.google.protobuf.GeneratedMessage.Builder<AuthzPolicy.AuthzRule.From.Builder> implements AuthzPolicy.AuthzRule.FromOrBuilder
 Describes properties of one or more sources of a request.
 
Protobuf type google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From
  • 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.From.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.From.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.From.Builder>
    • getDefaultInstanceForType

      public AuthzPolicy.AuthzRule.From 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

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

      public AuthzPolicy.AuthzRule.From.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.From.Builder>
      Throws:
      IOException
    • getSourcesList

       Optional. Describes the properties of a request's sources. At least one
       of sources or notSources must be specified. Limited to 1 source.
       A match occurs when ANY source (in sources or notSources) matches the
       request. Within a single source, the match follows AND semantics
       across fields and OR semantics within a single field, i.e. a match
       occurs when ANY principal matches AND ANY ipBlocks match.
       
      repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource sources = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSourcesList in interface AuthzPolicy.AuthzRule.FromOrBuilder
    • getSourcesCount

      public int getSourcesCount()
       Optional. Describes the properties of a request's sources. At least one
       of sources or notSources must be specified. Limited to 1 source.
       A match occurs when ANY source (in sources or notSources) matches the
       request. Within a single source, the match follows AND semantics
       across fields and OR semantics within a single field, i.e. a match
       occurs when ANY principal matches AND ANY ipBlocks match.
       
      repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource sources = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSourcesCount in interface AuthzPolicy.AuthzRule.FromOrBuilder
    • getSources

      public AuthzPolicy.AuthzRule.From.RequestSource getSources(int index)
       Optional. Describes the properties of a request's sources. At least one
       of sources or notSources must be specified. Limited to 1 source.
       A match occurs when ANY source (in sources or notSources) matches the
       request. Within a single source, the match follows AND semantics
       across fields and OR semantics within a single field, i.e. a match
       occurs when ANY principal matches AND ANY ipBlocks match.
       
      repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource sources = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSources in interface AuthzPolicy.AuthzRule.FromOrBuilder
    • setSources

       Optional. Describes the properties of a request's sources. At least one
       of sources or notSources must be specified. Limited to 1 source.
       A match occurs when ANY source (in sources or notSources) matches the
       request. Within a single source, the match follows AND semantics
       across fields and OR semantics within a single field, i.e. a match
       occurs when ANY principal matches AND ANY ipBlocks match.
       
      repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource sources = 1 [(.google.api.field_behavior) = OPTIONAL];
    • setSources

       Optional. Describes the properties of a request's sources. At least one
       of sources or notSources must be specified. Limited to 1 source.
       A match occurs when ANY source (in sources or notSources) matches the
       request. Within a single source, the match follows AND semantics
       across fields and OR semantics within a single field, i.e. a match
       occurs when ANY principal matches AND ANY ipBlocks match.
       
      repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource sources = 1 [(.google.api.field_behavior) = OPTIONAL];
    • addSources

       Optional. Describes the properties of a request's sources. At least one
       of sources or notSources must be specified. Limited to 1 source.
       A match occurs when ANY source (in sources or notSources) matches the
       request. Within a single source, the match follows AND semantics
       across fields and OR semantics within a single field, i.e. a match
       occurs when ANY principal matches AND ANY ipBlocks match.
       
      repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource sources = 1 [(.google.api.field_behavior) = OPTIONAL];
    • addSources

       Optional. Describes the properties of a request's sources. At least one
       of sources or notSources must be specified. Limited to 1 source.
       A match occurs when ANY source (in sources or notSources) matches the
       request. Within a single source, the match follows AND semantics
       across fields and OR semantics within a single field, i.e. a match
       occurs when ANY principal matches AND ANY ipBlocks match.
       
      repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource sources = 1 [(.google.api.field_behavior) = OPTIONAL];
    • addSources

       Optional. Describes the properties of a request's sources. At least one
       of sources or notSources must be specified. Limited to 1 source.
       A match occurs when ANY source (in sources or notSources) matches the
       request. Within a single source, the match follows AND semantics
       across fields and OR semantics within a single field, i.e. a match
       occurs when ANY principal matches AND ANY ipBlocks match.
       
      repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource sources = 1 [(.google.api.field_behavior) = OPTIONAL];
    • addSources

       Optional. Describes the properties of a request's sources. At least one
       of sources or notSources must be specified. Limited to 1 source.
       A match occurs when ANY source (in sources or notSources) matches the
       request. Within a single source, the match follows AND semantics
       across fields and OR semantics within a single field, i.e. a match
       occurs when ANY principal matches AND ANY ipBlocks match.
       
      repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource sources = 1 [(.google.api.field_behavior) = OPTIONAL];
    • addAllSources

       Optional. Describes the properties of a request's sources. At least one
       of sources or notSources must be specified. Limited to 1 source.
       A match occurs when ANY source (in sources or notSources) matches the
       request. Within a single source, the match follows AND semantics
       across fields and OR semantics within a single field, i.e. a match
       occurs when ANY principal matches AND ANY ipBlocks match.
       
      repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource sources = 1 [(.google.api.field_behavior) = OPTIONAL];
    • clearSources

      public AuthzPolicy.AuthzRule.From.Builder clearSources()
       Optional. Describes the properties of a request's sources. At least one
       of sources or notSources must be specified. Limited to 1 source.
       A match occurs when ANY source (in sources or notSources) matches the
       request. Within a single source, the match follows AND semantics
       across fields and OR semantics within a single field, i.e. a match
       occurs when ANY principal matches AND ANY ipBlocks match.
       
      repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource sources = 1 [(.google.api.field_behavior) = OPTIONAL];
    • removeSources

      public AuthzPolicy.AuthzRule.From.Builder removeSources(int index)
       Optional. Describes the properties of a request's sources. At least one
       of sources or notSources must be specified. Limited to 1 source.
       A match occurs when ANY source (in sources or notSources) matches the
       request. Within a single source, the match follows AND semantics
       across fields and OR semantics within a single field, i.e. a match
       occurs when ANY principal matches AND ANY ipBlocks match.
       
      repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource sources = 1 [(.google.api.field_behavior) = OPTIONAL];
    • getSourcesBuilder

      public AuthzPolicy.AuthzRule.From.RequestSource.Builder getSourcesBuilder(int index)
       Optional. Describes the properties of a request's sources. At least one
       of sources or notSources must be specified. Limited to 1 source.
       A match occurs when ANY source (in sources or notSources) matches the
       request. Within a single source, the match follows AND semantics
       across fields and OR semantics within a single field, i.e. a match
       occurs when ANY principal matches AND ANY ipBlocks match.
       
      repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource sources = 1 [(.google.api.field_behavior) = OPTIONAL];
    • getSourcesOrBuilder

      public AuthzPolicy.AuthzRule.From.RequestSourceOrBuilder getSourcesOrBuilder(int index)
       Optional. Describes the properties of a request's sources. At least one
       of sources or notSources must be specified. Limited to 1 source.
       A match occurs when ANY source (in sources or notSources) matches the
       request. Within a single source, the match follows AND semantics
       across fields and OR semantics within a single field, i.e. a match
       occurs when ANY principal matches AND ANY ipBlocks match.
       
      repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource sources = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSourcesOrBuilder in interface AuthzPolicy.AuthzRule.FromOrBuilder
    • getSourcesOrBuilderList

      public List<? extends AuthzPolicy.AuthzRule.From.RequestSourceOrBuilder> getSourcesOrBuilderList()
       Optional. Describes the properties of a request's sources. At least one
       of sources or notSources must be specified. Limited to 1 source.
       A match occurs when ANY source (in sources or notSources) matches the
       request. Within a single source, the match follows AND semantics
       across fields and OR semantics within a single field, i.e. a match
       occurs when ANY principal matches AND ANY ipBlocks match.
       
      repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource sources = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSourcesOrBuilderList in interface AuthzPolicy.AuthzRule.FromOrBuilder
    • addSourcesBuilder

       Optional. Describes the properties of a request's sources. At least one
       of sources or notSources must be specified. Limited to 1 source.
       A match occurs when ANY source (in sources or notSources) matches the
       request. Within a single source, the match follows AND semantics
       across fields and OR semantics within a single field, i.e. a match
       occurs when ANY principal matches AND ANY ipBlocks match.
       
      repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource sources = 1 [(.google.api.field_behavior) = OPTIONAL];
    • addSourcesBuilder

      public AuthzPolicy.AuthzRule.From.RequestSource.Builder addSourcesBuilder(int index)
       Optional. Describes the properties of a request's sources. At least one
       of sources or notSources must be specified. Limited to 1 source.
       A match occurs when ANY source (in sources or notSources) matches the
       request. Within a single source, the match follows AND semantics
       across fields and OR semantics within a single field, i.e. a match
       occurs when ANY principal matches AND ANY ipBlocks match.
       
      repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource sources = 1 [(.google.api.field_behavior) = OPTIONAL];
    • getSourcesBuilderList

      public List<AuthzPolicy.AuthzRule.From.RequestSource.Builder> getSourcesBuilderList()
       Optional. Describes the properties of a request's sources. At least one
       of sources or notSources must be specified. Limited to 1 source.
       A match occurs when ANY source (in sources or notSources) matches the
       request. Within a single source, the match follows AND semantics
       across fields and OR semantics within a single field, i.e. a match
       occurs when ANY principal matches AND ANY ipBlocks match.
       
      repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource sources = 1 [(.google.api.field_behavior) = OPTIONAL];
    • getNotSourcesList

      public List<AuthzPolicy.AuthzRule.From.RequestSource> getNotSourcesList()
       Optional. Describes the negated properties of request sources. Matches
       requests from sources that do not match the criteria specified in this
       field. At least one of sources or notSources must be specified.
       
      repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource not_sources = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getNotSourcesList in interface AuthzPolicy.AuthzRule.FromOrBuilder
    • getNotSourcesCount

      public int getNotSourcesCount()
       Optional. Describes the negated properties of request sources. Matches
       requests from sources that do not match the criteria specified in this
       field. At least one of sources or notSources must be specified.
       
      repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource not_sources = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getNotSourcesCount in interface AuthzPolicy.AuthzRule.FromOrBuilder
    • getNotSources

      public AuthzPolicy.AuthzRule.From.RequestSource getNotSources(int index)
       Optional. Describes the negated properties of request sources. Matches
       requests from sources that do not match the criteria specified in this
       field. At least one of sources or notSources must be specified.
       
      repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource not_sources = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getNotSources in interface AuthzPolicy.AuthzRule.FromOrBuilder
    • setNotSources

       Optional. Describes the negated properties of request sources. Matches
       requests from sources that do not match the criteria specified in this
       field. At least one of sources or notSources must be specified.
       
      repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource not_sources = 2 [(.google.api.field_behavior) = OPTIONAL];
    • setNotSources

       Optional. Describes the negated properties of request sources. Matches
       requests from sources that do not match the criteria specified in this
       field. At least one of sources or notSources must be specified.
       
      repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource not_sources = 2 [(.google.api.field_behavior) = OPTIONAL];
    • addNotSources

       Optional. Describes the negated properties of request sources. Matches
       requests from sources that do not match the criteria specified in this
       field. At least one of sources or notSources must be specified.
       
      repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource not_sources = 2 [(.google.api.field_behavior) = OPTIONAL];
    • addNotSources

       Optional. Describes the negated properties of request sources. Matches
       requests from sources that do not match the criteria specified in this
       field. At least one of sources or notSources must be specified.
       
      repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource not_sources = 2 [(.google.api.field_behavior) = OPTIONAL];
    • addNotSources

       Optional. Describes the negated properties of request sources. Matches
       requests from sources that do not match the criteria specified in this
       field. At least one of sources or notSources must be specified.
       
      repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource not_sources = 2 [(.google.api.field_behavior) = OPTIONAL];
    • addNotSources

       Optional. Describes the negated properties of request sources. Matches
       requests from sources that do not match the criteria specified in this
       field. At least one of sources or notSources must be specified.
       
      repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource not_sources = 2 [(.google.api.field_behavior) = OPTIONAL];
    • addAllNotSources

       Optional. Describes the negated properties of request sources. Matches
       requests from sources that do not match the criteria specified in this
       field. At least one of sources or notSources must be specified.
       
      repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource not_sources = 2 [(.google.api.field_behavior) = OPTIONAL];
    • clearNotSources

      public AuthzPolicy.AuthzRule.From.Builder clearNotSources()
       Optional. Describes the negated properties of request sources. Matches
       requests from sources that do not match the criteria specified in this
       field. At least one of sources or notSources must be specified.
       
      repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource not_sources = 2 [(.google.api.field_behavior) = OPTIONAL];
    • removeNotSources

      public AuthzPolicy.AuthzRule.From.Builder removeNotSources(int index)
       Optional. Describes the negated properties of request sources. Matches
       requests from sources that do not match the criteria specified in this
       field. At least one of sources or notSources must be specified.
       
      repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource not_sources = 2 [(.google.api.field_behavior) = OPTIONAL];
    • getNotSourcesBuilder

      public AuthzPolicy.AuthzRule.From.RequestSource.Builder getNotSourcesBuilder(int index)
       Optional. Describes the negated properties of request sources. Matches
       requests from sources that do not match the criteria specified in this
       field. At least one of sources or notSources must be specified.
       
      repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource not_sources = 2 [(.google.api.field_behavior) = OPTIONAL];
    • getNotSourcesOrBuilder

      public AuthzPolicy.AuthzRule.From.RequestSourceOrBuilder getNotSourcesOrBuilder(int index)
       Optional. Describes the negated properties of request sources. Matches
       requests from sources that do not match the criteria specified in this
       field. At least one of sources or notSources must be specified.
       
      repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource not_sources = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getNotSourcesOrBuilder in interface AuthzPolicy.AuthzRule.FromOrBuilder
    • getNotSourcesOrBuilderList

      public List<? extends AuthzPolicy.AuthzRule.From.RequestSourceOrBuilder> getNotSourcesOrBuilderList()
       Optional. Describes the negated properties of request sources. Matches
       requests from sources that do not match the criteria specified in this
       field. At least one of sources or notSources must be specified.
       
      repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource not_sources = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getNotSourcesOrBuilderList in interface AuthzPolicy.AuthzRule.FromOrBuilder
    • addNotSourcesBuilder

      public AuthzPolicy.AuthzRule.From.RequestSource.Builder addNotSourcesBuilder()
       Optional. Describes the negated properties of request sources. Matches
       requests from sources that do not match the criteria specified in this
       field. At least one of sources or notSources must be specified.
       
      repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource not_sources = 2 [(.google.api.field_behavior) = OPTIONAL];
    • addNotSourcesBuilder

      public AuthzPolicy.AuthzRule.From.RequestSource.Builder addNotSourcesBuilder(int index)
       Optional. Describes the negated properties of request sources. Matches
       requests from sources that do not match the criteria specified in this
       field. At least one of sources or notSources must be specified.
       
      repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource not_sources = 2 [(.google.api.field_behavior) = OPTIONAL];
    • getNotSourcesBuilderList

      public List<AuthzPolicy.AuthzRule.From.RequestSource.Builder> getNotSourcesBuilderList()
       Optional. Describes the negated properties of request sources. Matches
       requests from sources that do not match the criteria specified in this
       field. At least one of sources or notSources must be specified.
       
      repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From.RequestSource not_sources = 2 [(.google.api.field_behavior) = OPTIONAL];