Class NextHopSpoke.Builder (1.87.0)

public static final class NextHopSpoke.Builder extends GeneratedMessage.Builder<NextHopSpoke.Builder> implements NextHopSpokeOrBuilder

A route next hop that leads to a spoke resource.

Protobuf type google.cloud.networkconnectivity.v1beta.NextHopSpoke

Static Methods

getDescriptor()

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

Methods

build()

public NextHopSpoke build()
Returns
Type Description
NextHopSpoke

buildPartial()

public NextHopSpoke buildPartial()
Returns
Type Description
NextHopSpoke

clear()

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

clearSiteToSiteDataTransfer()

public NextHopSpoke.Builder clearSiteToSiteDataTransfer()

Indicates whether site-to-site data transfer is allowed for this spoke resource. Data transfer is available only in supported locations. Whether this route is accessible to other hybrid spokes with site-to-site data transfer enabled. If this is false, the route is only accessible to VPC spokes of the connected Hub.

bool site_to_site_data_transfer = 2;

Returns
Type Description
NextHopSpoke.Builder

This builder for chaining.

clearUri()

public NextHopSpoke.Builder clearUri()

The URI of the spoke resource.

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

Returns
Type Description
NextHopSpoke.Builder

This builder for chaining.

getDefaultInstanceForType()

public NextHopSpoke getDefaultInstanceForType()
Returns
Type Description
NextHopSpoke

getDescriptorForType()

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

getSiteToSiteDataTransfer()

public boolean getSiteToSiteDataTransfer()

Indicates whether site-to-site data transfer is allowed for this spoke resource. Data transfer is available only in supported locations. Whether this route is accessible to other hybrid spokes with site-to-site data transfer enabled. If this is false, the route is only accessible to VPC spokes of the connected Hub.

bool site_to_site_data_transfer = 2;

Returns
Type Description
boolean

The siteToSiteDataTransfer.

getUri()

public String getUri()

The URI of the spoke resource.

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

Returns
Type Description
String

The uri.

getUriBytes()

public ByteString getUriBytes()

The URI of the spoke resource.

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

Returns
Type Description
ByteString

The bytes for uri.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(NextHopSpoke other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setSiteToSiteDataTransfer(boolean value)

public NextHopSpoke.Builder setSiteToSiteDataTransfer(boolean value)

Indicates whether site-to-site data transfer is allowed for this spoke resource. Data transfer is available only in supported locations. Whether this route is accessible to other hybrid spokes with site-to-site data transfer enabled. If this is false, the route is only accessible to VPC spokes of the connected Hub.

bool site_to_site_data_transfer = 2;

Parameter
Name Description
value boolean

The siteToSiteDataTransfer to set.

Returns
Type Description
NextHopSpoke.Builder

This builder for chaining.

setUri(String value)

public NextHopSpoke.Builder setUri(String value)

The URI of the spoke resource.

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

Parameter
Name Description
value String

The uri to set.

Returns
Type Description
NextHopSpoke.Builder

This builder for chaining.

setUriBytes(ByteString value)

public NextHopSpoke.Builder setUriBytes(ByteString value)

The URI of the spoke resource.

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

Parameter
Name Description
value ByteString

The bytes for uri to set.

Returns
Type Description
NextHopSpoke.Builder

This builder for chaining.