Class RouterApplianceInstance.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<RouterApplianceInstance.Builder>
com.google.cloud.networkconnectivity.v1beta.RouterApplianceInstance.Builder
All Implemented Interfaces:
RouterApplianceInstanceOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
RouterApplianceInstance

public static final class RouterApplianceInstance.Builder extends com.google.protobuf.GeneratedMessage.Builder<RouterApplianceInstance.Builder> implements RouterApplianceInstanceOrBuilder
 A router appliance instance is a Compute Engine virtual machine (VM) instance
 that acts as a BGP speaker. A router appliance instance is specified by the
 URI of the VM and the internal IP address of one of the VM's network
 interfaces.
 
Protobuf type google.cloud.networkconnectivity.v1beta.RouterApplianceInstance
  • 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<RouterApplianceInstance.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<RouterApplianceInstance.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<RouterApplianceInstance.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public RouterApplianceInstance.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<RouterApplianceInstance.Builder>
      Throws:
      IOException
    • getVirtualMachine

      public String getVirtualMachine()
       The URI of the VM.
       
      string virtual_machine = 1 [(.google.api.resource_reference) = { ... }
      Specified by:
      getVirtualMachine in interface RouterApplianceInstanceOrBuilder
      Returns:
      The virtualMachine.
    • getVirtualMachineBytes

      public com.google.protobuf.ByteString getVirtualMachineBytes()
       The URI of the VM.
       
      string virtual_machine = 1 [(.google.api.resource_reference) = { ... }
      Specified by:
      getVirtualMachineBytes in interface RouterApplianceInstanceOrBuilder
      Returns:
      The bytes for virtualMachine.
    • setVirtualMachine

      public RouterApplianceInstance.Builder setVirtualMachine(String value)
       The URI of the VM.
       
      string virtual_machine = 1 [(.google.api.resource_reference) = { ... }
      Parameters:
      value - The virtualMachine to set.
      Returns:
      This builder for chaining.
    • clearVirtualMachine

      public RouterApplianceInstance.Builder clearVirtualMachine()
       The URI of the VM.
       
      string virtual_machine = 1 [(.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setVirtualMachineBytes

      public RouterApplianceInstance.Builder setVirtualMachineBytes(com.google.protobuf.ByteString value)
       The URI of the VM.
       
      string virtual_machine = 1 [(.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for virtualMachine to set.
      Returns:
      This builder for chaining.
    • getIpAddress

      public String getIpAddress()
       The IP address on the VM to use for peering.
       
      string ip_address = 3;
      Specified by:
      getIpAddress in interface RouterApplianceInstanceOrBuilder
      Returns:
      The ipAddress.
    • getIpAddressBytes

      public com.google.protobuf.ByteString getIpAddressBytes()
       The IP address on the VM to use for peering.
       
      string ip_address = 3;
      Specified by:
      getIpAddressBytes in interface RouterApplianceInstanceOrBuilder
      Returns:
      The bytes for ipAddress.
    • setIpAddress

      public RouterApplianceInstance.Builder setIpAddress(String value)
       The IP address on the VM to use for peering.
       
      string ip_address = 3;
      Parameters:
      value - The ipAddress to set.
      Returns:
      This builder for chaining.
    • clearIpAddress

      public RouterApplianceInstance.Builder clearIpAddress()
       The IP address on the VM to use for peering.
       
      string ip_address = 3;
      Returns:
      This builder for chaining.
    • setIpAddressBytes

      public RouterApplianceInstance.Builder setIpAddressBytes(com.google.protobuf.ByteString value)
       The IP address on the VM to use for peering.
       
      string ip_address = 3;
      Parameters:
      value - The bytes for ipAddress to set.
      Returns:
      This builder for chaining.