Class RouterApplianceInstance.Builder (1.32.0)

public static final class RouterApplianceInstance.Builder extends GeneratedMessageV3.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.v1.RouterApplianceInstance

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public RouterApplianceInstance.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
RouterApplianceInstance.Builder
Overrides

build()

public RouterApplianceInstance build()
Returns
TypeDescription
RouterApplianceInstance

buildPartial()

public RouterApplianceInstance buildPartial()
Returns
TypeDescription
RouterApplianceInstance

clear()

public RouterApplianceInstance.Builder clear()
Returns
TypeDescription
RouterApplianceInstance.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public RouterApplianceInstance.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
RouterApplianceInstance.Builder
Overrides

clearIpAddress()

public RouterApplianceInstance.Builder clearIpAddress()

The IP address on the VM to use for peering.

string ip_address = 3;

Returns
TypeDescription
RouterApplianceInstance.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public RouterApplianceInstance.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
RouterApplianceInstance.Builder
Overrides

clearVirtualMachine()

public RouterApplianceInstance.Builder clearVirtualMachine()

The URI of the VM.

string virtual_machine = 1 [(.google.api.resource_reference) = { ... }

Returns
TypeDescription
RouterApplianceInstance.Builder

This builder for chaining.

clone()

public RouterApplianceInstance.Builder clone()
Returns
TypeDescription
RouterApplianceInstance.Builder
Overrides

getDefaultInstanceForType()

public RouterApplianceInstance getDefaultInstanceForType()
Returns
TypeDescription
RouterApplianceInstance

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getIpAddress()

public String getIpAddress()

The IP address on the VM to use for peering.

string ip_address = 3;

Returns
TypeDescription
String

The ipAddress.

getIpAddressBytes()

public ByteString getIpAddressBytes()

The IP address on the VM to use for peering.

string ip_address = 3;

Returns
TypeDescription
ByteString

The bytes for ipAddress.

getVirtualMachine()

public String getVirtualMachine()

The URI of the VM.

string virtual_machine = 1 [(.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The virtualMachine.

getVirtualMachineBytes()

public ByteString getVirtualMachineBytes()

The URI of the VM.

string virtual_machine = 1 [(.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for virtualMachine.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(RouterApplianceInstance other)

public RouterApplianceInstance.Builder mergeFrom(RouterApplianceInstance other)
Parameter
NameDescription
otherRouterApplianceInstance
Returns
TypeDescription
RouterApplianceInstance.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public RouterApplianceInstance.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RouterApplianceInstance.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public RouterApplianceInstance.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
RouterApplianceInstance.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final RouterApplianceInstance.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
RouterApplianceInstance.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public RouterApplianceInstance.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
RouterApplianceInstance.Builder
Overrides

setIpAddress(String value)

public RouterApplianceInstance.Builder setIpAddress(String value)

The IP address on the VM to use for peering.

string ip_address = 3;

Parameter
NameDescription
valueString

The ipAddress to set.

Returns
TypeDescription
RouterApplianceInstance.Builder

This builder for chaining.

setIpAddressBytes(ByteString value)

public RouterApplianceInstance.Builder setIpAddressBytes(ByteString value)

The IP address on the VM to use for peering.

string ip_address = 3;

Parameter
NameDescription
valueByteString

The bytes for ipAddress to set.

Returns
TypeDescription
RouterApplianceInstance.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public RouterApplianceInstance.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
RouterApplianceInstance.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final RouterApplianceInstance.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
RouterApplianceInstance.Builder
Overrides

setVirtualMachine(String value)

public RouterApplianceInstance.Builder setVirtualMachine(String value)

The URI of the VM.

string virtual_machine = 1 [(.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueString

The virtualMachine to set.

Returns
TypeDescription
RouterApplianceInstance.Builder

This builder for chaining.

setVirtualMachineBytes(ByteString value)

public RouterApplianceInstance.Builder setVirtualMachineBytes(ByteString value)

The URI of the VM.

string virtual_machine = 1 [(.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueByteString

The bytes for virtualMachine to set.

Returns
TypeDescription
RouterApplianceInstance.Builder

This builder for chaining.