Class AuthzPolicy.Target.Builder

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

public static final class AuthzPolicy.Target.Builder extends com.google.protobuf.GeneratedMessage.Builder<AuthzPolicy.Target.Builder> implements AuthzPolicy.TargetOrBuilder
 Specifies the set of targets to which this policy should be applied to.
 
Protobuf type google.cloud.networksecurity.v1.AuthzPolicy.Target
  • 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.Target.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.Target.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.Target.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public AuthzPolicy.Target.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.Target.Builder>
      Throws:
      IOException
    • getLoadBalancingSchemeValue

      public int getLoadBalancingSchemeValue()
       Optional. All gateways and forwarding rules referenced by this policy and
       extensions must share the same load balancing scheme. Supported values:
       `INTERNAL_MANAGED` and `EXTERNAL_MANAGED`. For more information, refer
       to [Backend services
       overview](https://cloud.google.com/load-balancing/docs/backend-service).
       
      .google.cloud.networksecurity.v1.AuthzPolicy.LoadBalancingScheme load_balancing_scheme = 8 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLoadBalancingSchemeValue in interface AuthzPolicy.TargetOrBuilder
      Returns:
      The enum numeric value on the wire for loadBalancingScheme.
    • setLoadBalancingSchemeValue

      public AuthzPolicy.Target.Builder setLoadBalancingSchemeValue(int value)
       Optional. All gateways and forwarding rules referenced by this policy and
       extensions must share the same load balancing scheme. Supported values:
       `INTERNAL_MANAGED` and `EXTERNAL_MANAGED`. For more information, refer
       to [Backend services
       overview](https://cloud.google.com/load-balancing/docs/backend-service).
       
      .google.cloud.networksecurity.v1.AuthzPolicy.LoadBalancingScheme load_balancing_scheme = 8 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The enum numeric value on the wire for loadBalancingScheme to set.
      Returns:
      This builder for chaining.
    • getLoadBalancingScheme

      public AuthzPolicy.LoadBalancingScheme getLoadBalancingScheme()
       Optional. All gateways and forwarding rules referenced by this policy and
       extensions must share the same load balancing scheme. Supported values:
       `INTERNAL_MANAGED` and `EXTERNAL_MANAGED`. For more information, refer
       to [Backend services
       overview](https://cloud.google.com/load-balancing/docs/backend-service).
       
      .google.cloud.networksecurity.v1.AuthzPolicy.LoadBalancingScheme load_balancing_scheme = 8 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLoadBalancingScheme in interface AuthzPolicy.TargetOrBuilder
      Returns:
      The loadBalancingScheme.
    • setLoadBalancingScheme

      public AuthzPolicy.Target.Builder setLoadBalancingScheme(AuthzPolicy.LoadBalancingScheme value)
       Optional. All gateways and forwarding rules referenced by this policy and
       extensions must share the same load balancing scheme. Supported values:
       `INTERNAL_MANAGED` and `EXTERNAL_MANAGED`. For more information, refer
       to [Backend services
       overview](https://cloud.google.com/load-balancing/docs/backend-service).
       
      .google.cloud.networksecurity.v1.AuthzPolicy.LoadBalancingScheme load_balancing_scheme = 8 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The loadBalancingScheme to set.
      Returns:
      This builder for chaining.
    • clearLoadBalancingScheme

      public AuthzPolicy.Target.Builder clearLoadBalancingScheme()
       Optional. All gateways and forwarding rules referenced by this policy and
       extensions must share the same load balancing scheme. Supported values:
       `INTERNAL_MANAGED` and `EXTERNAL_MANAGED`. For more information, refer
       to [Backend services
       overview](https://cloud.google.com/load-balancing/docs/backend-service).
       
      .google.cloud.networksecurity.v1.AuthzPolicy.LoadBalancingScheme load_balancing_scheme = 8 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • getResourcesList

      public com.google.protobuf.ProtocolStringList getResourcesList()
       Required. A list of references to the Forwarding Rules on which this
       policy will be applied.
       
      repeated string resources = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getResourcesList in interface AuthzPolicy.TargetOrBuilder
      Returns:
      A list containing the resources.
    • getResourcesCount

      public int getResourcesCount()
       Required. A list of references to the Forwarding Rules on which this
       policy will be applied.
       
      repeated string resources = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getResourcesCount in interface AuthzPolicy.TargetOrBuilder
      Returns:
      The count of resources.
    • getResources

      public String getResources(int index)
       Required. A list of references to the Forwarding Rules on which this
       policy will be applied.
       
      repeated string resources = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getResources in interface AuthzPolicy.TargetOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The resources at the given index.
    • getResourcesBytes

      public com.google.protobuf.ByteString getResourcesBytes(int index)
       Required. A list of references to the Forwarding Rules on which this
       policy will be applied.
       
      repeated string resources = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getResourcesBytes in interface AuthzPolicy.TargetOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the resources at the given index.
    • setResources

      public AuthzPolicy.Target.Builder setResources(int index, String value)
       Required. A list of references to the Forwarding Rules on which this
       policy will be applied.
       
      repeated string resources = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      index - The index to set the value at.
      value - The resources to set.
      Returns:
      This builder for chaining.
    • addResources

      public AuthzPolicy.Target.Builder addResources(String value)
       Required. A list of references to the Forwarding Rules on which this
       policy will be applied.
       
      repeated string resources = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The resources to add.
      Returns:
      This builder for chaining.
    • addAllResources

      public AuthzPolicy.Target.Builder addAllResources(Iterable<String> values)
       Required. A list of references to the Forwarding Rules on which this
       policy will be applied.
       
      repeated string resources = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      values - The resources to add.
      Returns:
      This builder for chaining.
    • clearResources

      public AuthzPolicy.Target.Builder clearResources()
       Required. A list of references to the Forwarding Rules on which this
       policy will be applied.
       
      repeated string resources = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • addResourcesBytes

      public AuthzPolicy.Target.Builder addResourcesBytes(com.google.protobuf.ByteString value)
       Required. A list of references to the Forwarding Rules on which this
       policy will be applied.
       
      repeated string resources = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes of the resources to add.
      Returns:
      This builder for chaining.