Class GatewaySecurityPolicy.Builder

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

public static final class GatewaySecurityPolicy.Builder extends com.google.protobuf.GeneratedMessage.Builder<GatewaySecurityPolicy.Builder> implements GatewaySecurityPolicyOrBuilder
 The GatewaySecurityPolicy resource contains a collection of
 GatewaySecurityPolicyRules and associated metadata.
 
Protobuf type google.cloud.networksecurity.v1.GatewaySecurityPolicy
  • 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<GatewaySecurityPolicy.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<GatewaySecurityPolicy.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<GatewaySecurityPolicy.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public GatewaySecurityPolicy.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<GatewaySecurityPolicy.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       Required. Name of the resource. Name is of the form
       projects/{project}/locations/{location}/gatewaySecurityPolicies/{gateway_security_policy}
       gateway_security_policy should match the
       pattern:(^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$).
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getName in interface GatewaySecurityPolicyOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Required. Name of the resource. Name is of the form
       projects/{project}/locations/{location}/gatewaySecurityPolicies/{gateway_security_policy}
       gateway_security_policy should match the
       pattern:(^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$).
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getNameBytes in interface GatewaySecurityPolicyOrBuilder
      Returns:
      The bytes for name.
    • setName

      public GatewaySecurityPolicy.Builder setName(String value)
       Required. Name of the resource. Name is of the form
       projects/{project}/locations/{location}/gatewaySecurityPolicies/{gateway_security_policy}
       gateway_security_policy should match the
       pattern:(^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$).
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public GatewaySecurityPolicy.Builder clearName()
       Required. Name of the resource. Name is of the form
       projects/{project}/locations/{location}/gatewaySecurityPolicies/{gateway_security_policy}
       gateway_security_policy should match the
       pattern:(^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$).
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setNameBytes

      public GatewaySecurityPolicy.Builder setNameBytes(com.google.protobuf.ByteString value)
       Required. Name of the resource. Name is of the form
       projects/{project}/locations/{location}/gatewaySecurityPolicies/{gateway_security_policy}
       gateway_security_policy should match the
       pattern:(^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$).
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • hasCreateTime

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

      public com.google.protobuf.Timestamp getCreateTime()
       Output only. The timestamp when the resource was created.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTime in interface GatewaySecurityPolicyOrBuilder
      Returns:
      The createTime.
    • setCreateTime

      public GatewaySecurityPolicy.Builder setCreateTime(com.google.protobuf.Timestamp value)
       Output only. The timestamp when the resource was created.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setCreateTime

      public GatewaySecurityPolicy.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. The timestamp when the resource was created.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeCreateTime

      public GatewaySecurityPolicy.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
       Output only. The timestamp when the resource was created.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearCreateTime

      public GatewaySecurityPolicy.Builder clearCreateTime()
       Output only. The timestamp when the resource was created.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
       Output only. The timestamp when the resource was created.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
       Output only. The timestamp when the resource was created.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTimeOrBuilder in interface GatewaySecurityPolicyOrBuilder
    • hasUpdateTime

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

      public com.google.protobuf.Timestamp getUpdateTime()
       Output only. The timestamp when the resource was updated.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTime in interface GatewaySecurityPolicyOrBuilder
      Returns:
      The updateTime.
    • setUpdateTime

      public GatewaySecurityPolicy.Builder setUpdateTime(com.google.protobuf.Timestamp value)
       Output only. The timestamp when the resource was updated.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setUpdateTime

      public GatewaySecurityPolicy.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. The timestamp when the resource was updated.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeUpdateTime

      public GatewaySecurityPolicy.Builder mergeUpdateTime(com.google.protobuf.Timestamp value)
       Output only. The timestamp when the resource was updated.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearUpdateTime

      public GatewaySecurityPolicy.Builder clearUpdateTime()
       Output only. The timestamp when the resource was updated.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUpdateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()
       Output only. The timestamp when the resource was updated.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUpdateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
       Output only. The timestamp when the resource was updated.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTimeOrBuilder in interface GatewaySecurityPolicyOrBuilder
    • getDescription

      public String getDescription()
       Optional. Free-text description of the resource.
       
      string description = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDescription in interface GatewaySecurityPolicyOrBuilder
      Returns:
      The description.
    • getDescriptionBytes

      public com.google.protobuf.ByteString getDescriptionBytes()
       Optional. Free-text description of the resource.
       
      string description = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDescriptionBytes in interface GatewaySecurityPolicyOrBuilder
      Returns:
      The bytes for description.
    • setDescription

      public GatewaySecurityPolicy.Builder setDescription(String value)
       Optional. Free-text description of the resource.
       
      string description = 4 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The description to set.
      Returns:
      This builder for chaining.
    • clearDescription

      public GatewaySecurityPolicy.Builder clearDescription()
       Optional. Free-text description of the resource.
       
      string description = 4 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setDescriptionBytes

      public GatewaySecurityPolicy.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
       Optional. Free-text description of the resource.
       
      string description = 4 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for description to set.
      Returns:
      This builder for chaining.
    • getTlsInspectionPolicy

      public String getTlsInspectionPolicy()
       Optional. Name of a TLS Inspection Policy resource that defines how TLS
       inspection will be performed for any rule(s) which enables it.
       
      string tls_inspection_policy = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getTlsInspectionPolicy in interface GatewaySecurityPolicyOrBuilder
      Returns:
      The tlsInspectionPolicy.
    • getTlsInspectionPolicyBytes

      public com.google.protobuf.ByteString getTlsInspectionPolicyBytes()
       Optional. Name of a TLS Inspection Policy resource that defines how TLS
       inspection will be performed for any rule(s) which enables it.
       
      string tls_inspection_policy = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getTlsInspectionPolicyBytes in interface GatewaySecurityPolicyOrBuilder
      Returns:
      The bytes for tlsInspectionPolicy.
    • setTlsInspectionPolicy

      public GatewaySecurityPolicy.Builder setTlsInspectionPolicy(String value)
       Optional. Name of a TLS Inspection Policy resource that defines how TLS
       inspection will be performed for any rule(s) which enables it.
       
      string tls_inspection_policy = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The tlsInspectionPolicy to set.
      Returns:
      This builder for chaining.
    • clearTlsInspectionPolicy

      public GatewaySecurityPolicy.Builder clearTlsInspectionPolicy()
       Optional. Name of a TLS Inspection Policy resource that defines how TLS
       inspection will be performed for any rule(s) which enables it.
       
      string tls_inspection_policy = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setTlsInspectionPolicyBytes

      public GatewaySecurityPolicy.Builder setTlsInspectionPolicyBytes(com.google.protobuf.ByteString value)
       Optional. Name of a TLS Inspection Policy resource that defines how TLS
       inspection will be performed for any rule(s) which enables it.
       
      string tls_inspection_policy = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for tlsInspectionPolicy to set.
      Returns:
      This builder for chaining.