Class Spoke.Builder (1.27.0)

public static final class Spoke.Builder extends GeneratedMessageV3.Builder<Spoke.Builder> implements SpokeOrBuilder

A Network Connectivity Center spoke represents one or more network connectivity resources.

When you create a spoke, you associate it with a hub. You must also identify a value for exactly one of the following fields:

  • linked_vpn_tunnels
  • linked_interconnect_attachments
  • linked_router_appliance_instances
  • linked_vpc_network

Protobuf type google.cloud.networkconnectivity.v1.Spoke

Implements

SpokeOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllReasons(Iterable<? extends Spoke.StateReason> values)

public Spoke.Builder addAllReasons(Iterable<? extends Spoke.StateReason> values)

Output only. The reasons for current state of the spoke. Only present when the spoke is in the INACTIVE state.

repeated .google.cloud.networkconnectivity.v1.Spoke.StateReason reasons = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];

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

addReasons(Spoke.StateReason value)

public Spoke.Builder addReasons(Spoke.StateReason value)

Output only. The reasons for current state of the spoke. Only present when the spoke is in the INACTIVE state.

repeated .google.cloud.networkconnectivity.v1.Spoke.StateReason reasons = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueSpoke.StateReason
Returns
TypeDescription
Spoke.Builder

addReasons(Spoke.StateReason.Builder builderForValue)

public Spoke.Builder addReasons(Spoke.StateReason.Builder builderForValue)

Output only. The reasons for current state of the spoke. Only present when the spoke is in the INACTIVE state.

repeated .google.cloud.networkconnectivity.v1.Spoke.StateReason reasons = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueSpoke.StateReason.Builder
Returns
TypeDescription
Spoke.Builder

addReasons(int index, Spoke.StateReason value)

public Spoke.Builder addReasons(int index, Spoke.StateReason value)

Output only. The reasons for current state of the spoke. Only present when the spoke is in the INACTIVE state.

repeated .google.cloud.networkconnectivity.v1.Spoke.StateReason reasons = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
NameDescription
indexint
valueSpoke.StateReason
Returns
TypeDescription
Spoke.Builder

addReasons(int index, Spoke.StateReason.Builder builderForValue)

public Spoke.Builder addReasons(int index, Spoke.StateReason.Builder builderForValue)

Output only. The reasons for current state of the spoke. Only present when the spoke is in the INACTIVE state.

repeated .google.cloud.networkconnectivity.v1.Spoke.StateReason reasons = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
NameDescription
indexint
builderForValueSpoke.StateReason.Builder
Returns
TypeDescription
Spoke.Builder

addReasonsBuilder()

public Spoke.StateReason.Builder addReasonsBuilder()

Output only. The reasons for current state of the spoke. Only present when the spoke is in the INACTIVE state.

repeated .google.cloud.networkconnectivity.v1.Spoke.StateReason reasons = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Spoke.StateReason.Builder

addReasonsBuilder(int index)

public Spoke.StateReason.Builder addReasonsBuilder(int index)

Output only. The reasons for current state of the spoke. Only present when the spoke is in the INACTIVE state.

repeated .google.cloud.networkconnectivity.v1.Spoke.StateReason reasons = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
indexint
Returns
TypeDescription
Spoke.StateReason.Builder

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()

Output only. The time the spoke was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Spoke.Builder

clearDescription()

public Spoke.Builder clearDescription()

An optional description of the spoke.

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

clearGroup()

public Spoke.Builder clearGroup()

Optional. The name of the group that this spoke is associated with.

string group = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
Spoke.Builder

This builder for chaining.

clearHub()

public Spoke.Builder clearHub()

Immutable. The name of the hub that this spoke is attached to.

