Class Spoke.Builder (1.8.0)

Stay organized with collections Save and categorize content based on your preferences.
public static final class Spoke.Builder extends GeneratedMessageV3.Builder<Spoke.Builder> implements SpokeOrBuilder

A Spoke is an abstraction of a network attachment being attached to a Hub. A Spoke can be underlying a VPN tunnel, a VLAN (interconnect) attachment, a Router appliance, etc.

Protobuf type google.cloud.networkconnectivity.v1alpha1.Spoke

Implements

SpokeOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllLinkedInterconnectAttachments(Iterable<String> values)

public Spoke.Builder addAllLinkedInterconnectAttachments(Iterable<String> values)

The URIs of linked interconnect attachment resources

repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... }

Parameter
NameDescription
valuesIterable<String>

The linkedInterconnectAttachments to add.

Returns
TypeDescription
Spoke.Builder

This builder for chaining.

addAllLinkedRouterApplianceInstances(Iterable<? extends RouterApplianceInstance> values)

public Spoke.Builder addAllLinkedRouterApplianceInstances(Iterable<? extends RouterApplianceInstance> values)

The URIs of linked Router appliance resources

repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance>
Returns
TypeDescription
Spoke.Builder

addAllLinkedVpnTunnels(Iterable<String> values)

public Spoke.Builder addAllLinkedVpnTunnels(Iterable<String> values)

The URIs of linked VPN tunnel resources

repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... }

Parameter
NameDescription
valuesIterable<String>

The linkedVpnTunnels to add.

Returns
TypeDescription
Spoke.Builder

This builder for chaining.

addLinkedInterconnectAttachments(String value)

public Spoke.Builder addLinkedInterconnectAttachments(String value)

The URIs of linked interconnect attachment resources

repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueString

The linkedInterconnectAttachments to add.

Returns
TypeDescription
Spoke.Builder

This builder for chaining.

addLinkedInterconnectAttachmentsBytes(ByteString value)

public Spoke.Builder addLinkedInterconnectAttachmentsBytes(ByteString value)

The URIs of linked interconnect attachment resources

repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueByteString

The bytes of the linkedInterconnectAttachments to add.

Returns
TypeDescription
Spoke.Builder

This builder for chaining.

addLinkedRouterApplianceInstances(RouterApplianceInstance value)

public Spoke.Builder addLinkedRouterApplianceInstances(RouterApplianceInstance value)

The URIs of linked Router appliance resources

repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14;

Parameter
NameDescription
valueRouterApplianceInstance
Returns
TypeDescription
Spoke.Builder

addLinkedRouterApplianceInstances(RouterApplianceInstance.Builder builderForValue)

public Spoke.Builder addLinkedRouterApplianceInstances(RouterApplianceInstance.Builder builderForValue)

The URIs of linked Router appliance resources

repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14;

Parameter
NameDescription
builderForValueRouterApplianceInstance.Builder
Returns
TypeDescription
Spoke.Builder

addLinkedRouterApplianceInstances(int index, RouterApplianceInstance value)

public Spoke.Builder addLinkedRouterApplianceInstances(int index, RouterApplianceInstance value)

The URIs of linked Router appliance resources

repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14;

Parameters
NameDescription
indexint
valueRouterApplianceInstance
Returns
TypeDescription
Spoke.Builder

addLinkedRouterApplianceInstances(int index, RouterApplianceInstance.Builder builderForValue)

public Spoke.Builder addLinkedRouterApplianceInstances(int index, RouterApplianceInstance.Builder builderForValue)

The URIs of linked Router appliance resources

repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14;

Parameters
NameDescription
indexint
builderForValueRouterApplianceInstance.Builder
Returns
TypeDescription
Spoke.Builder

addLinkedRouterApplianceInstancesBuilder()

public RouterApplianceInstance.Builder addLinkedRouterApplianceInstancesBuilder()

The URIs of linked Router appliance resources

repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14;

Returns
TypeDescription
RouterApplianceInstance.Builder

addLinkedRouterApplianceInstancesBuilder(int index)

public RouterApplianceInstance.Builder addLinkedRouterApplianceInstancesBuilder(int index)

The URIs of linked Router appliance resources

repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14;

Parameter
NameDescription
indexint
Returns
TypeDescription
RouterApplianceInstance.Builder

addLinkedVpnTunnels(String value)

public Spoke.Builder addLinkedVpnTunnels(String value)

The URIs of linked VPN tunnel resources

repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueString

The linkedVpnTunnels to add.

Returns
TypeDescription
Spoke.Builder

This builder for chaining.

addLinkedVpnTunnelsBytes(ByteString value)

public Spoke.Builder addLinkedVpnTunnelsBytes(ByteString value)

The URIs of linked VPN tunnel resources

repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueByteString

The bytes of the linkedVpnTunnels to add.

