Class InterconnectAttachmentL2Forwarding.Builder

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

public static final class InterconnectAttachmentL2Forwarding.Builder extends com.google.protobuf.GeneratedMessage.Builder<InterconnectAttachmentL2Forwarding.Builder> implements InterconnectAttachmentL2ForwardingOrBuilder
 L2 Interconnect Attachment related configuration.
 
Protobuf type google.cloud.compute.v1.InterconnectAttachmentL2Forwarding
  • 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<InterconnectAttachmentL2Forwarding.Builder>
    • internalGetMutableMapFieldReflection

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<InterconnectAttachmentL2Forwarding.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<InterconnectAttachmentL2Forwarding.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<InterconnectAttachmentL2Forwarding.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

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

      public InterconnectAttachmentL2Forwarding.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<InterconnectAttachmentL2Forwarding.Builder>
      Throws:
      IOException
    • getApplianceMappingsCount

      public int getApplianceMappingsCount()
      Description copied from interface: InterconnectAttachmentL2ForwardingOrBuilder
       Optional. A map of VLAN tags to appliances and optional inner mapping
       rules. If VLANs are not explicitly mapped to any appliance, the
       defaultApplianceIpAddress is used.
      
       Each VLAN tag can be a single number or a range of numbers in the range
       of 1 to 4094, e.g., "1" or "4001-4094". Non-empty and non-overlapping
       VLAN tag ranges are enforced, and violating operations will be rejected.
      
       The VLAN tags in the Ethernet header must use an ethertype value of
       0x88A8 or 0x8100.
       
      map<string, .google.cloud.compute.v1.InterconnectAttachmentL2ForwardingApplianceMapping> appliance_mappings = 374529975;
      Specified by:
      getApplianceMappingsCount in interface InterconnectAttachmentL2ForwardingOrBuilder
    • containsApplianceMappings

      public boolean containsApplianceMappings(String key)
       Optional. A map of VLAN tags to appliances and optional inner mapping
       rules. If VLANs are not explicitly mapped to any appliance, the
       defaultApplianceIpAddress is used.
      
       Each VLAN tag can be a single number or a range of numbers in the range
       of 1 to 4094, e.g., "1" or "4001-4094". Non-empty and non-overlapping
       VLAN tag ranges are enforced, and violating operations will be rejected.
      
       The VLAN tags in the Ethernet header must use an ethertype value of
       0x88A8 or 0x8100.
       
      map<string, .google.cloud.compute.v1.InterconnectAttachmentL2ForwardingApplianceMapping> appliance_mappings = 374529975;
      Specified by:
      containsApplianceMappings in interface InterconnectAttachmentL2ForwardingOrBuilder
    • getApplianceMappings

      Deprecated.
      Specified by:
      getApplianceMappings in interface InterconnectAttachmentL2ForwardingOrBuilder
    • getApplianceMappingsMap

       Optional. A map of VLAN tags to appliances and optional inner mapping
       rules. If VLANs are not explicitly mapped to any appliance, the
       defaultApplianceIpAddress is used.
      
       Each VLAN tag can be a single number or a range of numbers in the range
       of 1 to 4094, e.g., "1" or "4001-4094". Non-empty and non-overlapping
       VLAN tag ranges are enforced, and violating operations will be rejected.
      
       The VLAN tags in the Ethernet header must use an ethertype value of
       0x88A8 or 0x8100.
       
      map<string, .google.cloud.compute.v1.InterconnectAttachmentL2ForwardingApplianceMapping> appliance_mappings = 374529975;
      Specified by:
      getApplianceMappingsMap in interface InterconnectAttachmentL2ForwardingOrBuilder
    • getApplianceMappingsOrDefault

       Optional. A map of VLAN tags to appliances and optional inner mapping
       rules. If VLANs are not explicitly mapped to any appliance, the
       defaultApplianceIpAddress is used.
      
       Each VLAN tag can be a single number or a range of numbers in the range
       of 1 to 4094, e.g., "1" or "4001-4094". Non-empty and non-overlapping
       VLAN tag ranges are enforced, and violating operations will be rejected.
      
       The VLAN tags in the Ethernet header must use an ethertype value of
       0x88A8 or 0x8100.
       
      map<string, .google.cloud.compute.v1.InterconnectAttachmentL2ForwardingApplianceMapping> appliance_mappings = 374529975;
      Specified by:
      getApplianceMappingsOrDefault in interface InterconnectAttachmentL2ForwardingOrBuilder
    • getApplianceMappingsOrThrow

      public InterconnectAttachmentL2ForwardingApplianceMapping getApplianceMappingsOrThrow(String key)
       Optional. A map of VLAN tags to appliances and optional inner mapping
       rules. If VLANs are not explicitly mapped to any appliance, the
       defaultApplianceIpAddress is used.
      
       Each VLAN tag can be a single number or a range of numbers in the range
       of 1 to 4094, e.g., "1" or "4001-4094". Non-empty and non-overlapping
       VLAN tag ranges are enforced, and violating operations will be rejected.
      
       The VLAN tags in the Ethernet header must use an ethertype value of
       0x88A8 or 0x8100.
       
      map<string, .google.cloud.compute.v1.InterconnectAttachmentL2ForwardingApplianceMapping> appliance_mappings = 374529975;
      Specified by:
      getApplianceMappingsOrThrow in interface InterconnectAttachmentL2ForwardingOrBuilder
    • clearApplianceMappings

      public InterconnectAttachmentL2Forwarding.Builder clearApplianceMappings()
    • removeApplianceMappings

      public InterconnectAttachmentL2Forwarding.Builder removeApplianceMappings(String key)
       Optional. A map of VLAN tags to appliances and optional inner mapping
       rules. If VLANs are not explicitly mapped to any appliance, the
       defaultApplianceIpAddress is used.
      
       Each VLAN tag can be a single number or a range of numbers in the range
       of 1 to 4094, e.g., "1" or "4001-4094". Non-empty and non-overlapping
       VLAN tag ranges are enforced, and violating operations will be rejected.
      
       The VLAN tags in the Ethernet header must use an ethertype value of
       0x88A8 or 0x8100.
       
      map<string, .google.cloud.compute.v1.InterconnectAttachmentL2ForwardingApplianceMapping> appliance_mappings = 374529975;
    • getMutableApplianceMappings

      Deprecated.
      Use alternate mutation accessors instead.
    • putApplianceMappings

       Optional. A map of VLAN tags to appliances and optional inner mapping
       rules. If VLANs are not explicitly mapped to any appliance, the
       defaultApplianceIpAddress is used.
      
       Each VLAN tag can be a single number or a range of numbers in the range
       of 1 to 4094, e.g., "1" or "4001-4094". Non-empty and non-overlapping
       VLAN tag ranges are enforced, and violating operations will be rejected.
      
       The VLAN tags in the Ethernet header must use an ethertype value of
       0x88A8 or 0x8100.
       
      map<string, .google.cloud.compute.v1.InterconnectAttachmentL2ForwardingApplianceMapping> appliance_mappings = 374529975;
    • putAllApplianceMappings

       Optional. A map of VLAN tags to appliances and optional inner mapping
       rules. If VLANs are not explicitly mapped to any appliance, the
       defaultApplianceIpAddress is used.
      
       Each VLAN tag can be a single number or a range of numbers in the range
       of 1 to 4094, e.g., "1" or "4001-4094". Non-empty and non-overlapping
       VLAN tag ranges are enforced, and violating operations will be rejected.
      
       The VLAN tags in the Ethernet header must use an ethertype value of
       0x88A8 or 0x8100.
       
      map<string, .google.cloud.compute.v1.InterconnectAttachmentL2ForwardingApplianceMapping> appliance_mappings = 374529975;
    • putApplianceMappingsBuilderIfAbsent

      public InterconnectAttachmentL2ForwardingApplianceMapping.Builder putApplianceMappingsBuilderIfAbsent(String key)
       Optional. A map of VLAN tags to appliances and optional inner mapping
       rules. If VLANs are not explicitly mapped to any appliance, the
       defaultApplianceIpAddress is used.
      
       Each VLAN tag can be a single number or a range of numbers in the range
       of 1 to 4094, e.g., "1" or "4001-4094". Non-empty and non-overlapping
       VLAN tag ranges are enforced, and violating operations will be rejected.
      
       The VLAN tags in the Ethernet header must use an ethertype value of
       0x88A8 or 0x8100.
       
      map<string, .google.cloud.compute.v1.InterconnectAttachmentL2ForwardingApplianceMapping> appliance_mappings = 374529975;
    • hasDefaultApplianceIpAddress

      public boolean hasDefaultApplianceIpAddress()
       Optional. A single IPv4 or IPv6 address used as the default destination
       IP when there is no VLAN mapping result found.
      
       Unset field (null-value) indicates the unmatched packet should be
       dropped.
       
      optional string default_appliance_ip_address = 536490476;
      Specified by:
      hasDefaultApplianceIpAddress in interface InterconnectAttachmentL2ForwardingOrBuilder
      Returns:
      Whether the defaultApplianceIpAddress field is set.
    • getDefaultApplianceIpAddress

      public String getDefaultApplianceIpAddress()
       Optional. A single IPv4 or IPv6 address used as the default destination
       IP when there is no VLAN mapping result found.
      
       Unset field (null-value) indicates the unmatched packet should be
       dropped.
       
      optional string default_appliance_ip_address = 536490476;
      Specified by:
      getDefaultApplianceIpAddress in interface InterconnectAttachmentL2ForwardingOrBuilder
      Returns:
      The defaultApplianceIpAddress.
    • getDefaultApplianceIpAddressBytes

      public com.google.protobuf.ByteString getDefaultApplianceIpAddressBytes()
       Optional. A single IPv4 or IPv6 address used as the default destination
       IP when there is no VLAN mapping result found.
      
       Unset field (null-value) indicates the unmatched packet should be
       dropped.
       
      optional string default_appliance_ip_address = 536490476;
      Specified by:
      getDefaultApplianceIpAddressBytes in interface InterconnectAttachmentL2ForwardingOrBuilder
      Returns:
      The bytes for defaultApplianceIpAddress.
    • setDefaultApplianceIpAddress

      public InterconnectAttachmentL2Forwarding.Builder setDefaultApplianceIpAddress(String value)
       Optional. A single IPv4 or IPv6 address used as the default destination
       IP when there is no VLAN mapping result found.
      
       Unset field (null-value) indicates the unmatched packet should be
       dropped.
       
      optional string default_appliance_ip_address = 536490476;
      Parameters:
      value - The defaultApplianceIpAddress to set.
      Returns:
      This builder for chaining.
    • clearDefaultApplianceIpAddress

      public InterconnectAttachmentL2Forwarding.Builder clearDefaultApplianceIpAddress()
       Optional. A single IPv4 or IPv6 address used as the default destination
       IP when there is no VLAN mapping result found.
      
       Unset field (null-value) indicates the unmatched packet should be
       dropped.
       
      optional string default_appliance_ip_address = 536490476;
      Returns:
      This builder for chaining.
    • setDefaultApplianceIpAddressBytes

      public InterconnectAttachmentL2Forwarding.Builder setDefaultApplianceIpAddressBytes(com.google.protobuf.ByteString value)
       Optional. A single IPv4 or IPv6 address used as the default destination
       IP when there is no VLAN mapping result found.
      
       Unset field (null-value) indicates the unmatched packet should be
       dropped.
       
      optional string default_appliance_ip_address = 536490476;
      Parameters:
      value - The bytes for defaultApplianceIpAddress to set.
      Returns:
      This builder for chaining.
    • hasGeneveHeader

      public boolean hasGeneveHeader()
       Optional. It represents the structure of a Geneve (Generic Network
       Virtualization Encapsulation) header, as defined in RFC8926. It encapsulates packets from various
       protocols (e.g., Ethernet, IPv4, IPv6) for use in network virtualization
       environments.
       
      optional .google.cloud.compute.v1.InterconnectAttachmentL2ForwardingGeneveHeader geneve_header = 118688424;
      Specified by:
      hasGeneveHeader in interface InterconnectAttachmentL2ForwardingOrBuilder
      Returns:
      Whether the geneveHeader field is set.
    • getGeneveHeader

       Optional. It represents the structure of a Geneve (Generic Network
       Virtualization Encapsulation) header, as defined in RFC8926. It encapsulates packets from various
       protocols (e.g., Ethernet, IPv4, IPv6) for use in network virtualization
       environments.
       
      optional .google.cloud.compute.v1.InterconnectAttachmentL2ForwardingGeneveHeader geneve_header = 118688424;
      Specified by:
      getGeneveHeader in interface InterconnectAttachmentL2ForwardingOrBuilder
      Returns:
      The geneveHeader.
    • setGeneveHeader

       Optional. It represents the structure of a Geneve (Generic Network
       Virtualization Encapsulation) header, as defined in RFC8926. It encapsulates packets from various
       protocols (e.g., Ethernet, IPv4, IPv6) for use in network virtualization
       environments.
       
      optional .google.cloud.compute.v1.InterconnectAttachmentL2ForwardingGeneveHeader geneve_header = 118688424;
    • setGeneveHeader

       Optional. It represents the structure of a Geneve (Generic Network
       Virtualization Encapsulation) header, as defined in RFC8926. It encapsulates packets from various
       protocols (e.g., Ethernet, IPv4, IPv6) for use in network virtualization
       environments.
       
      optional .google.cloud.compute.v1.InterconnectAttachmentL2ForwardingGeneveHeader geneve_header = 118688424;
    • mergeGeneveHeader

       Optional. It represents the structure of a Geneve (Generic Network
       Virtualization Encapsulation) header, as defined in RFC8926. It encapsulates packets from various
       protocols (e.g., Ethernet, IPv4, IPv6) for use in network virtualization
       environments.
       
      optional .google.cloud.compute.v1.InterconnectAttachmentL2ForwardingGeneveHeader geneve_header = 118688424;
    • clearGeneveHeader

      public InterconnectAttachmentL2Forwarding.Builder clearGeneveHeader()
       Optional. It represents the structure of a Geneve (Generic Network
       Virtualization Encapsulation) header, as defined in RFC8926. It encapsulates packets from various
       protocols (e.g., Ethernet, IPv4, IPv6) for use in network virtualization
       environments.
       
      optional .google.cloud.compute.v1.InterconnectAttachmentL2ForwardingGeneveHeader geneve_header = 118688424;
    • getGeneveHeaderBuilder

       Optional. It represents the structure of a Geneve (Generic Network
       Virtualization Encapsulation) header, as defined in RFC8926. It encapsulates packets from various
       protocols (e.g., Ethernet, IPv4, IPv6) for use in network virtualization
       environments.
       
      optional .google.cloud.compute.v1.InterconnectAttachmentL2ForwardingGeneveHeader geneve_header = 118688424;
    • getGeneveHeaderOrBuilder

       Optional. It represents the structure of a Geneve (Generic Network
       Virtualization Encapsulation) header, as defined in RFC8926. It encapsulates packets from various
       protocols (e.g., Ethernet, IPv4, IPv6) for use in network virtualization
       environments.
       
      optional .google.cloud.compute.v1.InterconnectAttachmentL2ForwardingGeneveHeader geneve_header = 118688424;
      Specified by:
      getGeneveHeaderOrBuilder in interface InterconnectAttachmentL2ForwardingOrBuilder
    • hasNetwork

      public boolean hasNetwork()
       Required. Resource URL of the network to which this attachment belongs.
       
      optional string network = 232872494;
      Specified by:
      hasNetwork in interface InterconnectAttachmentL2ForwardingOrBuilder
      Returns:
      Whether the network field is set.
    • getNetwork

      public String getNetwork()
       Required. Resource URL of the network to which this attachment belongs.
       
      optional string network = 232872494;
      Specified by:
      getNetwork in interface InterconnectAttachmentL2ForwardingOrBuilder
      Returns:
      The network.
    • getNetworkBytes

      public com.google.protobuf.ByteString getNetworkBytes()
       Required. Resource URL of the network to which this attachment belongs.
       
      optional string network = 232872494;
      Specified by:
      getNetworkBytes in interface InterconnectAttachmentL2ForwardingOrBuilder
      Returns:
      The bytes for network.
    • setNetwork

       Required. Resource URL of the network to which this attachment belongs.
       
      optional string network = 232872494;
      Parameters:
      value - The network to set.
      Returns:
      This builder for chaining.
    • clearNetwork

       Required. Resource URL of the network to which this attachment belongs.
       
      optional string network = 232872494;
      Returns:
      This builder for chaining.
    • setNetworkBytes

      public InterconnectAttachmentL2Forwarding.Builder setNetworkBytes(com.google.protobuf.ByteString value)
       Required. Resource URL of the network to which this attachment belongs.
       
      optional string network = 232872494;
      Parameters:
      value - The bytes for network to set.
      Returns:
      This builder for chaining.
    • hasTunnelEndpointIpAddress

      public boolean hasTunnelEndpointIpAddress()
       Required. A single IPv4 or IPv6 address. This address will be used as the
       source IP address for packets sent to the appliances, and must be used as
       the destination IP address for packets that should be sent out through
       this attachment.
       
      optional string tunnel_endpoint_ip_address = 468740975;
      Specified by:
      hasTunnelEndpointIpAddress in interface InterconnectAttachmentL2ForwardingOrBuilder
      Returns:
      Whether the tunnelEndpointIpAddress field is set.
    • getTunnelEndpointIpAddress

      public String getTunnelEndpointIpAddress()
       Required. A single IPv4 or IPv6 address. This address will be used as the
       source IP address for packets sent to the appliances, and must be used as
       the destination IP address for packets that should be sent out through
       this attachment.
       
      optional string tunnel_endpoint_ip_address = 468740975;
      Specified by:
      getTunnelEndpointIpAddress in interface InterconnectAttachmentL2ForwardingOrBuilder
      Returns:
      The tunnelEndpointIpAddress.
    • getTunnelEndpointIpAddressBytes

      public com.google.protobuf.ByteString getTunnelEndpointIpAddressBytes()
       Required. A single IPv4 or IPv6 address. This address will be used as the
       source IP address for packets sent to the appliances, and must be used as
       the destination IP address for packets that should be sent out through
       this attachment.
       
      optional string tunnel_endpoint_ip_address = 468740975;
      Specified by:
      getTunnelEndpointIpAddressBytes in interface InterconnectAttachmentL2ForwardingOrBuilder
      Returns:
      The bytes for tunnelEndpointIpAddress.
    • setTunnelEndpointIpAddress

      public InterconnectAttachmentL2Forwarding.Builder setTunnelEndpointIpAddress(String value)
       Required. A single IPv4 or IPv6 address. This address will be used as the
       source IP address for packets sent to the appliances, and must be used as
       the destination IP address for packets that should be sent out through
       this attachment.
       
      optional string tunnel_endpoint_ip_address = 468740975;
      Parameters:
      value - The tunnelEndpointIpAddress to set.
      Returns:
      This builder for chaining.
    • clearTunnelEndpointIpAddress

      public InterconnectAttachmentL2Forwarding.Builder clearTunnelEndpointIpAddress()
       Required. A single IPv4 or IPv6 address. This address will be used as the
       source IP address for packets sent to the appliances, and must be used as
       the destination IP address for packets that should be sent out through
       this attachment.
       
      optional string tunnel_endpoint_ip_address = 468740975;
      Returns:
      This builder for chaining.
    • setTunnelEndpointIpAddressBytes

      public InterconnectAttachmentL2Forwarding.Builder setTunnelEndpointIpAddressBytes(com.google.protobuf.ByteString value)
       Required. A single IPv4 or IPv6 address. This address will be used as the
       source IP address for packets sent to the appliances, and must be used as
       the destination IP address for packets that should be sent out through
       this attachment.
       
      optional string tunnel_endpoint_ip_address = 468740975;
      Parameters:
      value - The bytes for tunnelEndpointIpAddress to set.
      Returns:
      This builder for chaining.