string hub = 6 [(.google.api.field_behavior) = IMMUTABLE, (.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()

VLAN attachments that are associated with the spoke.

.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18;

Returns
TypeDescription
Spoke.Builder

clearLinkedRouterApplianceInstances()

public Spoke.Builder clearLinkedRouterApplianceInstances()

Router appliance instances that are associated with the spoke.

.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19;

Returns
TypeDescription
Spoke.Builder

clearLinkedVpcNetwork()

public Spoke.Builder clearLinkedVpcNetwork()

Optional. VPC network that is associated with the spoke.

.google.cloud.networkconnectivity.v1.LinkedVpcNetwork linked_vpc_network = 20 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
Spoke.Builder

clearLinkedVpnTunnels()

public Spoke.Builder clearLinkedVpnTunnels()

VPN tunnels that are associated with the spoke.

.google.cloud.networkconnectivity.v1.LinkedVpnTunnels linked_vpn_tunnels = 17;

Returns
TypeDescription
Spoke.Builder

clearName()

public Spoke.Builder clearName()

Immutable. The name of the spoke. Spoke names must be unique. They use the following form: projects/{project_number}/locations/{region}/spokes/{spoke_id}

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

clearReasons()

public Spoke.Builder clearReasons()

Output only. The reasons for current state of the spoke. Only present when the spoke is in the INACTIVE state.

repeated .google.cloud.networkconnectivity.v1.Spoke.StateReason reasons = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Spoke.Builder

clearSpokeType()

public Spoke.Builder clearSpokeType()

Output only. The type of resource associated with the spoke.

.google.cloud.networkconnectivity.v1.SpokeType spoke_type = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Spoke.Builder

This builder for chaining.

clearState()

public Spoke.Builder clearState()

Output only. The current lifecycle state of this spoke.

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

Returns
TypeDescription
Spoke.Builder

This builder for chaining.

clearUniqueId()

public Spoke.Builder clearUniqueId()

Output only. The Google-generated UUID for the spoke. This value is unique across all spoke resources. If a spoke is deleted and another with the same name is created, the new spoke is assigned 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()

Output only. The time the spoke was last updated.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Spoke.Builder

clone()

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

containsLabels(String key)

public boolean containsLabels(String key)

Optional labels in key-value pair format. For more information about labels, see Requirements for labels.

map<string, string> labels = 4;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getCreateTime()

public Timestamp getCreateTime()

Output only. The time the spoke was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. The time the spoke was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The time the spoke was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public Spoke getDefaultInstanceForType()
Returns
TypeDescription
Spoke

getDescription()

public String getDescription()

An optional description of the spoke.

string description = 5;

Returns
TypeDescription
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

An optional description of the spoke.

string description = 5;

Returns
TypeDescription
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getGroup()

public String getGroup()

Optional. The name of the group that this spoke is associated with.

string group = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The group.

getGroupBytes()

public ByteString getGroupBytes()

Optional. The name of the group that this spoke is associated with.

string group = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for group.

getHub()

public String getHub()

Immutable. The name of the hub that this spoke is attached to.

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

Returns
TypeDescription
String

The hub.

getHubBytes()

public ByteString getHubBytes()

Immutable. The name of the hub that this spoke is attached to.

string hub = 6 [(.google.api.field_behavior) = IMMUTABLE, (.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()

Optional labels in key-value pair format. For more information about labels, see Requirements for labels.

map<string, string> labels = 4;

Returns
TypeDescription
int

getLabelsMap()

public Map<String,String> getLabelsMap()

Optional labels in key-value pair format. For more information about labels, see Requirements for labels.

map<string, string> labels = 4;

Returns
TypeDescription
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public String getLabelsOrDefault(String key, String defaultValue)

Optional labels in key-value pair format. For more information about labels, see Requirements for labels.

map<string, string> labels = 4;

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getLabelsOrThrow(String key)

public String getLabelsOrThrow(String key)

Optional labels in key-value pair format. For more information about labels, see Requirements for labels.

map<string, string> labels = 4;

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getLinkedInterconnectAttachments()

public LinkedInterconnectAttachments getLinkedInterconnectAttachments()

VLAN attachments that are associated with the spoke.

.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18;

Returns
TypeDescription
LinkedInterconnectAttachments

The linkedInterconnectAttachments.

getLinkedInterconnectAttachmentsBuilder()

public LinkedInterconnectAttachments.Builder getLinkedInterconnectAttachmentsBuilder()

VLAN attachments that are associated with the spoke.

.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18;

Returns
TypeDescription
LinkedInterconnectAttachments.Builder

getLinkedInterconnectAttachmentsOrBuilder()

public LinkedInterconnectAttachmentsOrBuilder getLinkedInterconnectAttachmentsOrBuilder()

VLAN attachments that are associated with the spoke.

.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18;

Returns
TypeDescription
LinkedInterconnectAttachmentsOrBuilder

getLinkedRouterApplianceInstances()

public LinkedRouterApplianceInstances getLinkedRouterApplianceInstances()

Router appliance instances that are associated with the spoke.

.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19;

Returns
TypeDescription
LinkedRouterApplianceInstances

The linkedRouterApplianceInstances.

getLinkedRouterApplianceInstancesBuilder()

public LinkedRouterApplianceInstances.Builder getLinkedRouterApplianceInstancesBuilder()

Router appliance instances that are associated with the spoke.

.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19;

Returns
TypeDescription
LinkedRouterApplianceInstances.Builder

getLinkedRouterApplianceInstancesOrBuilder()

public LinkedRouterApplianceInstancesOrBuilder getLinkedRouterApplianceInstancesOrBuilder()

Router appliance instances that are associated with the spoke.

.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19;

Returns
TypeDescription
LinkedRouterApplianceInstancesOrBuilder

getLinkedVpcNetwork()

public LinkedVpcNetwork getLinkedVpcNetwork()

Optional. VPC network that is associated with the spoke.

.google.cloud.networkconnectivity.v1.LinkedVpcNetwork linked_vpc_network = 20 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
LinkedVpcNetwork

The linkedVpcNetwork.

getLinkedVpcNetworkBuilder()

public LinkedVpcNetwork.Builder getLinkedVpcNetworkBuilder()

Optional. VPC network that is associated with the spoke.

.google.cloud.networkconnectivity.v1.LinkedVpcNetwork linked_vpc_network = 20 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
LinkedVpcNetwork.Builder

getLinkedVpcNetworkOrBuilder()

public LinkedVpcNetworkOrBuilder getLinkedVpcNetworkOrBuilder()

Optional. VPC network that is associated with the spoke.

.google.cloud.networkconnectivity.v1.LinkedVpcNetwork linked_vpc_network = 20 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
LinkedVpcNetworkOrBuilder

getLinkedVpnTunnels()

public LinkedVpnTunnels getLinkedVpnTunnels()

VPN tunnels that are associated with the spoke.

.google.cloud.networkconnectivity.v1.LinkedVpnTunnels linked_vpn_tunnels = 17;

Returns
TypeDescription
LinkedVpnTunnels

The linkedVpnTunnels.

getLinkedVpnTunnelsBuilder()

public LinkedVpnTunnels.Builder getLinkedVpnTunnelsBuilder()

VPN tunnels that are associated with the spoke.

.google.cloud.networkconnectivity.v1.LinkedVpnTunnels linked_vpn_tunnels = 17;

Returns
TypeDescription
LinkedVpnTunnels.Builder

getLinkedVpnTunnelsOrBuilder()

public LinkedVpnTunnelsOrBuilder getLinkedVpnTunnelsOrBuilder()

VPN tunnels that are associated with the spoke.

.google.cloud.networkconnectivity.v1.LinkedVpnTunnels linked_vpn_tunnels = 17;

Returns
TypeDescription
LinkedVpnTunnelsOrBuilder

getMutableLabels()

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,String>

getName()

public String getName()

Immutable. The name of the spoke. Spoke names must be unique. They use the following form: projects/{project_number}/locations/{region}/spokes/{spoke_id}

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

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Immutable. The name of the spoke. Spoke names must be unique. They use the following form: projects/{project_number}/locations/{region}/spokes/{spoke_id}

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

Returns
TypeDescription
ByteString

The bytes for name.

getReasons(int index)

public Spoke.StateReason getReasons(int index)

Output only. The reasons for current state of the spoke. Only present when the spoke is in the INACTIVE state.

repeated .google.cloud.networkconnectivity.v1.Spoke.StateReason reasons = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
indexint
Returns
TypeDescription
Spoke.StateReason

getReasonsBuilder(int index)

public Spoke.StateReason.Builder getReasonsBuilder(int index)

Output only. The reasons for current state of the spoke. Only present when the spoke is in the INACTIVE state.

repeated .google.cloud.networkconnectivity.v1.Spoke.StateReason reasons = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
indexint
Returns
TypeDescription
Spoke.StateReason.Builder

getReasonsBuilderList()

public List<Spoke.StateReason.Builder> getReasonsBuilderList()

Output only. The reasons for current state of the spoke. Only present when the spoke is in the INACTIVE state.

repeated .google.cloud.networkconnectivity.v1.Spoke.StateReason reasons = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
List<Builder>

getReasonsCount()

public int getReasonsCount()

Output only. The reasons for current state of the spoke. Only present when the spoke is in the INACTIVE state.

repeated .google.cloud.networkconnectivity.v1.Spoke.StateReason reasons = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
int

getReasonsList()

public List<Spoke.StateReason> getReasonsList()

Output only. The reasons for current state of the spoke. Only present when the spoke is in the INACTIVE state.

repeated .google.cloud.networkconnectivity.v1.Spoke.StateReason reasons = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
List<StateReason>

getReasonsOrBuilder(int index)

public Spoke.StateReasonOrBuilder getReasonsOrBuilder(int index)

Output only. The reasons for current state of the spoke. Only present when the spoke is in the INACTIVE state.

repeated .google.cloud.networkconnectivity.v1.Spoke.StateReason reasons = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
indexint
Returns
TypeDescription
Spoke.StateReasonOrBuilder

getReasonsOrBuilderList()

public List<? extends Spoke.StateReasonOrBuilder> getReasonsOrBuilderList()

Output only. The reasons for current state of the spoke. Only present when the spoke is in the INACTIVE state.

repeated .google.cloud.networkconnectivity.v1.Spoke.StateReason reasons = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
List<? extends com.google.cloud.networkconnectivity.v1.Spoke.StateReasonOrBuilder>

getSpokeType()

public SpokeType getSpokeType()

Output only. The type of resource associated with the spoke.

.google.cloud.networkconnectivity.v1.SpokeType spoke_type = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
SpokeType

The spokeType.

getSpokeTypeValue()

public int getSpokeTypeValue()

Output only. The type of resource associated with the spoke.

.google.cloud.networkconnectivity.v1.SpokeType spoke_type = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
int

The enum numeric value on the wire for spokeType.

getState()

public State getState()

Output only. The current lifecycle state of this spoke.

.google.cloud.networkconnectivity.v1.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 spoke.

.google.cloud.networkconnectivity.v1.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. The Google-generated UUID for the spoke. This value is unique across all spoke resources. If a spoke is deleted and another with the same name is created, the new spoke is assigned 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. The Google-generated UUID for the spoke. This value is unique across all spoke resources. If a spoke is deleted and another with the same name is created, the new spoke is assigned 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()

Output only. The time the spoke was last updated.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. The time the spoke was last updated.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. The time the spoke was last updated.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TimestampOrBuilder

hasCreateTime()

public boolean hasCreateTime()

Output only. The time the spoke was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the createTime field is set.

hasLinkedInterconnectAttachments()

public boolean hasLinkedInterconnectAttachments()

VLAN attachments that are associated with the spoke.

.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18;

Returns
TypeDescription
boolean

Whether the linkedInterconnectAttachments field is set.

hasLinkedRouterApplianceInstances()

public boolean hasLinkedRouterApplianceInstances()

Router appliance instances that are associated with the spoke.

.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19;

Returns
TypeDescription
boolean

Whether the linkedRouterApplianceInstances field is set.

hasLinkedVpcNetwork()

public boolean hasLinkedVpcNetwork()

Optional. VPC network that is associated with the spoke.

.google.cloud.networkconnectivity.v1.LinkedVpcNetwork linked_vpc_network = 20 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

Whether the linkedVpcNetwork field is set.

hasLinkedVpnTunnels()

public boolean hasLinkedVpnTunnels()

VPN tunnels that are associated with the spoke.

.google.cloud.networkconnectivity.v1.LinkedVpnTunnels linked_vpn_tunnels = 17;

Returns
TypeDescription
boolean

Whether the linkedVpnTunnels field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. The time the spoke was last updated.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

internalGetMutableMapField(int number)

protected MapField internalGetMutableMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeCreateTime(Timestamp value)

public Spoke.Builder mergeCreateTime(Timestamp value)

Output only. The time the spoke was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Spoke.Builder

mergeFrom(Spoke other)

public Spoke.Builder mergeFrom(Spoke other)
Parameter
NameDescription
otherSpoke
Returns
TypeDescription
Spoke.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeLinkedInterconnectAttachments(LinkedInterconnectAttachments value)

public Spoke.Builder mergeLinkedInterconnectAttachments(LinkedInterconnectAttachments value)

VLAN attachments that are associated with the spoke.

.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18;

Parameter
NameDescription
valueLinkedInterconnectAttachments
Returns
TypeDescription
Spoke.Builder

mergeLinkedRouterApplianceInstances(LinkedRouterApplianceInstances value)

public Spoke.Builder mergeLinkedRouterApplianceInstances(LinkedRouterApplianceInstances value)

Router appliance instances that are associated with the spoke.

.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19;

Parameter
NameDescription
valueLinkedRouterApplianceInstances
Returns
TypeDescription
Spoke.Builder

mergeLinkedVpcNetwork(LinkedVpcNetwork value)

public Spoke.Builder mergeLinkedVpcNetwork(LinkedVpcNetwork value)

Optional. VPC network that is associated with the spoke.

.google.cloud.networkconnectivity.v1.LinkedVpcNetwork linked_vpc_network = 20 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueLinkedVpcNetwork
Returns
TypeDescription
Spoke.Builder

mergeLinkedVpnTunnels(LinkedVpnTunnels value)

public Spoke.Builder mergeLinkedVpnTunnels(LinkedVpnTunnels value)

VPN tunnels that are associated with the spoke.

.google.cloud.networkconnectivity.v1.LinkedVpnTunnels linked_vpn_tunnels = 17;

Parameter
NameDescription
valueLinkedVpnTunnels
Returns
TypeDescription
Spoke.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUpdateTime(Timestamp value)

public Spoke.Builder mergeUpdateTime(Timestamp value)

Output only. The time the spoke was last updated.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Spoke.Builder

putAllLabels(Map<String,String> values)

public Spoke.Builder putAllLabels(Map<String,String> values)

Optional labels in key-value pair format. For more information about labels, see Requirements for labels.

map<string, string> labels = 4;

Parameter
NameDescription
valuesMap<String,String>
Returns
TypeDescription
Spoke.Builder

putLabels(String key, String value)

public Spoke.Builder putLabels(String key, String value)

Optional labels in key-value pair format. For more information about labels, see Requirements for labels.

map<string, string> labels = 4;

Parameters
NameDescription
keyString
valueString
Returns
TypeDescription
Spoke.Builder

removeLabels(String key)

public Spoke.Builder removeLabels(String key)

Optional labels in key-value pair format. For more information about labels, see Requirements for labels.

map<string, string> labels = 4;

Parameter
NameDescription
keyString
Returns
TypeDescription
Spoke.Builder

removeReasons(int index)

public Spoke.Builder removeReasons(int index)

Output only. The reasons for current state of the spoke. Only present when the spoke is in the INACTIVE state.

repeated .google.cloud.networkconnectivity.v1.Spoke.StateReason reasons = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
indexint
Returns
TypeDescription
Spoke.Builder

setCreateTime(Timestamp value)

public Spoke.Builder setCreateTime(Timestamp value)

Output only. The time the spoke was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Spoke.Builder

setCreateTime(Timestamp.Builder builderForValue)

public Spoke.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. The time the spoke was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
Spoke.Builder

setDescription(String value)

public Spoke.Builder setDescription(String value)

An optional description of the spoke.

string description = 5;

Parameter
NameDescription
valueString

The description to set.

Returns
TypeDescription
Spoke.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public Spoke.Builder setDescriptionBytes(ByteString value)

An optional description of the spoke.

string description = 5;

Parameter
NameDescription
valueByteString

The bytes for description to set.

Returns
TypeDescription
Spoke.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setGroup(String value)

public Spoke.Builder setGroup(String value)

Optional. The name of the group that this spoke is associated with.

string group = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueString

The group to set.

Returns
TypeDescription
Spoke.Builder

This builder for chaining.

setGroupBytes(ByteString value)

public Spoke.Builder setGroupBytes(ByteString value)

Optional. The name of the group that this spoke is associated with.

string group = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueByteString

The bytes for group to set.

Returns
TypeDescription
Spoke.Builder

This builder for chaining.

setHub(String value)

public Spoke.Builder setHub(String value)

Immutable. The name of the hub that this spoke is attached to.

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

Parameter
NameDescription
valueString

The hub to set.

Returns
TypeDescription
Spoke.Builder

This builder for chaining.

setHubBytes(ByteString value)

public Spoke.Builder setHubBytes(ByteString value)

Immutable. The name of the hub that this spoke is attached to.

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

Parameter
NameDescription
valueByteString

The bytes for hub to set.

Returns
TypeDescription
Spoke.Builder

This builder for chaining.

setLinkedInterconnectAttachments(LinkedInterconnectAttachments value)

public Spoke.Builder setLinkedInterconnectAttachments(LinkedInterconnectAttachments value)

VLAN attachments that are associated with the spoke.

.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18;

Parameter
NameDescription
valueLinkedInterconnectAttachments
Returns
TypeDescription
Spoke.Builder

setLinkedInterconnectAttachments(LinkedInterconnectAttachments.Builder builderForValue)

public Spoke.Builder setLinkedInterconnectAttachments(LinkedInterconnectAttachments.Builder builderForValue)

VLAN attachments that are associated with the spoke.

.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18;

Parameter
NameDescription
builderForValueLinkedInterconnectAttachments.Builder
Returns
TypeDescription
Spoke.Builder

setLinkedRouterApplianceInstances(LinkedRouterApplianceInstances value)

public Spoke.Builder setLinkedRouterApplianceInstances(LinkedRouterApplianceInstances value)

Router appliance instances that are associated with the spoke.

.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19;

Parameter
NameDescription
valueLinkedRouterApplianceInstances
Returns
TypeDescription
Spoke.Builder

setLinkedRouterApplianceInstances(LinkedRouterApplianceInstances.Builder builderForValue)

public Spoke.Builder setLinkedRouterApplianceInstances(LinkedRouterApplianceInstances.Builder builderForValue)

Router appliance instances that are associated with the spoke.

.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19;

Parameter
NameDescription
builderForValueLinkedRouterApplianceInstances.Builder
Returns
TypeDescription
Spoke.Builder

setLinkedVpcNetwork(LinkedVpcNetwork value)

public Spoke.Builder setLinkedVpcNetwork(LinkedVpcNetwork value)

Optional. VPC network that is associated with the spoke.

.google.cloud.networkconnectivity.v1.LinkedVpcNetwork linked_vpc_network = 20 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueLinkedVpcNetwork
Returns
TypeDescription
Spoke.Builder

setLinkedVpcNetwork(LinkedVpcNetwork.Builder builderForValue)

public Spoke.Builder setLinkedVpcNetwork(LinkedVpcNetwork.Builder builderForValue)

Optional. VPC network that is associated with the spoke.

.google.cloud.networkconnectivity.v1.LinkedVpcNetwork linked_vpc_network = 20 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
builderForValueLinkedVpcNetwork.Builder
Returns
TypeDescription
Spoke.Builder

setLinkedVpnTunnels(LinkedVpnTunnels value)

public Spoke.Builder setLinkedVpnTunnels(LinkedVpnTunnels value)

VPN tunnels that are associated with the spoke.

.google.cloud.networkconnectivity.v1.LinkedVpnTunnels linked_vpn_tunnels = 17;

Parameter
NameDescription
valueLinkedVpnTunnels
Returns
TypeDescription
Spoke.Builder

setLinkedVpnTunnels(LinkedVpnTunnels.Builder builderForValue)

public Spoke.Builder setLinkedVpnTunnels(LinkedVpnTunnels.Builder builderForValue)

VPN tunnels that are associated with the spoke.

.google.cloud.networkconnectivity.v1.LinkedVpnTunnels linked_vpn_tunnels = 17;

Parameter
NameDescription
builderForValueLinkedVpnTunnels.Builder
Returns
TypeDescription
Spoke.Builder

setName(String value)

public Spoke.Builder setName(String value)

Immutable. The name of the spoke. Spoke names must be unique. They use the following form: projects/{project_number}/locations/{region}/spokes/{spoke_id}

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

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
Spoke.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Spoke.Builder setNameBytes(ByteString value)

Immutable. The name of the spoke. Spoke names must be unique. They use the following form: projects/{project_number}/locations/{region}/spokes/{spoke_id}

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

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
Spoke.Builder

This builder for chaining.

setReasons(int index, Spoke.StateReason value)

public Spoke.Builder setReasons(int index, Spoke.StateReason value)

Output only. The reasons for current state of the spoke. Only present when the spoke is in the INACTIVE state.

repeated .google.cloud.networkconnectivity.v1.Spoke.StateReason reasons = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
NameDescription
indexint
valueSpoke.StateReason
Returns
TypeDescription
Spoke.Builder

setReasons(int index, Spoke.StateReason.Builder builderForValue)

public Spoke.Builder setReasons(int index, Spoke.StateReason.Builder builderForValue)

Output only. The reasons for current state of the spoke. Only present when the spoke is in the INACTIVE state.

repeated .google.cloud.networkconnectivity.v1.Spoke.StateReason reasons = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
NameDescription
indexint
builderForValueSpoke.StateReason.Builder
Returns
TypeDescription
Spoke.Builder

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

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

setSpokeType(SpokeType value)

public Spoke.Builder setSpokeType(SpokeType value)

Output only. The type of resource associated with the spoke.

.google.cloud.networkconnectivity.v1.SpokeType spoke_type = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueSpokeType

The spokeType to set.

Returns
TypeDescription
Spoke.Builder

This builder for chaining.

setSpokeTypeValue(int value)

public Spoke.Builder setSpokeTypeValue(int value)

Output only. The type of resource associated with the spoke.

.google.cloud.networkconnectivity.v1.SpokeType spoke_type = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueint

The enum numeric value on the wire for spokeType to set.

Returns
TypeDescription
Spoke.Builder

This builder for chaining.

setState(State value)

public Spoke.Builder setState(State value)

Output only. The current lifecycle state of this spoke.

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

Parameter
NameDescription
valueState

The state to set.

Returns
TypeDescription
Spoke.Builder

This builder for chaining.

setStateValue(int value)

public Spoke.Builder setStateValue(int value)

Output only. The current lifecycle state of this spoke.

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

Parameter
NameDescription
valueint

The enum numeric value on the wire for state to set.

Returns
TypeDescription
Spoke.Builder

This builder for chaining.

setUniqueId(String value)

public Spoke.Builder setUniqueId(String value)

Output only. The Google-generated UUID for the spoke. This value is unique across all spoke resources. If a spoke is deleted and another with the same name is created, the new spoke is assigned a different unique_id.

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

Parameter
NameDescription
valueString

The uniqueId to set.

Returns
TypeDescription
Spoke.Builder

This builder for chaining.

setUniqueIdBytes(ByteString value)

public Spoke.Builder setUniqueIdBytes(ByteString value)

Output only. The Google-generated UUID for the spoke. This value is unique across all spoke resources. If a spoke is deleted and another with the same name is created, the new spoke is assigned a different unique_id.

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

Parameter
NameDescription
valueByteString

The bytes for uniqueId to set.

Returns
TypeDescription
Spoke.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateTime(Timestamp value)

public Spoke.Builder setUpdateTime(Timestamp value)

Output only. The time the spoke was last updated.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Spoke.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public Spoke.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. The time the spoke was last updated.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
Spoke.Builder