Returns
TypeDescription
Spoke.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Spoke build()
Returns
TypeDescription
Spoke

buildPartial()

public Spoke buildPartial()
Returns
TypeDescription
Spoke

clear()

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

clearCreateTime()

public Spoke.Builder clearCreateTime()

The time when the Spoke was created.

.google.protobuf.Timestamp create_time = 2;

Returns
TypeDescription
Spoke.Builder

clearDescription()

public Spoke.Builder clearDescription()

Short description of the spoke resource

string description = 5;

Returns
TypeDescription
Spoke.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearHub()

public Spoke.Builder clearHub()

The resource URL of the hub resource that the spoke is attached to

string hub = 6 [(.google.api.resource_reference) = { ... }

Returns
TypeDescription
Spoke.Builder

This builder for chaining.

clearLabels()

public Spoke.Builder clearLabels()
Returns
TypeDescription
Spoke.Builder

clearLinkedInterconnectAttachments()

public Spoke.Builder clearLinkedInterconnectAttachments()

The URIs of linked interconnect attachment resources

repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... }

Returns
TypeDescription
Spoke.Builder

This builder for chaining.

clearLinkedRouterApplianceInstances()

public Spoke.Builder clearLinkedRouterApplianceInstances()

The URIs of linked Router appliance resources

repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14;

Returns
TypeDescription
Spoke.Builder

clearLinkedVpnTunnels()

public Spoke.Builder clearLinkedVpnTunnels()

The URIs of linked VPN tunnel resources

repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... }

Returns
TypeDescription
Spoke.Builder

This builder for chaining.

clearName()

public Spoke.Builder clearName()

Immutable. The name of a Spoke resource.

string name = 1 [(.google.api.field_behavior) = IMMUTABLE];

Returns
TypeDescription
Spoke.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearState()

public Spoke.Builder clearState()

Output only. The current lifecycle state of this Hub.

.google.cloud.networkconnectivity.v1alpha1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Spoke.Builder

This builder for chaining.

clearUniqueId()

public Spoke.Builder clearUniqueId()

Output only. Google-generated UUID for this resource. This is unique across all Spoke resources. If a Spoke resource is deleted and another with the same name is created, it gets a different unique_id.

string unique_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Spoke.Builder

This builder for chaining.

clearUpdateTime()

public Spoke.Builder clearUpdateTime()

The time when the Spoke was updated.

.google.protobuf.Timestamp update_time = 3;

Returns
TypeDescription
Spoke.Builder

clone()

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

containsLabels(String key)

public boolean containsLabels(String key)

User-defined labels.

map<string, string> labels = 4;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getCreateTime()

public Timestamp getCreateTime()

The time when the Spoke was created.

.google.protobuf.Timestamp create_time = 2;

Returns
TypeDescription
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

The time when the Spoke was created.

.google.protobuf.Timestamp create_time = 2;

Returns
TypeDescription
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

The time when the Spoke was created.

.google.protobuf.Timestamp create_time = 2;

Returns
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public Spoke getDefaultInstanceForType()
Returns
TypeDescription
Spoke

getDescription()

public String getDescription()

Short description of the spoke resource

string description = 5;

Returns
TypeDescription
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Short description of the spoke resource

string description = 5;

Returns
TypeDescription
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getHub()

public String getHub()

The resource URL of the hub resource that the spoke is attached to

string hub = 6 [(.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The hub.

getHubBytes()

public ByteString getHubBytes()

The resource URL of the hub resource that the spoke is attached to

string hub = 6 [(.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for hub.

getLabels()

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
TypeDescription
Map<String,String>

getLabelsCount()

public int getLabelsCount()

User-defined labels.

map<string, string> labels = 4;

Returns
TypeDescription
int

getLabelsMap()

public Map<String,String> getLabelsMap()

User-defined labels.

map<string, string> labels = 4;

Returns
TypeDescription
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public String getLabelsOrDefault(String key, String defaultValue)

User-defined labels.

map<string, string> labels = 4;

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getLabelsOrThrow(String key)

public String getLabelsOrThrow(String key)

User-defined labels.

map<string, string> labels = 4;

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getLinkedInterconnectAttachments(int index)

public String getLinkedInterconnectAttachments(int index)

The URIs of linked interconnect attachment resources

repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... }

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The linkedInterconnectAttachments at the given index.

getLinkedInterconnectAttachmentsBytes(int index)

public ByteString getLinkedInterconnectAttachmentsBytes(int index)

The URIs of linked interconnect attachment resources

repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... }

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the linkedInterconnectAttachments at the given index.

getLinkedInterconnectAttachmentsCount()

public int getLinkedInterconnectAttachmentsCount()

The URIs of linked interconnect attachment resources

repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... }

Returns
TypeDescription
int

The count of linkedInterconnectAttachments.

getLinkedInterconnectAttachmentsList()

public ProtocolStringList getLinkedInterconnectAttachmentsList()

The URIs of linked interconnect attachment resources

repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... }

