Interface NetworkOrBuilder

  • All Superinterfaces:
    com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
    All Known Implementing Classes:
    Network, Network.Builder

    public interface NetworkOrBuilder
    extends com.google.protobuf.MessageOrBuilder
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      String getNetwork()
      The network name to attach the VM's network interface to.
      com.google.protobuf.ByteString getNetworkBytes()
      The network name to attach the VM's network interface to.
      String getSubnetwork()
      If the specified network is configured for custom subnet creation, the name of the subnetwork to attach the instance to must be specified here.
      com.google.protobuf.ByteString getSubnetworkBytes()
      If the specified network is configured for custom subnet creation, the name of the subnetwork to attach the instance to must be specified here.
      boolean getUsePrivateAddress()
      If set to true, do not attach a public IP address to the VM.
      • Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

        isInitialized
      • Methods inherited from interface com.google.protobuf.MessageOrBuilder

        findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
    • Method Detail

      • getNetwork

        String getNetwork()
         The network name to attach the VM's network interface to. The value will
         be prefixed with `global/networks/` unless it contains a `/`, in which
         case it is assumed to be a fully specified network resource URL.
        
         If unspecified, the global default network is used.
         
        string network = 1;
        Returns:
        The network.
      • getNetworkBytes

        com.google.protobuf.ByteString getNetworkBytes()
         The network name to attach the VM's network interface to. The value will
         be prefixed with `global/networks/` unless it contains a `/`, in which
         case it is assumed to be a fully specified network resource URL.
        
         If unspecified, the global default network is used.
         
        string network = 1;
        Returns:
        The bytes for network.
      • getUsePrivateAddress

        boolean getUsePrivateAddress()
         If set to true, do not attach a public IP address to the VM. Note that
         without a public IP address, additional configuration is required to
         allow the VM to access Google services.
        
         See https://cloud.google.com/vpc/docs/configure-private-google-access
         for more information.
         
        bool use_private_address = 2;
        Returns:
        The usePrivateAddress.
      • getSubnetwork

        String getSubnetwork()
         If the specified network is configured for custom subnet creation, the
         name of the subnetwork to attach the instance to must be specified here.
        
         The value is prefixed with `regions/*/subnetworks/` unless it contains a
         `/`, in which case it is assumed to be a fully specified subnetwork
         resource URL.
        
         If the `*` character appears in the value, it is replaced with the region
         that the virtual machine has been allocated in.
         
        string subnetwork = 3;
        Returns:
        The subnetwork.
      • getSubnetworkBytes

        com.google.protobuf.ByteString getSubnetworkBytes()
         If the specified network is configured for custom subnet creation, the
         name of the subnetwork to attach the instance to must be specified here.
        
         The value is prefixed with `regions/*/subnetworks/` unless it contains a
         `/`, in which case it is assumed to be a fully specified subnetwork
         resource URL.
        
         If the `*` character appears in the value, it is replaced with the region
         that the virtual machine has been allocated in.
         
        string subnetwork = 3;
        Returns:
        The bytes for subnetwork.