Class Wire.Builder (1.92.0)

public static final class Wire.Builder extends GeneratedMessageV3.Builder<Wire.Builder> implements WireOrBuilder

A pseudowire that connects two Interconnect connections.

Protobuf type google.cloud.compute.v1.Wire

Implements

WireOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllEndpoints(Iterable<? extends WireEndpoint> values)

public Wire.Builder addAllEndpoints(Iterable<? extends WireEndpoint> values)

Output only. Wire endpoints are specific Interconnect connections.

repeated .google.cloud.compute.v1.WireEndpoint endpoints = 287085950;

Parameter
Name Description
values Iterable<? extends com.google.cloud.compute.v1.WireEndpoint>
Returns
Type Description
Wire.Builder

addEndpoints(WireEndpoint value)

public Wire.Builder addEndpoints(WireEndpoint value)

Output only. Wire endpoints are specific Interconnect connections.

repeated .google.cloud.compute.v1.WireEndpoint endpoints = 287085950;

Parameter
Name Description
value WireEndpoint
Returns
Type Description
Wire.Builder

addEndpoints(WireEndpoint.Builder builderForValue)

public Wire.Builder addEndpoints(WireEndpoint.Builder builderForValue)

Output only. Wire endpoints are specific Interconnect connections.

repeated .google.cloud.compute.v1.WireEndpoint endpoints = 287085950;

Parameter
Name Description
builderForValue WireEndpoint.Builder
Returns
Type Description
Wire.Builder

addEndpoints(int index, WireEndpoint value)

public Wire.Builder addEndpoints(int index, WireEndpoint value)

Output only. Wire endpoints are specific Interconnect connections.

repeated .google.cloud.compute.v1.WireEndpoint endpoints = 287085950;

Parameters
Name Description
index int
value WireEndpoint
Returns
Type Description
Wire.Builder

addEndpoints(int index, WireEndpoint.Builder builderForValue)

public Wire.Builder addEndpoints(int index, WireEndpoint.Builder builderForValue)

Output only. Wire endpoints are specific Interconnect connections.

repeated .google.cloud.compute.v1.WireEndpoint endpoints = 287085950;

Parameters
Name Description
index int
builderForValue WireEndpoint.Builder
Returns
Type Description
Wire.Builder

addEndpointsBuilder()

public WireEndpoint.Builder addEndpointsBuilder()

Output only. Wire endpoints are specific Interconnect connections.

repeated .google.cloud.compute.v1.WireEndpoint endpoints = 287085950;

Returns
Type Description
WireEndpoint.Builder

addEndpointsBuilder(int index)

public WireEndpoint.Builder addEndpointsBuilder(int index)

Output only. Wire endpoints are specific Interconnect connections.

repeated .google.cloud.compute.v1.WireEndpoint endpoints = 287085950;

Parameter
Name Description
index int
Returns
Type Description
WireEndpoint.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Wire build()
Returns
Type Description
Wire

buildPartial()

public Wire buildPartial()
Returns
Type Description
Wire

clear()

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

clearAdminEnabled()

public Wire.Builder clearAdminEnabled()

Output only. [Output Only] Indicates whether the wire is enabled. When false, the wire is disabled. When true and when the wire group of the wire is also enabled, the wire is enabled. Defaults to true.

optional bool admin_enabled = 445675089;

Returns
Type Description
Wire.Builder

This builder for chaining.

clearEndpoints()

public Wire.Builder clearEndpoints()

Output only. Wire endpoints are specific Interconnect connections.

repeated .google.cloud.compute.v1.WireEndpoint endpoints = 287085950;

Returns
Type Description
Wire.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearLabel()

public Wire.Builder clearLabel()

Output only. [Output Only] A label that identifies the wire. The format of this label combines the existing labels of the wire group endpoints and Interconnect connections used by this wire in alphabetical order as follows: ENDPOINT_A+CONNECTION_A1,ENDPOINT_B+CONNECTION_B1, where:

- ENDPOINT_A and ENDPOINT_B: are the labels
that you entered as map keys when you specified the wire group endpoint
objects.
- CONNECTION_A1 and CONNECTION_B1: are the
labels that you entered as map keys when you specified the wire group
Interconnect objects.

optional string label = 102727412;

Returns
Type Description
Wire.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearWireProperties()

public Wire.Builder clearWireProperties()

Output only. [Output Only] Properties of the wire.

optional .google.cloud.compute.v1.WireProperties wire_properties = 303111469;

Returns
Type Description
Wire.Builder

clone()

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

getAdminEnabled()

public boolean getAdminEnabled()

Output only. [Output Only] Indicates whether the wire is enabled. When false, the wire is disabled. When true and when the wire group of the wire is also enabled, the wire is enabled. Defaults to true.

optional bool admin_enabled = 445675089;

Returns
Type Description
boolean

The adminEnabled.

getDefaultInstanceForType()