Returns
TypeDescription
ProtocolStringList

A list containing the linkedInterconnectAttachments.

getLinkedRouterApplianceInstances(int index)

public RouterApplianceInstance getLinkedRouterApplianceInstances(int index)

The URIs of linked Router appliance resources

repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14;

Parameter
NameDescription
indexint
Returns
TypeDescription
RouterApplianceInstance

getLinkedRouterApplianceInstancesBuilder(int index)

public RouterApplianceInstance.Builder getLinkedRouterApplianceInstancesBuilder(int index)

The URIs of linked Router appliance resources

repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14;

Parameter
NameDescription
indexint
Returns
TypeDescription
RouterApplianceInstance.Builder

getLinkedRouterApplianceInstancesBuilderList()

public List<RouterApplianceInstance.Builder> getLinkedRouterApplianceInstancesBuilderList()

The URIs of linked Router appliance resources

repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14;

Returns
TypeDescription
List<Builder>

getLinkedRouterApplianceInstancesCount()

public int getLinkedRouterApplianceInstancesCount()

The URIs of linked Router appliance resources

repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14;

Returns
TypeDescription
int

getLinkedRouterApplianceInstancesList()

public List<RouterApplianceInstance> getLinkedRouterApplianceInstancesList()

The URIs of linked Router appliance resources

repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14;

Returns
TypeDescription
List<RouterApplianceInstance>

getLinkedRouterApplianceInstancesOrBuilder(int index)

public RouterApplianceInstanceOrBuilder getLinkedRouterApplianceInstancesOrBuilder(int index)

The URIs of linked Router appliance resources

repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14;

Parameter
NameDescription
indexint
Returns
TypeDescription
RouterApplianceInstanceOrBuilder

getLinkedRouterApplianceInstancesOrBuilderList()

public List<? extends RouterApplianceInstanceOrBuilder> getLinkedRouterApplianceInstancesOrBuilderList()

The URIs of linked Router appliance resources

repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14;

Returns
TypeDescription
List<? extends com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstanceOrBuilder>

getLinkedVpnTunnels(int index)

public String getLinkedVpnTunnels(int index)

The URIs of linked VPN tunnel resources

repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... }

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The linkedVpnTunnels at the given index.

getLinkedVpnTunnelsBytes(int index)

public ByteString getLinkedVpnTunnelsBytes(int index)

The URIs of linked VPN tunnel resources

repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... }

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the linkedVpnTunnels at the given index.

getLinkedVpnTunnelsCount()

public int getLinkedVpnTunnelsCount()

The URIs of linked VPN tunnel resources

repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... }

Returns
TypeDescription
int

The count of linkedVpnTunnels.

getLinkedVpnTunnelsList()

public ProtocolStringList getLinkedVpnTunnelsList()

The URIs of linked VPN tunnel resources

repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... }

Returns
TypeDescription
ProtocolStringList

A list containing the linkedVpnTunnels.

getMutableLabels()

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,String>

getName()

public String getName()

Immutable. The name of a Spoke resource.

string name = 1 [(.google.api.field_behavior) = IMMUTABLE];

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Immutable. The name of a Spoke resource.

string name = 1 [(.google.api.field_behavior) = IMMUTABLE];

Returns
TypeDescription
ByteString

The bytes for name.

getState()

public State getState()

Output only. The current lifecycle state of this Hub.

.google.cloud.networkconnectivity.v1alpha1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
State

The state.

getStateValue()

public int getStateValue()

Output only. The current lifecycle state of this Hub.

.google.cloud.networkconnectivity.v1alpha1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
int

The enum numeric value on the wire for state.

getUniqueId()

public String getUniqueId()

Output only. Google-generated UUID for this resource. This is unique across all Spoke resources. If a Spoke resource is deleted and another with the same name is created, it gets a different unique_id.

string unique_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The uniqueId.

getUniqueIdBytes()

public ByteString getUniqueIdBytes()

Output only. Google-generated UUID for this resource. This is unique across all Spoke resources. If a Spoke resource is deleted and another with the same name is created, it gets a different unique_id.

string unique_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for uniqueId.

getUpdateTime()

public Timestamp getUpdateTime()

The time when the Spoke was updated.

.google.protobuf.Timestamp update_time = 3;

Returns
TypeDescription
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

The time when the Spoke was updated.

.google.protobuf.Timestamp update_time = 3;

Returns
TypeDescription
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

The time when the Spoke was updated.

.google.protobuf.Timestamp update_time = 3;

Returns
TypeDescription
TimestampOrBuilder

hasCreateTime()

public boolean hasCreateTime()

The time when the Spoke was created.

.google.protobuf.Timestamp create_time = 2;

Returns
TypeDescription
boolean

Whether the createTime field is set.