Class Gateway.Builder

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

public static final class Gateway.Builder extends com.google.protobuf.GeneratedMessage.Builder<Gateway.Builder> implements GatewayOrBuilder
 Gateway represents the configuration for a proxy, typically a load balancer.
 It captures the ip:port over which the services are exposed by the proxy,
 along with any policy configurations. Routes have reference to to Gateways to
 dictate how requests should be routed by this Gateway.
 
Protobuf type google.cloud.networkservices.v1.Gateway
  • 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<Gateway.Builder>
    • internalGetMutableMapFieldReflection

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

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

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

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

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

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

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

      public Gateway.Builder mergeFrom(Gateway other)
    • isInitialized

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

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

      public String getName()
       Identifier. Name of the Gateway resource. It matches pattern
       `projects/*/locations/*/gateways/<gateway_name>`.
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getName in interface GatewayOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Identifier. Name of the Gateway resource. It matches pattern
       `projects/*/locations/*/gateways/<gateway_name>`.
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getNameBytes in interface GatewayOrBuilder
      Returns:
      The bytes for name.
    • setName

      public Gateway.Builder setName(String value)
       Identifier. Name of the Gateway resource. It matches pattern
       `projects/*/locations/*/gateways/<gateway_name>`.
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public Gateway.Builder clearName()
       Identifier. Name of the Gateway resource. It matches pattern
       `projects/*/locations/*/gateways/<gateway_name>`.
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Returns:
      This builder for chaining.
    • setNameBytes

      public Gateway.Builder setNameBytes(com.google.protobuf.ByteString value)
       Identifier. Name of the Gateway resource. It matches pattern
       `projects/*/locations/*/gateways/<gateway_name>`.
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getSelfLink

      public String getSelfLink()
       Output only. Server-defined URL of this resource
       
      string self_link = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getSelfLink in interface GatewayOrBuilder
      Returns:
      The selfLink.
    • getSelfLinkBytes

      public com.google.protobuf.ByteString getSelfLinkBytes()
       Output only. Server-defined URL of this resource
       
      string self_link = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getSelfLinkBytes in interface GatewayOrBuilder
      Returns:
      The bytes for selfLink.
    • setSelfLink

      public Gateway.Builder setSelfLink(String value)
       Output only. Server-defined URL of this resource
       
      string self_link = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The selfLink to set.
      Returns:
      This builder for chaining.
    • clearSelfLink

      public Gateway.Builder clearSelfLink()
       Output only. Server-defined URL of this resource
       
      string self_link = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setSelfLinkBytes

      public Gateway.Builder setSelfLinkBytes(com.google.protobuf.ByteString value)
       Output only. Server-defined URL of this resource
       
      string self_link = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for selfLink 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 GatewayOrBuilder
      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 GatewayOrBuilder
      Returns:
      The createTime.
    • setCreateTime

      public Gateway.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 Gateway.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 Gateway.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 Gateway.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 GatewayOrBuilder
    • 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 GatewayOrBuilder
      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 GatewayOrBuilder
      Returns:
      The updateTime.
    • setUpdateTime

      public Gateway.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 Gateway.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 Gateway.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 Gateway.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 GatewayOrBuilder
    • getLabelsCount

      public int getLabelsCount()
      Description copied from interface: GatewayOrBuilder
       Optional. Set of label tags associated with the Gateway resource.
       
      map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsCount in interface GatewayOrBuilder
    • containsLabels

      public boolean containsLabels(String key)
       Optional. Set of label tags associated with the Gateway resource.
       
      map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      containsLabels in interface GatewayOrBuilder
    • getLabels

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

      public Map<String,String> getLabelsMap()
       Optional. Set of label tags associated with the Gateway resource.
       
      map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsMap in interface GatewayOrBuilder
    • getLabelsOrDefault

      public String getLabelsOrDefault(String key, String defaultValue)
       Optional. Set of label tags associated with the Gateway resource.
       
      map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsOrDefault in interface GatewayOrBuilder
    • getLabelsOrThrow

      public String getLabelsOrThrow(String key)
       Optional. Set of label tags associated with the Gateway resource.
       
      map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsOrThrow in interface GatewayOrBuilder
    • clearLabels

      public Gateway.Builder clearLabels()
    • removeLabels

      public Gateway.Builder removeLabels(String key)
       Optional. Set of label tags associated with the Gateway resource.
       
      map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
    • getMutableLabels

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

      public Gateway.Builder putLabels(String key, String value)
       Optional. Set of label tags associated with the Gateway resource.
       
      map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
    • putAllLabels

      public Gateway.Builder putAllLabels(Map<String,String> values)
       Optional. Set of label tags associated with the Gateway resource.
       
      map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
    • getDescription

      public String getDescription()
       Optional. A free-text description of the resource. Max length 1024
       characters.
       
      string description = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDescription in interface GatewayOrBuilder
      Returns:
      The description.
    • getDescriptionBytes

      public com.google.protobuf.ByteString getDescriptionBytes()
       Optional. A free-text description of the resource. Max length 1024
       characters.
       
      string description = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDescriptionBytes in interface GatewayOrBuilder
      Returns:
      The bytes for description.
    • setDescription

      public Gateway.Builder setDescription(String value)
       Optional. A free-text description of the resource. Max length 1024
       characters.
       
      string description = 5 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The description to set.
      Returns:
      This builder for chaining.
    • clearDescription

      public Gateway.Builder clearDescription()
       Optional. A free-text description of the resource. Max length 1024
       characters.
       
      string description = 5 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setDescriptionBytes

      public Gateway.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
       Optional. A free-text description of the resource. Max length 1024
       characters.
       
      string description = 5 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for description to set.
      Returns:
      This builder for chaining.
    • getTypeValue

      public int getTypeValue()
       Immutable. The type of the customer managed gateway.
       This field is required. If unspecified, an error is returned.
       
      .google.cloud.networkservices.v1.Gateway.Type type = 6 [(.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getTypeValue in interface GatewayOrBuilder
      Returns:
      The enum numeric value on the wire for type.
    • setTypeValue

      public Gateway.Builder setTypeValue(int value)
       Immutable. The type of the customer managed gateway.
       This field is required. If unspecified, an error is returned.
       
      .google.cloud.networkservices.v1.Gateway.Type 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 Gateway.Type getType()
       Immutable. The type of the customer managed gateway.
       This field is required. If unspecified, an error is returned.
       
      .google.cloud.networkservices.v1.Gateway.Type type = 6 [(.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getType in interface GatewayOrBuilder
      Returns:
      The type.
    • setType

      public Gateway.Builder setType(Gateway.Type value)
       Immutable. The type of the customer managed gateway.
       This field is required. If unspecified, an error is returned.
       
      .google.cloud.networkservices.v1.Gateway.Type type = 6 [(.google.api.field_behavior) = IMMUTABLE];
      Parameters:
      value - The type to set.
      Returns:
      This builder for chaining.
    • clearType

      public Gateway.Builder clearType()
       Immutable. The type of the customer managed gateway.
       This field is required. If unspecified, an error is returned.
       
      .google.cloud.networkservices.v1.Gateway.Type type = 6 [(.google.api.field_behavior) = IMMUTABLE];
      Returns:
      This builder for chaining.
    • getAddressesList

      public com.google.protobuf.ProtocolStringList getAddressesList()
       Optional. Zero or one IPv4 or IPv6 address on which the Gateway will
       receive the traffic. When no address is provided, an IP from the subnetwork
       is allocated
      
       This field only applies to gateways of type 'SECURE_WEB_GATEWAY'.
       Gateways of type 'OPEN_MESH' listen on 0.0.0.0 for IPv4 and :: for IPv6.
       
      repeated string addresses = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getAddressesList in interface GatewayOrBuilder
      Returns:
      A list containing the addresses.
    • getAddressesCount

      public int getAddressesCount()
       Optional. Zero or one IPv4 or IPv6 address on which the Gateway will
       receive the traffic. When no address is provided, an IP from the subnetwork
       is allocated
      
       This field only applies to gateways of type 'SECURE_WEB_GATEWAY'.
       Gateways of type 'OPEN_MESH' listen on 0.0.0.0 for IPv4 and :: for IPv6.
       
      repeated string addresses = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getAddressesCount in interface GatewayOrBuilder
      Returns:
      The count of addresses.
    • getAddresses

      public String getAddresses(int index)
       Optional. Zero or one IPv4 or IPv6 address on which the Gateway will
       receive the traffic. When no address is provided, an IP from the subnetwork
       is allocated
      
       This field only applies to gateways of type 'SECURE_WEB_GATEWAY'.
       Gateways of type 'OPEN_MESH' listen on 0.0.0.0 for IPv4 and :: for IPv6.
       
      repeated string addresses = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getAddresses in interface GatewayOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The addresses at the given index.
    • getAddressesBytes

      public com.google.protobuf.ByteString getAddressesBytes(int index)
       Optional. Zero or one IPv4 or IPv6 address on which the Gateway will
       receive the traffic. When no address is provided, an IP from the subnetwork
       is allocated
      
       This field only applies to gateways of type 'SECURE_WEB_GATEWAY'.
       Gateways of type 'OPEN_MESH' listen on 0.0.0.0 for IPv4 and :: for IPv6.
       
      repeated string addresses = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getAddressesBytes in interface GatewayOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the addresses at the given index.
    • setAddresses

      public Gateway.Builder setAddresses(int index, String value)
       Optional. Zero or one IPv4 or IPv6 address on which the Gateway will
       receive the traffic. When no address is provided, an IP from the subnetwork
       is allocated
      
       This field only applies to gateways of type 'SECURE_WEB_GATEWAY'.
       Gateways of type 'OPEN_MESH' listen on 0.0.0.0 for IPv4 and :: for IPv6.
       
      repeated string addresses = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Parameters:
      index - The index to set the value at.
      value - The addresses to set.
      Returns:
      This builder for chaining.
    • addAddresses

      public Gateway.Builder addAddresses(String value)
       Optional. Zero or one IPv4 or IPv6 address on which the Gateway will
       receive the traffic. When no address is provided, an IP from the subnetwork
       is allocated
      
       This field only applies to gateways of type 'SECURE_WEB_GATEWAY'.
       Gateways of type 'OPEN_MESH' listen on 0.0.0.0 for IPv4 and :: for IPv6.
       
      repeated string addresses = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The addresses to add.
      Returns:
      This builder for chaining.
    • addAllAddresses

      public Gateway.Builder addAllAddresses(Iterable<String> values)
       Optional. Zero or one IPv4 or IPv6 address on which the Gateway will
       receive the traffic. When no address is provided, an IP from the subnetwork
       is allocated
      
       This field only applies to gateways of type 'SECURE_WEB_GATEWAY'.
       Gateways of type 'OPEN_MESH' listen on 0.0.0.0 for IPv4 and :: for IPv6.
       
      repeated string addresses = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Parameters:
      values - The addresses to add.
      Returns:
      This builder for chaining.
    • clearAddresses

      public Gateway.Builder clearAddresses()
       Optional. Zero or one IPv4 or IPv6 address on which the Gateway will
       receive the traffic. When no address is provided, an IP from the subnetwork
       is allocated
      
       This field only applies to gateways of type 'SECURE_WEB_GATEWAY'.
       Gateways of type 'OPEN_MESH' listen on 0.0.0.0 for IPv4 and :: for IPv6.
       
      repeated string addresses = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • addAddressesBytes

      public Gateway.Builder addAddressesBytes(com.google.protobuf.ByteString value)
       Optional. Zero or one IPv4 or IPv6 address on which the Gateway will
       receive the traffic. When no address is provided, an IP from the subnetwork
       is allocated
      
       This field only applies to gateways of type 'SECURE_WEB_GATEWAY'.
       Gateways of type 'OPEN_MESH' listen on 0.0.0.0 for IPv4 and :: for IPv6.
       
      repeated string addresses = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes of the addresses to add.
      Returns:
      This builder for chaining.
    • getPortsList

      public List<Integer> getPortsList()
       Required. One or more port numbers (1-65535), on which the Gateway will
       receive traffic. The proxy binds to the specified ports.
       Gateways of type 'SECURE_WEB_GATEWAY' are limited to 1 port.
       Gateways of type 'OPEN_MESH' listen on 0.0.0.0 for IPv4 and :: for IPv6 and
       support multiple ports.
       
      repeated int32 ports = 11 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getPortsList in interface GatewayOrBuilder
      Returns:
      A list containing the ports.
    • getPortsCount

      public int getPortsCount()
       Required. One or more port numbers (1-65535), on which the Gateway will
       receive traffic. The proxy binds to the specified ports.
       Gateways of type 'SECURE_WEB_GATEWAY' are limited to 1 port.
       Gateways of type 'OPEN_MESH' listen on 0.0.0.0 for IPv4 and :: for IPv6 and
       support multiple ports.
       
      repeated int32 ports = 11 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getPortsCount in interface GatewayOrBuilder
      Returns:
      The count of ports.
    • getPorts

      public int getPorts(int index)
       Required. One or more port numbers (1-65535), on which the Gateway will
       receive traffic. The proxy binds to the specified ports.
       Gateways of type 'SECURE_WEB_GATEWAY' are limited to 1 port.
       Gateways of type 'OPEN_MESH' listen on 0.0.0.0 for IPv4 and :: for IPv6 and
       support multiple ports.
       
      repeated int32 ports = 11 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getPorts in interface GatewayOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The ports at the given index.
    • setPorts

      public Gateway.Builder setPorts(int index, int value)
       Required. One or more port numbers (1-65535), on which the Gateway will
       receive traffic. The proxy binds to the specified ports.
       Gateways of type 'SECURE_WEB_GATEWAY' are limited to 1 port.
       Gateways of type 'OPEN_MESH' listen on 0.0.0.0 for IPv4 and :: for IPv6 and
       support multiple ports.
       
      repeated int32 ports = 11 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      index - The index to set the value at.
      value - The ports to set.
      Returns:
      This builder for chaining.
    • addPorts

      public Gateway.Builder addPorts(int value)
       Required. One or more port numbers (1-65535), on which the Gateway will
       receive traffic. The proxy binds to the specified ports.
       Gateways of type 'SECURE_WEB_GATEWAY' are limited to 1 port.
       Gateways of type 'OPEN_MESH' listen on 0.0.0.0 for IPv4 and :: for IPv6 and
       support multiple ports.
       
      repeated int32 ports = 11 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The ports to add.
      Returns:
      This builder for chaining.
    • addAllPorts

      public Gateway.Builder addAllPorts(Iterable<? extends Integer> values)
       Required. One or more port numbers (1-65535), on which the Gateway will
       receive traffic. The proxy binds to the specified ports.
       Gateways of type 'SECURE_WEB_GATEWAY' are limited to 1 port.
       Gateways of type 'OPEN_MESH' listen on 0.0.0.0 for IPv4 and :: for IPv6 and
       support multiple ports.
       
      repeated int32 ports = 11 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      values - The ports to add.
      Returns:
      This builder for chaining.
    • clearPorts

      public Gateway.Builder clearPorts()
       Required. One or more port numbers (1-65535), on which the Gateway will
       receive traffic. The proxy binds to the specified ports.
       Gateways of type 'SECURE_WEB_GATEWAY' are limited to 1 port.
       Gateways of type 'OPEN_MESH' listen on 0.0.0.0 for IPv4 and :: for IPv6 and
       support multiple ports.
       
      repeated int32 ports = 11 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • getScope

      public String getScope()
       Optional. Scope determines how configuration across multiple Gateway
       instances are merged. The configuration for multiple Gateway instances with
       the same scope will be merged as presented as a single configuration to the
       proxy/load balancer.
      
       Max length 64 characters.
       Scope should start with a letter and can only have letters, numbers,
       hyphens.
       
      string scope = 8 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getScope in interface GatewayOrBuilder
      Returns:
      The scope.
    • getScopeBytes

      public com.google.protobuf.ByteString getScopeBytes()
       Optional. Scope determines how configuration across multiple Gateway
       instances are merged. The configuration for multiple Gateway instances with
       the same scope will be merged as presented as a single configuration to the
       proxy/load balancer.
      
       Max length 64 characters.
       Scope should start with a letter and can only have letters, numbers,
       hyphens.
       
      string scope = 8 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getScopeBytes in interface GatewayOrBuilder
      Returns:
      The bytes for scope.
    • setScope

      public Gateway.Builder setScope(String value)
       Optional. Scope determines how configuration across multiple Gateway
       instances are merged. The configuration for multiple Gateway instances with
       the same scope will be merged as presented as a single configuration to the
       proxy/load balancer.
      
       Max length 64 characters.
       Scope should start with a letter and can only have letters, numbers,
       hyphens.
       
      string scope = 8 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The scope to set.
      Returns:
      This builder for chaining.
    • clearScope

      public Gateway.Builder clearScope()
       Optional. Scope determines how configuration across multiple Gateway
       instances are merged. The configuration for multiple Gateway instances with
       the same scope will be merged as presented as a single configuration to the
       proxy/load balancer.
      
       Max length 64 characters.
       Scope should start with a letter and can only have letters, numbers,
       hyphens.
       
      string scope = 8 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setScopeBytes

      public Gateway.Builder setScopeBytes(com.google.protobuf.ByteString value)
       Optional. Scope determines how configuration across multiple Gateway
       instances are merged. The configuration for multiple Gateway instances with
       the same scope will be merged as presented as a single configuration to the
       proxy/load balancer.
      
       Max length 64 characters.
       Scope should start with a letter and can only have letters, numbers,
       hyphens.
       
      string scope = 8 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for scope to set.
      Returns:
      This builder for chaining.
    • getServerTlsPolicy

      public String getServerTlsPolicy()
       Optional. A fully-qualified ServerTLSPolicy URL reference. Specifies how
       TLS traffic is terminated. If empty, TLS termination is disabled.
       
      string server_tls_policy = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getServerTlsPolicy in interface GatewayOrBuilder
      Returns:
      The serverTlsPolicy.
    • getServerTlsPolicyBytes

      public com.google.protobuf.ByteString getServerTlsPolicyBytes()
       Optional. A fully-qualified ServerTLSPolicy URL reference. Specifies how
       TLS traffic is terminated. If empty, TLS termination is disabled.
       
      string server_tls_policy = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getServerTlsPolicyBytes in interface GatewayOrBuilder
      Returns:
      The bytes for serverTlsPolicy.
    • setServerTlsPolicy

      public Gateway.Builder setServerTlsPolicy(String value)
       Optional. A fully-qualified ServerTLSPolicy URL reference. Specifies how
       TLS traffic is terminated. If empty, TLS termination is disabled.
       
      string server_tls_policy = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The serverTlsPolicy to set.
      Returns:
      This builder for chaining.
    • clearServerTlsPolicy

      public Gateway.Builder clearServerTlsPolicy()
       Optional. A fully-qualified ServerTLSPolicy URL reference. Specifies how
       TLS traffic is terminated. If empty, TLS termination is disabled.
       
      string server_tls_policy = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setServerTlsPolicyBytes

      public Gateway.Builder setServerTlsPolicyBytes(com.google.protobuf.ByteString value)
       Optional. A fully-qualified ServerTLSPolicy URL reference. Specifies how
       TLS traffic is terminated. If empty, TLS termination is disabled.
       
      string server_tls_policy = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for serverTlsPolicy to set.
      Returns:
      This builder for chaining.
    • getCertificateUrlsList

      public com.google.protobuf.ProtocolStringList getCertificateUrlsList()
       Optional. A fully-qualified Certificates URL reference. The proxy presents
       a Certificate (selected based on SNI) when establishing a TLS connection.
       This feature only applies to gateways of type 'SECURE_WEB_GATEWAY'.
       
      repeated string certificate_urls = 14 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getCertificateUrlsList in interface GatewayOrBuilder
      Returns:
      A list containing the certificateUrls.
    • getCertificateUrlsCount

      public int getCertificateUrlsCount()
       Optional. A fully-qualified Certificates URL reference. The proxy presents
       a Certificate (selected based on SNI) when establishing a TLS connection.
       This feature only applies to gateways of type 'SECURE_WEB_GATEWAY'.
       
      repeated string certificate_urls = 14 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getCertificateUrlsCount in interface GatewayOrBuilder
      Returns:
      The count of certificateUrls.
    • getCertificateUrls

      public String getCertificateUrls(int index)
       Optional. A fully-qualified Certificates URL reference. The proxy presents
       a Certificate (selected based on SNI) when establishing a TLS connection.
       This feature only applies to gateways of type 'SECURE_WEB_GATEWAY'.
       
      repeated string certificate_urls = 14 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getCertificateUrls in interface GatewayOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The certificateUrls at the given index.
    • getCertificateUrlsBytes

      public com.google.protobuf.ByteString getCertificateUrlsBytes(int index)
       Optional. A fully-qualified Certificates URL reference. The proxy presents
       a Certificate (selected based on SNI) when establishing a TLS connection.
       This feature only applies to gateways of type 'SECURE_WEB_GATEWAY'.
       
      repeated string certificate_urls = 14 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getCertificateUrlsBytes in interface GatewayOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the certificateUrls at the given index.
    • setCertificateUrls

      public Gateway.Builder setCertificateUrls(int index, String value)
       Optional. A fully-qualified Certificates URL reference. The proxy presents
       a Certificate (selected based on SNI) when establishing a TLS connection.
       This feature only applies to gateways of type 'SECURE_WEB_GATEWAY'.
       
      repeated string certificate_urls = 14 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Parameters:
      index - The index to set the value at.
      value - The certificateUrls to set.
      Returns:
      This builder for chaining.
    • addCertificateUrls

      public Gateway.Builder addCertificateUrls(String value)
       Optional. A fully-qualified Certificates URL reference. The proxy presents
       a Certificate (selected based on SNI) when establishing a TLS connection.
       This feature only applies to gateways of type 'SECURE_WEB_GATEWAY'.
       
      repeated string certificate_urls = 14 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The certificateUrls to add.
      Returns:
      This builder for chaining.
    • addAllCertificateUrls

      public Gateway.Builder addAllCertificateUrls(Iterable<String> values)
       Optional. A fully-qualified Certificates URL reference. The proxy presents
       a Certificate (selected based on SNI) when establishing a TLS connection.
       This feature only applies to gateways of type 'SECURE_WEB_GATEWAY'.
       
      repeated string certificate_urls = 14 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Parameters:
      values - The certificateUrls to add.
      Returns:
      This builder for chaining.
    • clearCertificateUrls

      public Gateway.Builder clearCertificateUrls()
       Optional. A fully-qualified Certificates URL reference. The proxy presents
       a Certificate (selected based on SNI) when establishing a TLS connection.
       This feature only applies to gateways of type 'SECURE_WEB_GATEWAY'.
       
      repeated string certificate_urls = 14 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • addCertificateUrlsBytes

      public Gateway.Builder addCertificateUrlsBytes(com.google.protobuf.ByteString value)
       Optional. A fully-qualified Certificates URL reference. The proxy presents
       a Certificate (selected based on SNI) when establishing a TLS connection.
       This feature only applies to gateways of type 'SECURE_WEB_GATEWAY'.
       
      repeated string certificate_urls = 14 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes of the certificateUrls to add.
      Returns:
      This builder for chaining.
    • getGatewaySecurityPolicy

      public String getGatewaySecurityPolicy()
       Optional. A fully-qualified GatewaySecurityPolicy URL reference.
       Defines how a server should apply security policy to inbound
       (VM to Proxy) initiated connections.
      
       For example:
       `projects/*/locations/*/gatewaySecurityPolicies/swg-policy`.
      
       This policy is specific to gateways of type 'SECURE_WEB_GATEWAY'.
       
      string gateway_security_policy = 18 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getGatewaySecurityPolicy in interface GatewayOrBuilder
      Returns:
      The gatewaySecurityPolicy.
    • getGatewaySecurityPolicyBytes

      public com.google.protobuf.ByteString getGatewaySecurityPolicyBytes()
       Optional. A fully-qualified GatewaySecurityPolicy URL reference.
       Defines how a server should apply security policy to inbound
       (VM to Proxy) initiated connections.
      
       For example:
       `projects/*/locations/*/gatewaySecurityPolicies/swg-policy`.
      
       This policy is specific to gateways of type 'SECURE_WEB_GATEWAY'.
       
      string gateway_security_policy = 18 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getGatewaySecurityPolicyBytes in interface GatewayOrBuilder
      Returns:
      The bytes for gatewaySecurityPolicy.
    • setGatewaySecurityPolicy

      public Gateway.Builder setGatewaySecurityPolicy(String value)
       Optional. A fully-qualified GatewaySecurityPolicy URL reference.
       Defines how a server should apply security policy to inbound
       (VM to Proxy) initiated connections.
      
       For example:
       `projects/*/locations/*/gatewaySecurityPolicies/swg-policy`.
      
       This policy is specific to gateways of type 'SECURE_WEB_GATEWAY'.
       
      string gateway_security_policy = 18 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The gatewaySecurityPolicy to set.
      Returns:
      This builder for chaining.
    • clearGatewaySecurityPolicy

      public Gateway.Builder clearGatewaySecurityPolicy()
       Optional. A fully-qualified GatewaySecurityPolicy URL reference.
       Defines how a server should apply security policy to inbound
       (VM to Proxy) initiated connections.
      
       For example:
       `projects/*/locations/*/gatewaySecurityPolicies/swg-policy`.
      
       This policy is specific to gateways of type 'SECURE_WEB_GATEWAY'.
       
      string gateway_security_policy = 18 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setGatewaySecurityPolicyBytes

      public Gateway.Builder setGatewaySecurityPolicyBytes(com.google.protobuf.ByteString value)
       Optional. A fully-qualified GatewaySecurityPolicy URL reference.
       Defines how a server should apply security policy to inbound
       (VM to Proxy) initiated connections.
      
       For example:
       `projects/*/locations/*/gatewaySecurityPolicies/swg-policy`.
      
       This policy is specific to gateways of type 'SECURE_WEB_GATEWAY'.
       
      string gateway_security_policy = 18 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for gatewaySecurityPolicy to set.
      Returns:
      This builder for chaining.
    • getNetwork

      public String getNetwork()
       Optional. The relative resource name identifying the VPC network that is
       using this configuration. For example:
       `projects/*/global/networks/network-1`.
      
       Currently, this field is specific to gateways of type 'SECURE_WEB_GATEWAY'.
       
      string network = 16 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getNetwork in interface GatewayOrBuilder
      Returns:
      The network.
    • getNetworkBytes

      public com.google.protobuf.ByteString getNetworkBytes()
       Optional. The relative resource name identifying the VPC network that is
       using this configuration. For example:
       `projects/*/global/networks/network-1`.
      
       Currently, this field is specific to gateways of type 'SECURE_WEB_GATEWAY'.
       
      string network = 16 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getNetworkBytes in interface GatewayOrBuilder
      Returns:
      The bytes for network.
    • setNetwork

      public Gateway.Builder setNetwork(String value)
       Optional. The relative resource name identifying the VPC network that is
       using this configuration. For example:
       `projects/*/global/networks/network-1`.
      
       Currently, this field is specific to gateways of type 'SECURE_WEB_GATEWAY'.
       
      string network = 16 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The network to set.
      Returns:
      This builder for chaining.
    • clearNetwork

      public Gateway.Builder clearNetwork()
       Optional. The relative resource name identifying the VPC network that is
       using this configuration. For example:
       `projects/*/global/networks/network-1`.
      
       Currently, this field is specific to gateways of type 'SECURE_WEB_GATEWAY'.
       
      string network = 16 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setNetworkBytes

      public Gateway.Builder setNetworkBytes(com.google.protobuf.ByteString value)
       Optional. The relative resource name identifying the VPC network that is
       using this configuration. For example:
       `projects/*/global/networks/network-1`.
      
       Currently, this field is specific to gateways of type 'SECURE_WEB_GATEWAY'.
       
      string network = 16 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for network to set.
      Returns:
      This builder for chaining.
    • getSubnetwork

      public String getSubnetwork()
       Optional. The relative resource name identifying  the subnetwork in which
       this SWG is allocated. For example:
       `projects/*/regions/us-central1/subnetworks/network-1`
      
       Currently, this field is specific to gateways of type 'SECURE_WEB_GATEWAY".
       
      string subnetwork = 17 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getSubnetwork in interface GatewayOrBuilder
      Returns:
      The subnetwork.
    • getSubnetworkBytes

      public com.google.protobuf.ByteString getSubnetworkBytes()
       Optional. The relative resource name identifying  the subnetwork in which
       this SWG is allocated. For example:
       `projects/*/regions/us-central1/subnetworks/network-1`
      
       Currently, this field is specific to gateways of type 'SECURE_WEB_GATEWAY".
       
      string subnetwork = 17 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getSubnetworkBytes in interface GatewayOrBuilder
      Returns:
      The bytes for subnetwork.
    • setSubnetwork

      public Gateway.Builder setSubnetwork(String value)
       Optional. The relative resource name identifying  the subnetwork in which
       this SWG is allocated. For example:
       `projects/*/regions/us-central1/subnetworks/network-1`
      
       Currently, this field is specific to gateways of type 'SECURE_WEB_GATEWAY".
       
      string subnetwork = 17 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The subnetwork to set.
      Returns:
      This builder for chaining.
    • clearSubnetwork

      public Gateway.Builder clearSubnetwork()
       Optional. The relative resource name identifying  the subnetwork in which
       this SWG is allocated. For example:
       `projects/*/regions/us-central1/subnetworks/network-1`
      
       Currently, this field is specific to gateways of type 'SECURE_WEB_GATEWAY".
       
      string subnetwork = 17 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setSubnetworkBytes

      public Gateway.Builder setSubnetworkBytes(com.google.protobuf.ByteString value)
       Optional. The relative resource name identifying  the subnetwork in which
       this SWG is allocated. For example:
       `projects/*/regions/us-central1/subnetworks/network-1`
      
       Currently, this field is specific to gateways of type 'SECURE_WEB_GATEWAY".
       
      string subnetwork = 17 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for subnetwork to set.
      Returns:
      This builder for chaining.
    • getIpVersionValue

      public int getIpVersionValue()
       Optional. The IP Version that will be used by this gateway. Valid options
       are IPV4 or IPV6. Default is IPV4.
       
      .google.cloud.networkservices.v1.Gateway.IpVersion ip_version = 21 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getIpVersionValue in interface GatewayOrBuilder
      Returns:
      The enum numeric value on the wire for ipVersion.
    • setIpVersionValue

      public Gateway.Builder setIpVersionValue(int value)
       Optional. The IP Version that will be used by this gateway. Valid options
       are IPV4 or IPV6. Default is IPV4.
       
      .google.cloud.networkservices.v1.Gateway.IpVersion ip_version = 21 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The enum numeric value on the wire for ipVersion to set.
      Returns:
      This builder for chaining.
    • getIpVersion

      public Gateway.IpVersion getIpVersion()
       Optional. The IP Version that will be used by this gateway. Valid options
       are IPV4 or IPV6. Default is IPV4.
       
      .google.cloud.networkservices.v1.Gateway.IpVersion ip_version = 21 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getIpVersion in interface GatewayOrBuilder
      Returns:
      The ipVersion.
    • setIpVersion

      public Gateway.Builder setIpVersion(Gateway.IpVersion value)
       Optional. The IP Version that will be used by this gateway. Valid options
       are IPV4 or IPV6. Default is IPV4.
       
      .google.cloud.networkservices.v1.Gateway.IpVersion ip_version = 21 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The ipVersion to set.
      Returns:
      This builder for chaining.
    • clearIpVersion

      public Gateway.Builder clearIpVersion()
       Optional. The IP Version that will be used by this gateway. Valid options
       are IPV4 or IPV6. Default is IPV4.
       
      .google.cloud.networkservices.v1.Gateway.IpVersion ip_version = 21 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • hasEnvoyHeaders

      public boolean hasEnvoyHeaders()
       Optional. Determines if envoy will insert internal debug headers into
       upstream requests. Other Envoy headers may still be injected. By default,
       envoy will not insert any debug headers.
       
      optional .google.cloud.networkservices.v1.EnvoyHeaders envoy_headers = 28 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasEnvoyHeaders in interface GatewayOrBuilder
      Returns:
      Whether the envoyHeaders field is set.
    • getEnvoyHeadersValue

      public int getEnvoyHeadersValue()
       Optional. Determines if envoy will insert internal debug headers into
       upstream requests. Other Envoy headers may still be injected. By default,
       envoy will not insert any debug headers.
       
      optional .google.cloud.networkservices.v1.EnvoyHeaders envoy_headers = 28 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getEnvoyHeadersValue in interface GatewayOrBuilder
      Returns:
      The enum numeric value on the wire for envoyHeaders.
    • setEnvoyHeadersValue

      public Gateway.Builder setEnvoyHeadersValue(int value)
       Optional. Determines if envoy will insert internal debug headers into
       upstream requests. Other Envoy headers may still be injected. By default,
       envoy will not insert any debug headers.
       
      optional .google.cloud.networkservices.v1.EnvoyHeaders envoy_headers = 28 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The enum numeric value on the wire for envoyHeaders to set.
      Returns:
      This builder for chaining.
    • getEnvoyHeaders

      public EnvoyHeaders getEnvoyHeaders()
       Optional. Determines if envoy will insert internal debug headers into
       upstream requests. Other Envoy headers may still be injected. By default,
       envoy will not insert any debug headers.
       
      optional .google.cloud.networkservices.v1.EnvoyHeaders envoy_headers = 28 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getEnvoyHeaders in interface GatewayOrBuilder
      Returns:
      The envoyHeaders.
    • setEnvoyHeaders

      public Gateway.Builder setEnvoyHeaders(EnvoyHeaders value)
       Optional. Determines if envoy will insert internal debug headers into
       upstream requests. Other Envoy headers may still be injected. By default,
       envoy will not insert any debug headers.
       
      optional .google.cloud.networkservices.v1.EnvoyHeaders envoy_headers = 28 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The envoyHeaders to set.
      Returns:
      This builder for chaining.
    • clearEnvoyHeaders

      public Gateway.Builder clearEnvoyHeaders()
       Optional. Determines if envoy will insert internal debug headers into
       upstream requests. Other Envoy headers may still be injected. By default,
       envoy will not insert any debug headers.
       
      optional .google.cloud.networkservices.v1.EnvoyHeaders envoy_headers = 28 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • getRoutingModeValue

      public int getRoutingModeValue()
       Optional. The routing mode of the Gateway.
       This field is configurable only for gateways of type SECURE_WEB_GATEWAY.
       This field is required for gateways of type SECURE_WEB_GATEWAY.
       
      .google.cloud.networkservices.v1.Gateway.RoutingMode routing_mode = 32 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRoutingModeValue in interface GatewayOrBuilder
      Returns:
      The enum numeric value on the wire for routingMode.
    • setRoutingModeValue

      public Gateway.Builder setRoutingModeValue(int value)
       Optional. The routing mode of the Gateway.
       This field is configurable only for gateways of type SECURE_WEB_GATEWAY.
       This field is required for gateways of type SECURE_WEB_GATEWAY.
       
      .google.cloud.networkservices.v1.Gateway.RoutingMode routing_mode = 32 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The enum numeric value on the wire for routingMode to set.
      Returns:
      This builder for chaining.
    • getRoutingMode

      public Gateway.RoutingMode getRoutingMode()
       Optional. The routing mode of the Gateway.
       This field is configurable only for gateways of type SECURE_WEB_GATEWAY.
       This field is required for gateways of type SECURE_WEB_GATEWAY.
       
      .google.cloud.networkservices.v1.Gateway.RoutingMode routing_mode = 32 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRoutingMode in interface GatewayOrBuilder
      Returns:
      The routingMode.
    • setRoutingMode

      public Gateway.Builder setRoutingMode(Gateway.RoutingMode value)
       Optional. The routing mode of the Gateway.
       This field is configurable only for gateways of type SECURE_WEB_GATEWAY.
       This field is required for gateways of type SECURE_WEB_GATEWAY.
       
      .google.cloud.networkservices.v1.Gateway.RoutingMode routing_mode = 32 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The routingMode to set.
      Returns:
      This builder for chaining.
    • clearRoutingMode

      public Gateway.Builder clearRoutingMode()
       Optional. The routing mode of the Gateway.
       This field is configurable only for gateways of type SECURE_WEB_GATEWAY.
       This field is required for gateways of type SECURE_WEB_GATEWAY.
       
      .google.cloud.networkservices.v1.Gateway.RoutingMode routing_mode = 32 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.