Class SecurityProfile.Builder

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

public static final class SecurityProfile.Builder extends com.google.protobuf.GeneratedMessage.Builder<SecurityProfile.Builder> implements SecurityProfileOrBuilder
 SecurityProfile is a resource that defines the behavior for one of many
 ProfileTypes.
 
Protobuf type google.cloud.networksecurity.v1.SecurityProfile
  • 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.Builder<SecurityProfile.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<SecurityProfile.Builder>
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<SecurityProfile.Builder>
    • clear

      public SecurityProfile.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<SecurityProfile.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<SecurityProfile.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public SecurityProfile.Builder mergeFrom(SecurityProfile other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<SecurityProfile.Builder>
    • mergeFrom

      public SecurityProfile.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<SecurityProfile.Builder>
      Throws:
      IOException
    • getProfileCase

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

      public SecurityProfile.Builder clearProfile()
    • 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.
    • setThreatPreventionProfile

      public SecurityProfile.Builder setThreatPreventionProfile(ThreatPreventionProfile value)
       The threat prevention configuration for the SecurityProfile.
       
      .google.cloud.networksecurity.v1.ThreatPreventionProfile threat_prevention_profile = 7;
    • setThreatPreventionProfile

      public SecurityProfile.Builder setThreatPreventionProfile(ThreatPreventionProfile.Builder builderForValue)
       The threat prevention configuration for the SecurityProfile.
       
      .google.cloud.networksecurity.v1.ThreatPreventionProfile threat_prevention_profile = 7;
    • mergeThreatPreventionProfile

      public SecurityProfile.Builder mergeThreatPreventionProfile(ThreatPreventionProfile value)
       The threat prevention configuration for the SecurityProfile.
       
      .google.cloud.networksecurity.v1.ThreatPreventionProfile threat_prevention_profile = 7;
    • clearThreatPreventionProfile

      public SecurityProfile.Builder clearThreatPreventionProfile()
       The threat prevention configuration for the SecurityProfile.
       
      .google.cloud.networksecurity.v1.ThreatPreventionProfile threat_prevention_profile = 7;
    • getThreatPreventionProfileBuilder

      public ThreatPreventionProfile.Builder getThreatPreventionProfileBuilder()
       The threat prevention configuration for the SecurityProfile.
       
      .google.cloud.networksecurity.v1.ThreatPreventionProfile threat_prevention_profile = 7;
    • 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.
    • setCustomMirroringProfile

      public SecurityProfile.Builder setCustomMirroringProfile(CustomMirroringProfile value)
       The custom Packet Mirroring v2 configuration for the SecurityProfile.
       
      .google.cloud.networksecurity.v1.CustomMirroringProfile custom_mirroring_profile = 9;
    • setCustomMirroringProfile

      public SecurityProfile.Builder setCustomMirroringProfile(CustomMirroringProfile.Builder builderForValue)
       The custom Packet Mirroring v2 configuration for the SecurityProfile.
       
      .google.cloud.networksecurity.v1.CustomMirroringProfile custom_mirroring_profile = 9;
    • mergeCustomMirroringProfile

      public SecurityProfile.Builder mergeCustomMirroringProfile(CustomMirroringProfile value)
       The custom Packet Mirroring v2 configuration for the SecurityProfile.
       
      .google.cloud.networksecurity.v1.CustomMirroringProfile custom_mirroring_profile = 9;
    • clearCustomMirroringProfile

      public SecurityProfile.Builder clearCustomMirroringProfile()
       The custom Packet Mirroring v2 configuration for the SecurityProfile.
       
      .google.cloud.networksecurity.v1.CustomMirroringProfile custom_mirroring_profile = 9;
    • getCustomMirroringProfileBuilder

      public CustomMirroringProfile.Builder getCustomMirroringProfileBuilder()
       The custom Packet Mirroring v2 configuration for the SecurityProfile.
       
      .google.cloud.networksecurity.v1.CustomMirroringProfile custom_mirroring_profile = 9;
    • 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.
    • setCustomInterceptProfile

      public SecurityProfile.Builder setCustomInterceptProfile(CustomInterceptProfile value)
       The custom TPPI configuration for the SecurityProfile.
       
      .google.cloud.networksecurity.v1.CustomInterceptProfile custom_intercept_profile = 10;
    • setCustomInterceptProfile

      public SecurityProfile.Builder setCustomInterceptProfile(CustomInterceptProfile.Builder builderForValue)
       The custom TPPI configuration for the SecurityProfile.
       
      .google.cloud.networksecurity.v1.CustomInterceptProfile custom_intercept_profile = 10;
    • mergeCustomInterceptProfile

      public SecurityProfile.Builder mergeCustomInterceptProfile(CustomInterceptProfile value)
       The custom TPPI configuration for the SecurityProfile.
       
      .google.cloud.networksecurity.v1.CustomInterceptProfile custom_intercept_profile = 10;
    • clearCustomInterceptProfile

      public SecurityProfile.Builder clearCustomInterceptProfile()
       The custom TPPI configuration for the SecurityProfile.
       
      .google.cloud.networksecurity.v1.CustomInterceptProfile custom_intercept_profile = 10;
    • getCustomInterceptProfileBuilder

      public CustomInterceptProfile.Builder getCustomInterceptProfileBuilder()
       The custom TPPI configuration for the SecurityProfile.
       
      .google.cloud.networksecurity.v1.CustomInterceptProfile custom_intercept_profile = 10;
    • 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.
    • setUrlFilteringProfile

      public SecurityProfile.Builder setUrlFilteringProfile(UrlFilteringProfile value)
       The URL filtering configuration for the SecurityProfile.
       
      .google.cloud.networksecurity.v1.UrlFilteringProfile url_filtering_profile = 12;
    • setUrlFilteringProfile

      public SecurityProfile.Builder setUrlFilteringProfile(UrlFilteringProfile.Builder builderForValue)
       The URL filtering configuration for the SecurityProfile.
       
      .google.cloud.networksecurity.v1.UrlFilteringProfile url_filtering_profile = 12;
    • mergeUrlFilteringProfile

      public SecurityProfile.Builder mergeUrlFilteringProfile(UrlFilteringProfile value)
       The URL filtering configuration for the SecurityProfile.
       
      .google.cloud.networksecurity.v1.UrlFilteringProfile url_filtering_profile = 12;
    • clearUrlFilteringProfile

      public SecurityProfile.Builder clearUrlFilteringProfile()
       The URL filtering configuration for the SecurityProfile.
       
      .google.cloud.networksecurity.v1.UrlFilteringProfile url_filtering_profile = 12;
    • getUrlFilteringProfileBuilder

      public UrlFilteringProfile.Builder getUrlFilteringProfileBuilder()
       The URL filtering configuration for the SecurityProfile.
       
      .google.cloud.networksecurity.v1.UrlFilteringProfile url_filtering_profile = 12;
    • 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.
    • setName

      public SecurityProfile.Builder setName(String value)
       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];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public SecurityProfile.Builder clearName()
       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];
      Returns:
      This builder for chaining.
    • setNameBytes

      public SecurityProfile.Builder setNameBytes(com.google.protobuf.ByteString value)
       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];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • 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.
    • setDescription

      public SecurityProfile.Builder setDescription(String value)
       Optional. An optional description of the profile. Max length 512
       characters.
       
      string description = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The description to set.
      Returns:
      This builder for chaining.
    • clearDescription

      public SecurityProfile.Builder clearDescription()
       Optional. An optional description of the profile. Max length 512
       characters.
       
      string description = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setDescriptionBytes

      public SecurityProfile.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
       Optional. An optional description of the profile. Max length 512
       characters.
       
      string description = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for description to set.
      Returns:
      This builder for chaining.
    • 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.
    • setCreateTime

      public SecurityProfile.Builder setCreateTime(com.google.protobuf.Timestamp value)
       Output only. Resource creation timestamp.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setCreateTime

      public SecurityProfile.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. Resource creation timestamp.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeCreateTime

      public SecurityProfile.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
       Output only. Resource creation timestamp.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearCreateTime

      public SecurityProfile.Builder clearCreateTime()
       Output only. Resource creation timestamp.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
       Output only. Resource creation timestamp.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • 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.
    • setUpdateTime

      public SecurityProfile.Builder setUpdateTime(com.google.protobuf.Timestamp value)
       Output only. Last resource update timestamp.
       
      .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setUpdateTime

      public SecurityProfile.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. Last resource update timestamp.
       
      .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeUpdateTime

      public SecurityProfile.Builder mergeUpdateTime(com.google.protobuf.Timestamp value)
       Output only. Last resource update timestamp.
       
      .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearUpdateTime

      public SecurityProfile.Builder clearUpdateTime()
       Output only. Last resource update timestamp.
       
      .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUpdateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()
       Output only. Last resource update timestamp.
       
      .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • 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.
    • setEtag

      public SecurityProfile.Builder setEtag(String value)
       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];
      Parameters:
      value - The etag to set.
      Returns:
      This builder for chaining.
    • clearEtag

      public SecurityProfile.Builder clearEtag()
       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];
      Returns:
      This builder for chaining.
    • setEtagBytes

      public SecurityProfile.Builder setEtagBytes(com.google.protobuf.ByteString value)
       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];
      Parameters:
      value - The bytes for etag to set.
      Returns:
      This builder for chaining.
    • 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
    • clearLabels

      public SecurityProfile.Builder clearLabels()
    • removeLabels

      public SecurityProfile.Builder removeLabels(String key)
       Optional. Labels as key value pairs.
       
      map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
    • getMutableLabels

      @Deprecated public Map<String,String> getMutableLabels()
      Deprecated.
      Use alternate mutation accessors instead.
    • putLabels

      public SecurityProfile.Builder putLabels(String key, String value)
       Optional. Labels as key value pairs.
       
      map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
    • putAllLabels

      public SecurityProfile.Builder putAllLabels(Map<String,String> values)
       Optional. Labels as key value pairs.
       
      map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
    • 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.
    • setTypeValue

      public SecurityProfile.Builder setTypeValue(int value)
       Immutable. The single ProfileType that the SecurityProfile resource
       configures.
       
      .google.cloud.networksecurity.v1.SecurityProfile.ProfileType type = 6 [(.google.api.field_behavior) = IMMUTABLE];
      Parameters:
      value - The enum numeric value on the wire for type to set.
      Returns:
      This builder for chaining.
    • 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.
    • setType

       Immutable. The single ProfileType that the SecurityProfile resource
       configures.
       
      .google.cloud.networksecurity.v1.SecurityProfile.ProfileType type = 6 [(.google.api.field_behavior) = IMMUTABLE];
      Parameters:
      value - The type to set.
      Returns:
      This builder for chaining.
    • clearType

      public SecurityProfile.Builder clearType()
       Immutable. The single ProfileType that the SecurityProfile resource
       configures.
       
      .google.cloud.networksecurity.v1.SecurityProfile.ProfileType type = 6 [(.google.api.field_behavior) = IMMUTABLE];
      Returns:
      This builder for chaining.