Interface AuthorizationPolicyOrBuilder

  • All Superinterfaces:
    com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
    All Known Implementing Classes:
    AuthorizationPolicy, AuthorizationPolicy.Builder

    public interface AuthorizationPolicyOrBuilder
    extends com.google.protobuf.MessageOrBuilder
    • Method Detail

      • getName

        String getName()
         Required. Name of the AuthorizationPolicy resource. It matches pattern
         `projects/{project}/locations/{location}/authorizationPolicies/<authorization_policy>`.
         
        string name = 1 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        The name.
      • getNameBytes

        com.google.protobuf.ByteString getNameBytes()
         Required. Name of the AuthorizationPolicy resource. It matches pattern
         `projects/{project}/locations/{location}/authorizationPolicies/<authorization_policy>`.
         
        string name = 1 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        The bytes for name.
      • getDescription

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

        com.google.protobuf.ByteString getDescriptionBytes()
         Optional. Free-text description of the resource.
         
        string description = 2 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        The bytes for description.
      • hasCreateTime

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

        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];
        Returns:
        The createTime.
      • getCreateTimeOrBuilder

        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];
      • hasUpdateTime

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

        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];
        Returns:
        The updateTime.
      • getUpdateTimeOrBuilder

        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];
      • getLabelsCount

        int getLabelsCount()
         Optional. Set of label tags associated with the AuthorizationPolicy
         resource.
         
        map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];
      • containsLabels

        boolean containsLabels​(String key)
         Optional. Set of label tags associated with the AuthorizationPolicy
         resource.
         
        map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];
      • getLabelsMap

        Map<String,​String> getLabelsMap()
         Optional. Set of label tags associated with the AuthorizationPolicy
         resource.
         
        map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];
      • getLabelsOrDefault

        String getLabelsOrDefault​(String key,
                                  String defaultValue)
         Optional. Set of label tags associated with the AuthorizationPolicy
         resource.
         
        map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];
      • getLabelsOrThrow

        String getLabelsOrThrow​(String key)
         Optional. Set of label tags associated with the AuthorizationPolicy
         resource.
         
        map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];
      • getActionValue

        int getActionValue()
         Required. The action to take when a rule match is found. Possible values
         are "ALLOW" or "DENY".
         
        .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Action action = 6 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        The enum numeric value on the wire for action.
      • getAction

        AuthorizationPolicy.Action getAction()
         Required. The action to take when a rule match is found. Possible values
         are "ALLOW" or "DENY".
         
        .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Action action = 6 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        The action.
      • getRulesList

        List<AuthorizationPolicy.Rule> getRulesList()
         Optional. List of rules to match. Note that at least one of the rules must
         match in order for the action specified in the 'action' field to be taken.
         A rule is a match if there is a matching source and destination. If left
         blank, the action specified in the `action` field will be applied on every
         request.
         
        repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule rules = 7 [(.google.api.field_behavior) = OPTIONAL];
      • getRules

        AuthorizationPolicy.Rule getRules​(int index)
         Optional. List of rules to match. Note that at least one of the rules must
         match in order for the action specified in the 'action' field to be taken.
         A rule is a match if there is a matching source and destination. If left
         blank, the action specified in the `action` field will be applied on every
         request.
         
        repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule rules = 7 [(.google.api.field_behavior) = OPTIONAL];
      • getRulesCount

        int getRulesCount()
         Optional. List of rules to match. Note that at least one of the rules must
         match in order for the action specified in the 'action' field to be taken.
         A rule is a match if there is a matching source and destination. If left
         blank, the action specified in the `action` field will be applied on every
         request.
         
        repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule rules = 7 [(.google.api.field_behavior) = OPTIONAL];
      • getRulesOrBuilderList

        List<? extends AuthorizationPolicy.RuleOrBuilder> getRulesOrBuilderList()
         Optional. List of rules to match. Note that at least one of the rules must
         match in order for the action specified in the 'action' field to be taken.
         A rule is a match if there is a matching source and destination. If left
         blank, the action specified in the `action` field will be applied on every
         request.
         
        repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule rules = 7 [(.google.api.field_behavior) = OPTIONAL];
      • getRulesOrBuilder

        AuthorizationPolicy.RuleOrBuilder getRulesOrBuilder​(int index)
         Optional. List of rules to match. Note that at least one of the rules must
         match in order for the action specified in the 'action' field to be taken.
         A rule is a match if there is a matching source and destination. If left
         blank, the action specified in the `action` field will be applied on every
         request.
         
        repeated .google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule rules = 7 [(.google.api.field_behavior) = OPTIONAL];