public Wire getDefaultInstanceForType()
Returns
Type Description
Wire

getDescriptorForType()

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

getEndpoints(int index)

public WireEndpoint getEndpoints(int index)

Output only. Wire endpoints are specific Interconnect connections.

repeated .google.cloud.compute.v1.WireEndpoint endpoints = 287085950;

Parameter
Name Description
index int
Returns
Type Description
WireEndpoint

getEndpointsBuilder(int index)

public WireEndpoint.Builder getEndpointsBuilder(int index)

Output only. Wire endpoints are specific Interconnect connections.

repeated .google.cloud.compute.v1.WireEndpoint endpoints = 287085950;

Parameter
Name Description
index int
Returns
Type Description
WireEndpoint.Builder

getEndpointsBuilderList()

public List<WireEndpoint.Builder> getEndpointsBuilderList()

Output only. Wire endpoints are specific Interconnect connections.

repeated .google.cloud.compute.v1.WireEndpoint endpoints = 287085950;

Returns
Type Description
List<Builder>

getEndpointsCount()

public int getEndpointsCount()

Output only. Wire endpoints are specific Interconnect connections.

repeated .google.cloud.compute.v1.WireEndpoint endpoints = 287085950;

Returns
Type Description
int

getEndpointsList()

public List<WireEndpoint> getEndpointsList()

Output only. Wire endpoints are specific Interconnect connections.

repeated .google.cloud.compute.v1.WireEndpoint endpoints = 287085950;

Returns
Type Description
List<WireEndpoint>

getEndpointsOrBuilder(int index)

public WireEndpointOrBuilder getEndpointsOrBuilder(int index)

Output only. Wire endpoints are specific Interconnect connections.

repeated .google.cloud.compute.v1.WireEndpoint endpoints = 287085950;

Parameter
Name Description
index int
Returns
Type Description
WireEndpointOrBuilder

getEndpointsOrBuilderList()

public List<? extends WireEndpointOrBuilder> getEndpointsOrBuilderList()

Output only. Wire endpoints are specific Interconnect connections.

repeated .google.cloud.compute.v1.WireEndpoint endpoints = 287085950;

Returns
Type Description
List<? extends com.google.cloud.compute.v1.WireEndpointOrBuilder>

getLabel()

public String getLabel()

Output only. [Output Only] A label that identifies the wire. The format of this label combines the existing labels of the wire group endpoints and Interconnect connections used by this wire in alphabetical order as follows: ENDPOINT_A+CONNECTION_A1,ENDPOINT_B+CONNECTION_B1, where:

- ENDPOINT_A and ENDPOINT_B: are the labels
that you entered as map keys when you specified the wire group endpoint
objects.
- CONNECTION_A1 and CONNECTION_B1: are the
labels that you entered as map keys when you specified the wire group
Interconnect objects.

optional string label = 102727412;

Returns
Type Description
String

The label.

getLabelBytes()

public ByteString getLabelBytes()

Output only. [Output Only] A label that identifies the wire. The format of this label combines the existing labels of the wire group endpoints and Interconnect connections used by this wire in alphabetical order as follows: ENDPOINT_A+CONNECTION_A1,ENDPOINT_B+CONNECTION_B1, where:

- ENDPOINT_A and ENDPOINT_B: are the labels
that you entered as map keys when you specified the wire group endpoint
objects.
- CONNECTION_A1 and CONNECTION_B1: are the
labels that you entered as map keys when you specified the wire group
Interconnect objects.

optional string label = 102727412;

Returns
Type Description
ByteString

The bytes for label.

getWireProperties()

public WireProperties getWireProperties()

Output only. [Output Only] Properties of the wire.

optional .google.cloud.compute.v1.WireProperties wire_properties = 303111469;

Returns
Type Description
WireProperties

The wireProperties.

getWirePropertiesBuilder()

public WireProperties.Builder getWirePropertiesBuilder()

Output only. [Output Only] Properties of the wire.

optional .google.cloud.compute.v1.WireProperties wire_properties = 303111469;

Returns
Type Description
WireProperties.Builder

getWirePropertiesOrBuilder()

public WirePropertiesOrBuilder getWirePropertiesOrBuilder()

Output only. [Output Only] Properties of the wire.

optional .google.cloud.compute.v1.WireProperties wire_properties = 303111469;

Returns
Type Description
WirePropertiesOrBuilder

hasAdminEnabled()

public boolean hasAdminEnabled()

Output only. [Output Only] Indicates whether the wire is enabled. When false, the wire is disabled. When true and when the wire group of the wire is also enabled, the wire is enabled. Defaults to true.

optional bool admin_enabled = 445675089;

Returns
Type Description
boolean

Whether the adminEnabled field is set.

hasLabel()

public boolean hasLabel()

Output only. [Output Only] A label that identifies the wire. The format of this label combines the existing labels of the wire group endpoints and Interconnect connections used by this wire in alphabetical order as follows: ENDPOINT_A+CONNECTION_A1,ENDPOINT_B+CONNECTION_B1, where:

- ENDPOINT_A and ENDPOINT_B: are the labels
that you entered as map keys when you specified the wire group endpoint
objects.
- CONNECTION_A1 and CONNECTION_B1: are the
labels that you entered as map keys when you specified the wire group
Interconnect objects.

optional string label = 102727412;

Returns
Type Description
boolean

Whether the label field is set.

hasWireProperties()

public boolean hasWireProperties()

Output only. [Output Only] Properties of the wire.

optional .google.cloud.compute.v1.WireProperties wire_properties = 303111469;

Returns
Type Description
boolean

Whether the wireProperties field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Wire other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeWireProperties(WireProperties value)

public Wire.Builder mergeWireProperties(WireProperties value)

Output only. [Output Only] Properties of the wire.

optional .google.cloud.compute.v1.WireProperties wire_properties = 303111469;

Parameter
Name Description
value WireProperties
Returns
Type Description
Wire.Builder

removeEndpoints(int index)

public Wire.Builder removeEndpoints(int index)

Output only. Wire endpoints are specific Interconnect connections.

repeated .google.cloud.compute.v1.WireEndpoint endpoints = 287085950;

Parameter
Name Description
index int
Returns
Type Description
Wire.Builder

setAdminEnabled(boolean value)

public Wire.Builder setAdminEnabled(boolean value)

Output only. [Output Only] Indicates whether the wire is enabled. When false, the wire is disabled. When true and when the wire group of the wire is also enabled, the wire is enabled. Defaults to true.

optional bool admin_enabled = 445675089;

Parameter
Name Description
value boolean

The adminEnabled to set.

Returns
Type Description
Wire.Builder

This builder for chaining.

setEndpoints(int index, WireEndpoint value)

public Wire.Builder setEndpoints(int index, WireEndpoint value)

Output only. Wire endpoints are specific Interconnect connections.

repeated .google.cloud.compute.v1.WireEndpoint endpoints = 287085950;

Parameters
Name Description
index int
value WireEndpoint
Returns
Type Description
Wire.Builder

setEndpoints(int index, WireEndpoint.Builder builderForValue)

public Wire.Builder setEndpoints(int index, WireEndpoint.Builder builderForValue)

Output only. Wire endpoints are specific Interconnect connections.

repeated .google.cloud.compute.v1.WireEndpoint endpoints = 287085950;

Parameters
Name Description
index int
builderForValue WireEndpoint.Builder
Returns
Type Description
Wire.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setLabel(String value)

public Wire.Builder setLabel(String value)

Output only. [Output Only] A label that identifies the wire. The format of this label combines the existing labels of the wire group endpoints and Interconnect connections used by this wire in alphabetical order as follows: ENDPOINT_A+CONNECTION_A1,ENDPOINT_B+CONNECTION_B1, where:

- ENDPOINT_A and ENDPOINT_B: are the labels
that you entered as map keys when you specified the wire group endpoint
objects.
- CONNECTION_A1 and CONNECTION_B1: are the
labels that you entered as map keys when you specified the wire group
Interconnect objects.

optional string label = 102727412;

Parameter
Name Description
value String

The label to set.

Returns
Type Description
Wire.Builder

This builder for chaining.

setLabelBytes(ByteString value)

public Wire.Builder setLabelBytes(ByteString value)

Output only. [Output Only] A label that identifies the wire. The format of this label combines the existing labels of the wire group endpoints and Interconnect connections used by this wire in alphabetical order as follows: ENDPOINT_A+CONNECTION_A1,ENDPOINT_B+CONNECTION_B1, where:

- ENDPOINT_A and ENDPOINT_B: are the labels
that you entered as map keys when you specified the wire group endpoint
objects.
- CONNECTION_A1 and CONNECTION_B1: are the
labels that you entered as map keys when you specified the wire group
Interconnect objects.

optional string label = 102727412;

Parameter
Name Description
value ByteString

The bytes for label to set.

Returns
Type Description
Wire.Builder

This builder for chaining.

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

public Wire.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Wire.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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

setWireProperties(WireProperties value)

public Wire.Builder setWireProperties(WireProperties value)

Output only. [Output Only] Properties of the wire.

optional .google.cloud.compute.v1.WireProperties wire_properties = 303111469;

Parameter
Name Description
value WireProperties
Returns
Type Description
Wire.Builder

setWireProperties(WireProperties.Builder builderForValue)

public Wire.Builder setWireProperties(WireProperties.Builder builderForValue)

Output only. [Output Only] Properties of the wire.

optional .google.cloud.compute.v1.WireProperties wire_properties = 303111469;

Parameter
Name Description
builderForValue WireProperties.Builder
Returns
Type Description
Wire.Builder