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.networkconnectivity.v1beta.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
 A gateway that can apply specialized traffic processing.
 
Protobuf type google.cloud.networkconnectivity.v1beta.Gateway
  • 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<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
    • getIpRangeReservationsList

      public List<Gateway.IpRangeReservation> getIpRangeReservationsList()
       Optional. A list of IP ranges that are reserved for this gateway's internal
       intfrastructure.
       
      repeated .google.cloud.networkconnectivity.v1beta.Gateway.IpRangeReservation ip_range_reservations = 7 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getIpRangeReservationsList in interface GatewayOrBuilder
    • getIpRangeReservationsCount

      public int getIpRangeReservationsCount()
       Optional. A list of IP ranges that are reserved for this gateway's internal
       intfrastructure.
       
      repeated .google.cloud.networkconnectivity.v1beta.Gateway.IpRangeReservation ip_range_reservations = 7 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getIpRangeReservationsCount in interface GatewayOrBuilder
    • getIpRangeReservations

      public Gateway.IpRangeReservation getIpRangeReservations(int index)
       Optional. A list of IP ranges that are reserved for this gateway's internal
       intfrastructure.
       
      repeated .google.cloud.networkconnectivity.v1beta.Gateway.IpRangeReservation ip_range_reservations = 7 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getIpRangeReservations in interface GatewayOrBuilder
    • setIpRangeReservations

      public Gateway.Builder setIpRangeReservations(int index, Gateway.IpRangeReservation value)
       Optional. A list of IP ranges that are reserved for this gateway's internal
       intfrastructure.
       
      repeated .google.cloud.networkconnectivity.v1beta.Gateway.IpRangeReservation ip_range_reservations = 7 [(.google.api.field_behavior) = OPTIONAL];
    • setIpRangeReservations

      public Gateway.Builder setIpRangeReservations(int index, Gateway.IpRangeReservation.Builder builderForValue)
       Optional. A list of IP ranges that are reserved for this gateway's internal
       intfrastructure.
       
      repeated .google.cloud.networkconnectivity.v1beta.Gateway.IpRangeReservation ip_range_reservations = 7 [(.google.api.field_behavior) = OPTIONAL];
    • addIpRangeReservations

      public Gateway.Builder addIpRangeReservations(Gateway.IpRangeReservation value)
       Optional. A list of IP ranges that are reserved for this gateway's internal
       intfrastructure.
       
      repeated .google.cloud.networkconnectivity.v1beta.Gateway.IpRangeReservation ip_range_reservations = 7 [(.google.api.field_behavior) = OPTIONAL];
    • addIpRangeReservations

      public Gateway.Builder addIpRangeReservations(int index, Gateway.IpRangeReservation value)
       Optional. A list of IP ranges that are reserved for this gateway's internal
       intfrastructure.
       
      repeated .google.cloud.networkconnectivity.v1beta.Gateway.IpRangeReservation ip_range_reservations = 7 [(.google.api.field_behavior) = OPTIONAL];
    • addIpRangeReservations

      public Gateway.Builder addIpRangeReservations(Gateway.IpRangeReservation.Builder builderForValue)
       Optional. A list of IP ranges that are reserved for this gateway's internal
       intfrastructure.
       
      repeated .google.cloud.networkconnectivity.v1beta.Gateway.IpRangeReservation ip_range_reservations = 7 [(.google.api.field_behavior) = OPTIONAL];
    • addIpRangeReservations

      public Gateway.Builder addIpRangeReservations(int index, Gateway.IpRangeReservation.Builder builderForValue)
       Optional. A list of IP ranges that are reserved for this gateway's internal
       intfrastructure.
       
      repeated .google.cloud.networkconnectivity.v1beta.Gateway.IpRangeReservation ip_range_reservations = 7 [(.google.api.field_behavior) = OPTIONAL];
    • addAllIpRangeReservations

      public Gateway.Builder addAllIpRangeReservations(Iterable<? extends Gateway.IpRangeReservation> values)
       Optional. A list of IP ranges that are reserved for this gateway's internal
       intfrastructure.
       
      repeated .google.cloud.networkconnectivity.v1beta.Gateway.IpRangeReservation ip_range_reservations = 7 [(.google.api.field_behavior) = OPTIONAL];
    • clearIpRangeReservations

      public Gateway.Builder clearIpRangeReservations()
       Optional. A list of IP ranges that are reserved for this gateway's internal
       intfrastructure.
       
      repeated .google.cloud.networkconnectivity.v1beta.Gateway.IpRangeReservation ip_range_reservations = 7 [(.google.api.field_behavior) = OPTIONAL];
    • removeIpRangeReservations

      public Gateway.Builder removeIpRangeReservations(int index)
       Optional. A list of IP ranges that are reserved for this gateway's internal
       intfrastructure.
       
      repeated .google.cloud.networkconnectivity.v1beta.Gateway.IpRangeReservation ip_range_reservations = 7 [(.google.api.field_behavior) = OPTIONAL];
    • getIpRangeReservationsBuilder

      public Gateway.IpRangeReservation.Builder getIpRangeReservationsBuilder(int index)
       Optional. A list of IP ranges that are reserved for this gateway's internal
       intfrastructure.
       
      repeated .google.cloud.networkconnectivity.v1beta.Gateway.IpRangeReservation ip_range_reservations = 7 [(.google.api.field_behavior) = OPTIONAL];
    • getIpRangeReservationsOrBuilder

      public Gateway.IpRangeReservationOrBuilder getIpRangeReservationsOrBuilder(int index)
       Optional. A list of IP ranges that are reserved for this gateway's internal
       intfrastructure.
       
      repeated .google.cloud.networkconnectivity.v1beta.Gateway.IpRangeReservation ip_range_reservations = 7 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getIpRangeReservationsOrBuilder in interface GatewayOrBuilder
    • getIpRangeReservationsOrBuilderList

      public List<? extends Gateway.IpRangeReservationOrBuilder> getIpRangeReservationsOrBuilderList()
       Optional. A list of IP ranges that are reserved for this gateway's internal
       intfrastructure.
       
      repeated .google.cloud.networkconnectivity.v1beta.Gateway.IpRangeReservation ip_range_reservations = 7 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getIpRangeReservationsOrBuilderList in interface GatewayOrBuilder
    • addIpRangeReservationsBuilder

      public Gateway.IpRangeReservation.Builder addIpRangeReservationsBuilder()
       Optional. A list of IP ranges that are reserved for this gateway's internal
       intfrastructure.
       
      repeated .google.cloud.networkconnectivity.v1beta.Gateway.IpRangeReservation ip_range_reservations = 7 [(.google.api.field_behavior) = OPTIONAL];
    • addIpRangeReservationsBuilder

      public Gateway.IpRangeReservation.Builder addIpRangeReservationsBuilder(int index)
       Optional. A list of IP ranges that are reserved for this gateway's internal
       intfrastructure.
       
      repeated .google.cloud.networkconnectivity.v1beta.Gateway.IpRangeReservation ip_range_reservations = 7 [(.google.api.field_behavior) = OPTIONAL];
    • getIpRangeReservationsBuilderList

      public List<Gateway.IpRangeReservation.Builder> getIpRangeReservationsBuilderList()
       Optional. A list of IP ranges that are reserved for this gateway's internal
       intfrastructure.
       
      repeated .google.cloud.networkconnectivity.v1beta.Gateway.IpRangeReservation ip_range_reservations = 7 [(.google.api.field_behavior) = OPTIONAL];
    • getCapacityValue

      public int getCapacityValue()
       Optional. The aggregate processing capacity of this gateway.
       
      .google.cloud.networkconnectivity.v1beta.Gateway.GatewayCapacity capacity = 10 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getCapacityValue in interface GatewayOrBuilder
      Returns:
      The enum numeric value on the wire for capacity.
    • setCapacityValue

      public Gateway.Builder setCapacityValue(int value)
       Optional. The aggregate processing capacity of this gateway.
       
      .google.cloud.networkconnectivity.v1beta.Gateway.GatewayCapacity capacity = 10 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The enum numeric value on the wire for capacity to set.
      Returns:
      This builder for chaining.
    • getCapacity

      public Gateway.GatewayCapacity getCapacity()
       Optional. The aggregate processing capacity of this gateway.
       
      .google.cloud.networkconnectivity.v1beta.Gateway.GatewayCapacity capacity = 10 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getCapacity in interface GatewayOrBuilder
      Returns:
      The capacity.
    • setCapacity

      public Gateway.Builder setCapacity(Gateway.GatewayCapacity value)
       Optional. The aggregate processing capacity of this gateway.
       
      .google.cloud.networkconnectivity.v1beta.Gateway.GatewayCapacity capacity = 10 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The capacity to set.
      Returns:
      This builder for chaining.
    • clearCapacity

      public Gateway.Builder clearCapacity()
       Optional. The aggregate processing capacity of this gateway.
       
      .google.cloud.networkconnectivity.v1beta.Gateway.GatewayCapacity capacity = 10 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • getCloudRoutersList

      public com.google.protobuf.ProtocolStringList getCloudRoutersList()
       Output only. The list of Cloud Routers that are connected to this gateway.
       Should be in the form:
       https://www.googleapis.com/compute/v1/projects/{project}/regions/{region}/routers/{router}
       
      repeated string cloud_routers = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCloudRoutersList in interface GatewayOrBuilder
      Returns:
      A list containing the cloudRouters.
    • getCloudRoutersCount

      public int getCloudRoutersCount()
       Output only. The list of Cloud Routers that are connected to this gateway.
       Should be in the form:
       https://www.googleapis.com/compute/v1/projects/{project}/regions/{region}/routers/{router}
       
      repeated string cloud_routers = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCloudRoutersCount in interface GatewayOrBuilder
      Returns:
      The count of cloudRouters.
    • getCloudRouters

      public String getCloudRouters(int index)
       Output only. The list of Cloud Routers that are connected to this gateway.
       Should be in the form:
       https://www.googleapis.com/compute/v1/projects/{project}/regions/{region}/routers/{router}
       
      repeated string cloud_routers = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCloudRouters in interface GatewayOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The cloudRouters at the given index.
    • getCloudRoutersBytes

      public com.google.protobuf.ByteString getCloudRoutersBytes(int index)
       Output only. The list of Cloud Routers that are connected to this gateway.
       Should be in the form:
       https://www.googleapis.com/compute/v1/projects/{project}/regions/{region}/routers/{router}
       
      repeated string cloud_routers = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCloudRoutersBytes in interface GatewayOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the cloudRouters at the given index.
    • setCloudRouters

      public Gateway.Builder setCloudRouters(int index, String value)
       Output only. The list of Cloud Routers that are connected to this gateway.
       Should be in the form:
       https://www.googleapis.com/compute/v1/projects/{project}/regions/{region}/routers/{router}
       
      repeated string cloud_routers = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      index - The index to set the value at.
      value - The cloudRouters to set.
      Returns:
      This builder for chaining.
    • addCloudRouters

      public Gateway.Builder addCloudRouters(String value)
       Output only. The list of Cloud Routers that are connected to this gateway.
       Should be in the form:
       https://www.googleapis.com/compute/v1/projects/{project}/regions/{region}/routers/{router}
       
      repeated string cloud_routers = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The cloudRouters to add.
      Returns:
      This builder for chaining.
    • addAllCloudRouters

      public Gateway.Builder addAllCloudRouters(Iterable<String> values)
       Output only. The list of Cloud Routers that are connected to this gateway.
       Should be in the form:
       https://www.googleapis.com/compute/v1/projects/{project}/regions/{region}/routers/{router}
       
      repeated string cloud_routers = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      values - The cloudRouters to add.
      Returns:
      This builder for chaining.
    • clearCloudRouters

      public Gateway.Builder clearCloudRouters()
       Output only. The list of Cloud Routers that are connected to this gateway.
       Should be in the form:
       https://www.googleapis.com/compute/v1/projects/{project}/regions/{region}/routers/{router}
       
      repeated string cloud_routers = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • addCloudRoutersBytes

      public Gateway.Builder addCloudRoutersBytes(com.google.protobuf.ByteString value)
       Output only. The list of Cloud Routers that are connected to this gateway.
       Should be in the form:
       https://www.googleapis.com/compute/v1/projects/{project}/regions/{region}/routers/{router}
       
      repeated string cloud_routers = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes of the cloudRouters to add.
      Returns:
      This builder for chaining.
    • getSacAttachment

      public String getSacAttachment()
       Output only. The URI of the connected SACAttachment.
       Should be in the form:
       projects/{project}/locations/{location}/sacAttachments/{sac_attachment}
       
      string sac_attachment = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Specified by:
      getSacAttachment in interface GatewayOrBuilder
      Returns:
      The sacAttachment.
    • getSacAttachmentBytes

      public com.google.protobuf.ByteString getSacAttachmentBytes()
       Output only. The URI of the connected SACAttachment.
       Should be in the form:
       projects/{project}/locations/{location}/sacAttachments/{sac_attachment}
       
      string sac_attachment = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Specified by:
      getSacAttachmentBytes in interface GatewayOrBuilder
      Returns:
      The bytes for sacAttachment.
    • setSacAttachment

      public Gateway.Builder setSacAttachment(String value)
       Output only. The URI of the connected SACAttachment.
       Should be in the form:
       projects/{project}/locations/{location}/sacAttachments/{sac_attachment}
       
      string sac_attachment = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The sacAttachment to set.
      Returns:
      This builder for chaining.
    • clearSacAttachment

      public Gateway.Builder clearSacAttachment()
       Output only. The URI of the connected SACAttachment.
       Should be in the form:
       projects/{project}/locations/{location}/sacAttachments/{sac_attachment}
       
      string sac_attachment = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setSacAttachmentBytes

      public Gateway.Builder setSacAttachmentBytes(com.google.protobuf.ByteString value)
       Output only. The URI of the connected SACAttachment.
       Should be in the form:
       projects/{project}/locations/{location}/sacAttachments/{sac_attachment}
       
      string sac_attachment = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for sacAttachment to set.
      Returns:
      This builder for chaining.