Class Wire (1.92.0)

public final class Wire extends GeneratedMessageV3 implements WireOrBuilder

A pseudowire that connects two Interconnect connections.

Protobuf type google.cloud.compute.v1.Wire

Implements

WireOrBuilder

Static Fields

ADMIN_ENABLED_FIELD_NUMBER

public static final int ADMIN_ENABLED_FIELD_NUMBER
Field Value
Type Description
int

ENDPOINTS_FIELD_NUMBER

public static final int ENDPOINTS_FIELD_NUMBER
Field Value
Type Description
int

LABEL_FIELD_NUMBER

public static final int LABEL_FIELD_NUMBER
Field Value
Type Description
int

WIRE_PROPERTIES_FIELD_NUMBER

public static final int WIRE_PROPERTIES_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static Wire getDefaultInstance()
Returns
Type Description
Wire

getDescriptor()

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

newBuilder()

public static Wire.Builder newBuilder()
Returns
Type Description
Wire.Builder

newBuilder(Wire prototype)

public static Wire.Builder newBuilder(Wire prototype)
Parameter
Name Description
prototype Wire
Returns
Type Description
Wire.Builder

parseDelimitedFrom(InputStream input)

public static Wire parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Wire
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Wire parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Wire
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static Wire parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
Wire
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Wire parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Wire
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Wire parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
Wire
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Wire parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Wire
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Wire parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
Wire
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Wire parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Wire
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static Wire parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Wire
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Wire parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Wire
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static Wire parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
Wire
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Wire parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Wire
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<Wire> parser()
Returns
Type Description
Parser<Wire>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
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

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

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.

getParserForType()

public Parser<Wire> getParserForType()
Returns
Type Description
Parser<Wire>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public Wire.Builder newBuilderForType()
Returns
Type Description
Wire.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Wire.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
Wire.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public Wire.Builder toBuilder()
Returns
Type Description
Wire.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException