Class RouterApplianceInstance.Builder (1.52.0)

public static final class RouterApplianceInstance.Builder extends GeneratedMessageV3.Builder<RouterApplianceInstance.Builder> implements RouterApplianceInstanceOrBuilder

RouterAppliance represents a Router appliance which is specified by a VM URI and a NIC address.

Protobuf type google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public RouterApplianceInstance.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
RouterApplianceInstance.Builder
Overrides

build()

public RouterApplianceInstance build()
Returns
Type Description
RouterApplianceInstance

buildPartial()

public RouterApplianceInstance buildPartial()
Returns
Type Description
RouterApplianceInstance

clear()

public RouterApplianceInstance.Builder clear()
Returns
Type Description
RouterApplianceInstance.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public RouterApplianceInstance.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
RouterApplianceInstance.Builder
Overrides

clearIpAddress()

public RouterApplianceInstance.Builder clearIpAddress()

The IP address of the network interface to use for peering.

string ip_address = 3;

Returns
Type Description
RouterApplianceInstance.Builder

This builder for chaining.

clearNetworkInterface() (deprecated)

public RouterApplianceInstance.Builder clearNetworkInterface()

Deprecated. google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.network_interface is deprecated. See google/cloud/networkconnectivity/v1alpha1/hub.proto;l=533

string network_interface = 2 [deprecated = true];

Returns
Type Description
RouterApplianceInstance.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public RouterApplianceInstance.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
RouterApplianceInstance.Builder
Overrides

clearVirtualMachine()

public RouterApplianceInstance.Builder clearVirtualMachine()

The URI of the virtual machine resource

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

Returns
Type Description
RouterApplianceInstance.Builder

This builder for chaining.

clone()

public RouterApplianceInstance.Builder clone()
Returns
Type Description
RouterApplianceInstance.Builder
Overrides

getDefaultInstanceForType()

public RouterApplianceInstance getDefaultInstanceForType()
Returns
Type Description
RouterApplianceInstance

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getIpAddress()

public String getIpAddress()

The IP address of the network interface to use for peering.

string ip_address = 3;

Returns
Type Description
String

The ipAddress.

getIpAddressBytes()

public ByteString getIpAddressBytes()

The IP address of the network interface to use for peering.

string ip_address = 3;

Returns
Type Description
ByteString

The bytes for ipAddress.

getNetworkInterface() (deprecated)

public String getNetworkInterface()

Deprecated. google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.network_interface is deprecated. See google/cloud/networkconnectivity/v1alpha1/hub.proto;l=533

string network_interface = 2 [deprecated = true];

Returns
Type Description
String

The networkInterface.

getNetworkInterfaceBytes() (deprecated)

public ByteString getNetworkInterfaceBytes()

Deprecated. google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.network_interface is deprecated. See google/cloud/networkconnectivity/v1alpha1/hub.proto;l=533

string network_interface = 2 [deprecated = true];

Returns
Type Description
ByteString

The bytes for networkInterface.

getVirtualMachine()

public String getVirtualMachine()

The URI of the virtual machine resource

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

Returns
Type Description
String

The virtualMachine.

getVirtualMachineBytes()

public ByteString getVirtualMachineBytes()

The URI of the virtual machine resource

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

Returns
Type Description
ByteString

The bytes for virtualMachine.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(RouterApplianceInstance other)

public RouterApplianceInstance.Builder mergeFrom(RouterApplianceInstance other)
Parameter
Name Description
other RouterApplianceInstance
Returns
Type Description
RouterApplianceInstance.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public RouterApplianceInstance.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RouterApplianceInstance.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public RouterApplianceInstance.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
RouterApplianceInstance.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final RouterApplianceInstance.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
RouterApplianceInstance.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public RouterApplianceInstance.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
RouterApplianceInstance.Builder
Overrides

setIpAddress(String value)

public RouterApplianceInstance.Builder setIpAddress(String value)

The IP address of the network interface to use for peering.

string ip_address = 3;

Parameter
Name Description
value String

The ipAddress to set.

Returns
Type Description
RouterApplianceInstance.Builder

This builder for chaining.

setIpAddressBytes(ByteString value)

public RouterApplianceInstance.Builder setIpAddressBytes(ByteString value)

The IP address of the network interface to use for peering.

string ip_address = 3;

Parameter
Name Description
value ByteString

The bytes for ipAddress to set.

Returns
Type Description
RouterApplianceInstance.Builder

This builder for chaining.

setNetworkInterface(String value) (deprecated)

public RouterApplianceInstance.Builder setNetworkInterface(String value)

Deprecated. google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.network_interface is deprecated. See google/cloud/networkconnectivity/v1alpha1/hub.proto;l=533

string network_interface = 2 [deprecated = true];

Parameter
Name Description
value String

The networkInterface to set.

Returns
Type Description
RouterApplianceInstance.Builder

This builder for chaining.

setNetworkInterfaceBytes(ByteString value) (deprecated)

public RouterApplianceInstance.Builder setNetworkInterfaceBytes(ByteString value)

Deprecated. google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.network_interface is deprecated. See google/cloud/networkconnectivity/v1alpha1/hub.proto;l=533

string network_interface = 2 [deprecated = true];

Parameter
Name Description
value ByteString

The bytes for networkInterface to set.

Returns
Type Description
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
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
RouterApplianceInstance.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final RouterApplianceInstance.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
RouterApplianceInstance.Builder
Overrides

setVirtualMachine(String value)

public RouterApplianceInstance.Builder setVirtualMachine(String value)

The URI of the virtual machine resource

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

Parameter
Name Description
value String

The virtualMachine to set.

Returns
Type Description
RouterApplianceInstance.Builder

This builder for chaining.

setVirtualMachineBytes(ByteString value)

public RouterApplianceInstance.Builder setVirtualMachineBytes(ByteString value)

The URI of the virtual machine resource

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

Parameter
Name Description
value ByteString

The bytes for virtualMachine to set.

Returns
Type Description
RouterApplianceInstance.Builder

This builder for chaining.