Class SecurityProfile

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.networksecurity.v1.SecurityProfile
All Implemented Interfaces:
SecurityProfileOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class SecurityProfile extends com.google.protobuf.GeneratedMessage implements SecurityProfileOrBuilder
 SecurityProfile is a resource that defines the behavior for one of many
 ProfileTypes.
 
Protobuf type google.cloud.networksecurity.v1.SecurityProfile
See Also:
  • Field Details

    • THREAT_PREVENTION_PROFILE_FIELD_NUMBER

      public static final int THREAT_PREVENTION_PROFILE_FIELD_NUMBER
      See Also:
    • CUSTOM_MIRRORING_PROFILE_FIELD_NUMBER

      public static final int CUSTOM_MIRRORING_PROFILE_FIELD_NUMBER
      See Also:
    • CUSTOM_INTERCEPT_PROFILE_FIELD_NUMBER

      public static final int CUSTOM_INTERCEPT_PROFILE_FIELD_NUMBER
      See Also:
    • URL_FILTERING_PROFILE_FIELD_NUMBER

      public static final int URL_FILTERING_PROFILE_FIELD_NUMBER
      See Also:
    • NAME_FIELD_NUMBER

      public static final int NAME_FIELD_NUMBER
      See Also:
    • DESCRIPTION_FIELD_NUMBER

      public static final int DESCRIPTION_FIELD_NUMBER
      See Also:
    • CREATE_TIME_FIELD_NUMBER

      public static final int CREATE_TIME_FIELD_NUMBER
      See Also:
    • UPDATE_TIME_FIELD_NUMBER

      public static final int UPDATE_TIME_FIELD_NUMBER
      See Also:
    • ETAG_FIELD_NUMBER

      public static final int ETAG_FIELD_NUMBER
      See Also:
    • LABELS_FIELD_NUMBER

      public static final int LABELS_FIELD_NUMBER
      See Also:
    • TYPE_FIELD_NUMBER

      public static final int TYPE_FIELD_NUMBER
      See Also:
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • getProfileCase

      public SecurityProfile.ProfileCase getProfileCase()
      Specified by:
      getProfileCase in interface SecurityProfileOrBuilder
    • hasThreatPreventionProfile

      public boolean hasThreatPreventionProfile()
       The threat prevention configuration for the SecurityProfile.
       
      .google.cloud.networksecurity.v1.ThreatPreventionProfile threat_prevention_profile = 7;
      Specified by:
      hasThreatPreventionProfile in interface SecurityProfileOrBuilder
      Returns:
      Whether the threatPreventionProfile field is set.
    • getThreatPreventionProfile

      public ThreatPreventionProfile getThreatPreventionProfile()
       The threat prevention configuration for the SecurityProfile.
       
      .google.cloud.networksecurity.v1.ThreatPreventionProfile threat_prevention_profile = 7;
      Specified by:
      getThreatPreventionProfile in interface SecurityProfileOrBuilder
      Returns:
      The threatPreventionProfile.
    • getThreatPreventionProfileOrBuilder

      public ThreatPreventionProfileOrBuilder getThreatPreventionProfileOrBuilder()
       The threat prevention configuration for the SecurityProfile.
       
      .google.cloud.networksecurity.v1.ThreatPreventionProfile threat_prevention_profile = 7;
      Specified by:
      getThreatPreventionProfileOrBuilder in interface SecurityProfileOrBuilder
    • hasCustomMirroringProfile

      public boolean hasCustomMirroringProfile()
       The custom Packet Mirroring v2 configuration for the SecurityProfile.
       
      .google.cloud.networksecurity.v1.CustomMirroringProfile custom_mirroring_profile = 9;
      Specified by:
      hasCustomMirroringProfile in interface SecurityProfileOrBuilder
      Returns:
      Whether the customMirroringProfile field is set.
    • getCustomMirroringProfile

      public CustomMirroringProfile getCustomMirroringProfile()
       The custom Packet Mirroring v2 configuration for the SecurityProfile.
       
      .google.cloud.networksecurity.v1.CustomMirroringProfile custom_mirroring_profile = 9;
      Specified by:
      getCustomMirroringProfile in interface SecurityProfileOrBuilder
      Returns:
      The customMirroringProfile.
    • getCustomMirroringProfileOrBuilder

      public CustomMirroringProfileOrBuilder getCustomMirroringProfileOrBuilder()
       The custom Packet Mirroring v2 configuration for the SecurityProfile.
       
      .google.cloud.networksecurity.v1.CustomMirroringProfile custom_mirroring_profile = 9;
      Specified by:
      getCustomMirroringProfileOrBuilder in interface SecurityProfileOrBuilder
    • hasCustomInterceptProfile

      public boolean hasCustomInterceptProfile()
       The custom TPPI configuration for the SecurityProfile.
       
      .google.cloud.networksecurity.v1.CustomInterceptProfile custom_intercept_profile = 10;
      Specified by:
      hasCustomInterceptProfile in interface SecurityProfileOrBuilder
      Returns:
      Whether the customInterceptProfile field is set.
    • getCustomInterceptProfile

      public CustomInterceptProfile getCustomInterceptProfile()
       The custom TPPI configuration for the SecurityProfile.
       
      .google.cloud.networksecurity.v1.CustomInterceptProfile custom_intercept_profile = 10;
      Specified by:
      getCustomInterceptProfile in interface SecurityProfileOrBuilder
      Returns:
      The customInterceptProfile.
    • getCustomInterceptProfileOrBuilder

      public CustomInterceptProfileOrBuilder getCustomInterceptProfileOrBuilder()
       The custom TPPI configuration for the SecurityProfile.
       
      .google.cloud.networksecurity.v1.CustomInterceptProfile custom_intercept_profile = 10;
      Specified by:
      getCustomInterceptProfileOrBuilder in interface SecurityProfileOrBuilder
    • hasUrlFilteringProfile

      public boolean hasUrlFilteringProfile()
       The URL filtering configuration for the SecurityProfile.
       
      .google.cloud.networksecurity.v1.UrlFilteringProfile url_filtering_profile = 12;
      Specified by:
      hasUrlFilteringProfile in interface SecurityProfileOrBuilder
      Returns:
      Whether the urlFilteringProfile field is set.
    • getUrlFilteringProfile

      public UrlFilteringProfile getUrlFilteringProfile()
       The URL filtering configuration for the SecurityProfile.
       
      .google.cloud.networksecurity.v1.UrlFilteringProfile url_filtering_profile = 12;
      Specified by:
      getUrlFilteringProfile in interface SecurityProfileOrBuilder
      Returns:
      The urlFilteringProfile.
    • getUrlFilteringProfileOrBuilder

      public UrlFilteringProfileOrBuilder getUrlFilteringProfileOrBuilder()
       The URL filtering configuration for the SecurityProfile.
       
      .google.cloud.networksecurity.v1.UrlFilteringProfile url_filtering_profile = 12;
      Specified by:
      getUrlFilteringProfileOrBuilder in interface SecurityProfileOrBuilder
    • getName

      public String getName()
       Immutable. Identifier. Name of the SecurityProfile resource. It matches
       pattern
       `projects|organizations/*/locations/{location}/securityProfiles/{security_profile}`.
       
      string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getName in interface SecurityProfileOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Immutable. Identifier. Name of the SecurityProfile resource. It matches
       pattern
       `projects|organizations/*/locations/{location}/securityProfiles/{security_profile}`.
       
      string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getNameBytes in interface SecurityProfileOrBuilder
      Returns:
      The bytes for name.
    • getDescription

      public String getDescription()
       Optional. An optional description of the profile. Max length 512
       characters.
       
      string description = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDescription in interface SecurityProfileOrBuilder
      Returns:
      The description.
    • getDescriptionBytes

      public com.google.protobuf.ByteString getDescriptionBytes()
       Optional. An optional description of the profile. Max length 512
       characters.
       
      string description = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDescriptionBytes in interface SecurityProfileOrBuilder
      Returns:
      The bytes for description.
    • hasCreateTime

      public boolean hasCreateTime()
       Output only. Resource creation timestamp.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasCreateTime in interface SecurityProfileOrBuilder
      Returns:
      Whether the createTime field is set.
    • getCreateTime

      public com.google.protobuf.Timestamp getCreateTime()
       Output only. Resource creation timestamp.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTime in interface SecurityProfileOrBuilder
      Returns:
      The createTime.
    • getCreateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
       Output only. Resource creation timestamp.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTimeOrBuilder in interface SecurityProfileOrBuilder
    • hasUpdateTime

      public boolean hasUpdateTime()
       Output only. Last resource update timestamp.
       
      .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasUpdateTime in interface SecurityProfileOrBuilder
      Returns:
      Whether the updateTime field is set.
    • getUpdateTime

      public com.google.protobuf.Timestamp getUpdateTime()
       Output only. Last resource update timestamp.
       
      .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTime in interface SecurityProfileOrBuilder
      Returns:
      The updateTime.
    • getUpdateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
       Output only. Last resource update timestamp.
       
      .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTimeOrBuilder in interface SecurityProfileOrBuilder
    • getEtag

      public String getEtag()
       Output only. This checksum is computed by the server based on the value of
       other fields, and may be sent on update and delete requests to ensure the
       client has an up-to-date value before proceeding.
       
      string etag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getEtag in interface SecurityProfileOrBuilder
      Returns:
      The etag.
    • getEtagBytes

      public com.google.protobuf.ByteString getEtagBytes()
       Output only. This checksum is computed by the server based on the value of
       other fields, and may be sent on update and delete requests to ensure the
       client has an up-to-date value before proceeding.
       
      string etag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getEtagBytes in interface SecurityProfileOrBuilder
      Returns:
      The bytes for etag.
    • getLabelsCount

      public int getLabelsCount()
      Description copied from interface: SecurityProfileOrBuilder
       Optional. Labels as key value pairs.
       
      map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsCount in interface SecurityProfileOrBuilder
    • containsLabels

      public boolean containsLabels(String key)
       Optional. Labels as key value pairs.
       
      map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      containsLabels in interface SecurityProfileOrBuilder
    • getLabels

      @Deprecated public Map<String,String> getLabels()
      Deprecated.
      Use getLabelsMap() instead.
      Specified by:
      getLabels in interface SecurityProfileOrBuilder
    • getLabelsMap

      public Map<String,String> getLabelsMap()
       Optional. Labels as key value pairs.
       
      map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsMap in interface SecurityProfileOrBuilder
    • getLabelsOrDefault

      public String getLabelsOrDefault(String key, String defaultValue)
       Optional. Labels as key value pairs.
       
      map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsOrDefault in interface SecurityProfileOrBuilder
    • getLabelsOrThrow

      public String getLabelsOrThrow(String key)
       Optional. Labels as key value pairs.
       
      map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsOrThrow in interface SecurityProfileOrBuilder
    • getTypeValue

      public int getTypeValue()
       Immutable. The single ProfileType that the SecurityProfile resource
       configures.
       
      .google.cloud.networksecurity.v1.SecurityProfile.ProfileType type = 6 [(.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getTypeValue in interface SecurityProfileOrBuilder
      Returns:
      The enum numeric value on the wire for type.
    • getType

      public SecurityProfile.ProfileType getType()
       Immutable. The single ProfileType that the SecurityProfile resource
       configures.
       
      .google.cloud.networksecurity.v1.SecurityProfile.ProfileType type = 6 [(.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getType in interface SecurityProfileOrBuilder
      Returns:
      The type.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static SecurityProfile parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static SecurityProfile parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static SecurityProfile parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static SecurityProfile parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static SecurityProfile parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static SecurityProfile parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static SecurityProfile parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static SecurityProfile parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static SecurityProfile parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static SecurityProfile parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static SecurityProfile parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static SecurityProfile parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public SecurityProfile.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static SecurityProfile.Builder newBuilder()
    • newBuilder

      public static SecurityProfile.Builder newBuilder(SecurityProfile prototype)
    • toBuilder

      public SecurityProfile.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected SecurityProfile.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static SecurityProfile getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<SecurityProfile> parser()
    • getParserForType

      public com.google.protobuf.Parser<SecurityProfile> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public SecurityProfile getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder