Class AuthzPolicy.AuthzRule.Builder

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

public static final class AuthzPolicy.AuthzRule.Builder extends com.google.protobuf.GeneratedMessage.Builder<AuthzPolicy.AuthzRule.Builder> implements AuthzPolicy.AuthzRuleOrBuilder
 Conditions to match against the incoming request.
 
Protobuf type google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule
  • 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.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.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.Builder>
    • getDefaultInstanceForType

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

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

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

      public boolean hasFrom()
       Optional. Describes properties of a source of a request.
       
      .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From from = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasFrom in interface AuthzPolicy.AuthzRuleOrBuilder
      Returns:
      Whether the from field is set.
    • getFrom

      public AuthzPolicy.AuthzRule.From getFrom()
       Optional. Describes properties of a source of a request.
       
      .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From from = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getFrom in interface AuthzPolicy.AuthzRuleOrBuilder
      Returns:
      The from.
    • setFrom

       Optional. Describes properties of a source of a request.
       
      .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From from = 1 [(.google.api.field_behavior) = OPTIONAL];
    • setFrom

       Optional. Describes properties of a source of a request.
       
      .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From from = 1 [(.google.api.field_behavior) = OPTIONAL];
    • mergeFrom

       Optional. Describes properties of a source of a request.
       
      .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From from = 1 [(.google.api.field_behavior) = OPTIONAL];
    • clearFrom

      public AuthzPolicy.AuthzRule.Builder clearFrom()
       Optional. Describes properties of a source of a request.
       
      .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From from = 1 [(.google.api.field_behavior) = OPTIONAL];
    • getFromBuilder

      public AuthzPolicy.AuthzRule.From.Builder getFromBuilder()
       Optional. Describes properties of a source of a request.
       
      .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From from = 1 [(.google.api.field_behavior) = OPTIONAL];
    • getFromOrBuilder

      public AuthzPolicy.AuthzRule.FromOrBuilder getFromOrBuilder()
       Optional. Describes properties of a source of a request.
       
      .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.From from = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getFromOrBuilder in interface AuthzPolicy.AuthzRuleOrBuilder
    • hasTo

      public boolean hasTo()
       Optional. Describes properties of a target of a request.
       
      .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To to = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasTo in interface AuthzPolicy.AuthzRuleOrBuilder
      Returns:
      Whether the to field is set.
    • getTo

      public AuthzPolicy.AuthzRule.To getTo()
       Optional. Describes properties of a target of a request.
       
      .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To to = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getTo in interface AuthzPolicy.AuthzRuleOrBuilder
      Returns:
      The to.
    • setTo

       Optional. Describes properties of a target of a request.
       
      .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To to = 2 [(.google.api.field_behavior) = OPTIONAL];
    • setTo

       Optional. Describes properties of a target of a request.
       
      .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To to = 2 [(.google.api.field_behavior) = OPTIONAL];
    • mergeTo

       Optional. Describes properties of a target of a request.
       
      .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To to = 2 [(.google.api.field_behavior) = OPTIONAL];
    • clearTo

       Optional. Describes properties of a target of a request.
       
      .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To to = 2 [(.google.api.field_behavior) = OPTIONAL];
    • getToBuilder

      public AuthzPolicy.AuthzRule.To.Builder getToBuilder()
       Optional. Describes properties of a target of a request.
       
      .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To to = 2 [(.google.api.field_behavior) = OPTIONAL];
    • getToOrBuilder

      public AuthzPolicy.AuthzRule.ToOrBuilder getToOrBuilder()
       Optional. Describes properties of a target of a request.
       
      .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To to = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getToOrBuilder in interface AuthzPolicy.AuthzRuleOrBuilder
    • getWhen

      public String getWhen()
       Optional. CEL expression that describes the conditions to be satisfied
       for the action. The result of the CEL expression is ANDed with the from
       and to. Refer to the CEL language reference for a list of available
       attributes.
       
      string when = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getWhen in interface AuthzPolicy.AuthzRuleOrBuilder
      Returns:
      The when.
    • getWhenBytes

      public com.google.protobuf.ByteString getWhenBytes()
       Optional. CEL expression that describes the conditions to be satisfied
       for the action. The result of the CEL expression is ANDed with the from
       and to. Refer to the CEL language reference for a list of available
       attributes.
       
      string when = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getWhenBytes in interface AuthzPolicy.AuthzRuleOrBuilder
      Returns:
      The bytes for when.
    • setWhen

      public AuthzPolicy.AuthzRule.Builder setWhen(String value)
       Optional. CEL expression that describes the conditions to be satisfied
       for the action. The result of the CEL expression is ANDed with the from
       and to. Refer to the CEL language reference for a list of available
       attributes.
       
      string when = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The when to set.
      Returns:
      This builder for chaining.
    • clearWhen

      public AuthzPolicy.AuthzRule.Builder clearWhen()
       Optional. CEL expression that describes the conditions to be satisfied
       for the action. The result of the CEL expression is ANDed with the from
       and to. Refer to the CEL language reference for a list of available
       attributes.
       
      string when = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setWhenBytes

      public AuthzPolicy.AuthzRule.Builder setWhenBytes(com.google.protobuf.ByteString value)
       Optional. CEL expression that describes the conditions to be satisfied
       for the action. The result of the CEL expression is ANDed with the from
       and to. Refer to the CEL language reference for a list of available
       attributes.
       
      string when = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for when to set.
      Returns:
      This builder for chaining.