Class Interconnect.Builder (0.1.0)

public static final class Interconnect.Builder extends GeneratedMessageV3.Builder<Interconnect.Builder> implements InterconnectOrBuilder

Message describing Interconnect object

Protobuf type google.cloud.edgenetwork.v1.Interconnect

Static Methods

getDescriptor()

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

Methods

addAllPhysicalPorts(Iterable<String> values)

public Interconnect.Builder addAllPhysicalPorts(Iterable<String> values)

Output only. Physical ports (e.g., TenGigE0/0/0/1) that form the interconnect.

repeated string physical_ports = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valuesIterable<String>

The physicalPorts to add.

Returns
TypeDescription
Interconnect.Builder

This builder for chaining.

addPhysicalPorts(String value)

public Interconnect.Builder addPhysicalPorts(String value)

Output only. Physical ports (e.g., TenGigE0/0/0/1) that form the interconnect.

repeated string physical_ports = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueString

The physicalPorts to add.

Returns
TypeDescription
Interconnect.Builder

This builder for chaining.

addPhysicalPortsBytes(ByteString value)

public Interconnect.Builder addPhysicalPortsBytes(ByteString value)

Output only. Physical ports (e.g., TenGigE0/0/0/1) that form the interconnect.

repeated string physical_ports = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueByteString

The bytes of the physicalPorts to add.

Returns
TypeDescription
Interconnect.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Interconnect build()
Returns
TypeDescription
Interconnect

buildPartial()

public Interconnect buildPartial()
Returns
TypeDescription
Interconnect

clear()

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

clearCreateTime()

public Interconnect.Builder clearCreateTime()

Output only. The time when the subnet was created.

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

Returns
TypeDescription
Interconnect.Builder

clearDescription()

public Interconnect.Builder clearDescription()

Optional. A free-text description of the resource. Max length 1024 characters.

string description = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
Interconnect.Builder

This builder for chaining.

clearDeviceCloudResourceName()

public Interconnect.Builder clearDeviceCloudResourceName()

Output only. Cloud resource name of the switch device.

string device_cloud_resource_name = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Interconnect.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearInterconnectType()

public Interconnect.Builder clearInterconnectType()

Optional. Type of interconnect, which takes only the value 'DEDICATED' for now.

.google.cloud.edgenetwork.v1.Interconnect.InterconnectType interconnect_type = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
Interconnect.Builder

This builder for chaining.

clearLabels()

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

clearName()

public Interconnect.Builder clearName()

Required. The canonical resource name of the interconnect.

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

Returns
TypeDescription
Interconnect.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPhysicalPorts()

public Interconnect.Builder clearPhysicalPorts()

Output only. Physical ports (e.g., TenGigE0/0/0/1) that form the interconnect.

repeated string physical_ports = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Interconnect.Builder

This builder for chaining.

clearUpdateTime()

public Interconnect.Builder clearUpdateTime()

Output only. The time when the subnet was last updated.

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

Returns
TypeDescription
Interconnect.Builder

clearUuid()

public Interconnect.Builder clearUuid()

Output only. Unique identifier for the link.

string uuid = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Interconnect.Builder

This builder for chaining.

clone()

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

containsLabels(String key)

public boolean containsLabels(String key)

Labels associated with this resource.

map<string, string> labels = 4;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getCreateTime()

public Timestamp getCreateTime()

Output only. The time when the subnet 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 when the subnet 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 when the subnet was created.

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

Returns
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public Interconnect getDefaultInstanceForType()
Returns
TypeDescription
Interconnect

getDescription()

public String getDescription()

Optional. A free-text description of the resource. Max length 1024 characters.

string description = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Optional. A free-text description of the resource. Max length 1024 characters.

string description = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDeviceCloudResourceName()

public String getDeviceCloudResourceName()

Output only. Cloud resource name of the switch device.

string device_cloud_resource_name = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The deviceCloudResourceName.

getDeviceCloudResourceNameBytes()

public ByteString getDeviceCloudResourceNameBytes()

Output only. Cloud resource name of the switch device.

string device_cloud_resource_name = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for deviceCloudResourceName.

getInterconnectType()

public Interconnect.InterconnectType getInterconnectType()

Optional. Type of interconnect, which takes only the value 'DEDICATED' for now.

.google.cloud.edgenetwork.v1.Interconnect.InterconnectType interconnect_type = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
Interconnect.InterconnectType

The interconnectType.

getInterconnectTypeValue()

public int getInterconnectTypeValue()

Optional. Type of interconnect, which takes only the value 'DEDICATED' for now.

.google.cloud.edgenetwork.v1.Interconnect.InterconnectType interconnect_type = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
int

The enum numeric value on the wire for interconnectType.

getLabels() (deprecated)

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
TypeDescription
Map<String,String>

getLabelsCount()

public int getLabelsCount()

Labels associated with this resource.

map<string, string> labels = 4;

Returns
TypeDescription
int

getLabelsMap()

public Map<String,String> getLabelsMap()

Labels associated with this resource.

map<string, string> labels = 4;

Returns
TypeDescription
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public String getLabelsOrDefault(String key, String defaultValue)

Labels associated with this resource.

map<string, string> labels = 4;

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getLabelsOrThrow(String key)

public String getLabelsOrThrow(String key)

Labels associated with this resource.

map<string, string> labels = 4;

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getMutableLabels() (deprecated)

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,String>

getName()

public String getName()

Required. The canonical resource name of the interconnect.

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

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. The canonical resource name of the interconnect.

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

Returns
TypeDescription
ByteString

The bytes for name.

getPhysicalPorts(int index)

public String getPhysicalPorts(int index)

Output only. Physical ports (e.g., TenGigE0/0/0/1) that form the interconnect.

repeated string physical_ports = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The physicalPorts at the given index.

getPhysicalPortsBytes(int index)

public ByteString getPhysicalPortsBytes(int index)

Output only. Physical ports (e.g., TenGigE0/0/0/1) that form the interconnect.

repeated string physical_ports = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the physicalPorts at the given index.

getPhysicalPortsCount()

public int getPhysicalPortsCount()

Output only. Physical ports (e.g., TenGigE0/0/0/1) that form the interconnect.

repeated string physical_ports = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
int

The count of physicalPorts.

getPhysicalPortsList()

public ProtocolStringList getPhysicalPortsList()

Output only. Physical ports (e.g., TenGigE0/0/0/1) that form the interconnect.

repeated string physical_ports = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ProtocolStringList

A list containing the physicalPorts.

getUpdateTime()

public Timestamp getUpdateTime()

Output only. The time when the subnet 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 when the subnet 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 when the subnet was last updated.

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

Returns
TypeDescription
TimestampOrBuilder

getUuid()

public String getUuid()

Output only. Unique identifier for the link.

string uuid = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The uuid.

getUuidBytes()

public ByteString getUuidBytes()

Output only. Unique identifier for the link.

string uuid = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for uuid.

hasCreateTime()

public boolean hasCreateTime()

Output only. The time when the subnet was created.

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

Returns
TypeDescription
boolean

Whether the createTime field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. The time when the subnet 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 Interconnect.Builder mergeCreateTime(Timestamp value)

Output only. The time when the subnet was created.

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

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Interconnect.Builder

mergeFrom(Interconnect other)

public Interconnect.Builder mergeFrom(Interconnect other)
Parameter
NameDescription
otherInterconnect
Returns
TypeDescription
Interconnect.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUpdateTime(Timestamp value)

public Interconnect.Builder mergeUpdateTime(Timestamp value)

Output only. The time when the subnet was last updated.

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

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Interconnect.Builder

putAllLabels(Map<String,String> values)

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

Labels associated with this resource.

map<string, string> labels = 4;

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

putLabels(String key, String value)

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

Labels associated with this resource.

map<string, string> labels = 4;

Parameters
NameDescription
keyString
valueString
Returns
TypeDescription
Interconnect.Builder

removeLabels(String key)

public Interconnect.Builder removeLabels(String key)

Labels associated with this resource.

map<string, string> labels = 4;

Parameter
NameDescription
keyString
Returns
TypeDescription
Interconnect.Builder

setCreateTime(Timestamp value)

public Interconnect.Builder setCreateTime(Timestamp value)

Output only. The time when the subnet was created.

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

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Interconnect.Builder

setCreateTime(Timestamp.Builder builderForValue)

public Interconnect.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. The time when the subnet was created.

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

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
Interconnect.Builder

setDescription(String value)

public Interconnect.Builder setDescription(String value)

Optional. A free-text description of the resource. Max length 1024 characters.

string description = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueString

The description to set.

Returns
TypeDescription
Interconnect.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public Interconnect.Builder setDescriptionBytes(ByteString value)

Optional. A free-text description of the resource. Max length 1024 characters.

string description = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueByteString

The bytes for description to set.

Returns
TypeDescription
Interconnect.Builder

This builder for chaining.

setDeviceCloudResourceName(String value)

public Interconnect.Builder setDeviceCloudResourceName(String value)

Output only. Cloud resource name of the switch device.

string device_cloud_resource_name = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueString

The deviceCloudResourceName to set.

Returns
TypeDescription
Interconnect.Builder

This builder for chaining.

setDeviceCloudResourceNameBytes(ByteString value)

public Interconnect.Builder setDeviceCloudResourceNameBytes(ByteString value)

Output only. Cloud resource name of the switch device.

string device_cloud_resource_name = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueByteString

The bytes for deviceCloudResourceName to set.

Returns
TypeDescription
Interconnect.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setInterconnectType(Interconnect.InterconnectType value)

public Interconnect.Builder setInterconnectType(Interconnect.InterconnectType value)

Optional. Type of interconnect, which takes only the value 'DEDICATED' for now.

.google.cloud.edgenetwork.v1.Interconnect.InterconnectType interconnect_type = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueInterconnect.InterconnectType

The interconnectType to set.

Returns
TypeDescription
Interconnect.Builder

This builder for chaining.

setInterconnectTypeValue(int value)

public Interconnect.Builder setInterconnectTypeValue(int value)

Optional. Type of interconnect, which takes only the value 'DEDICATED' for now.

.google.cloud.edgenetwork.v1.Interconnect.InterconnectType interconnect_type = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueint

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

Returns
TypeDescription
Interconnect.Builder

This builder for chaining.

setName(String value)

public Interconnect.Builder setName(String value)

Required. The canonical resource name of the interconnect.

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

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
Interconnect.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Interconnect.Builder setNameBytes(ByteString value)

Required. The canonical resource name of the interconnect.

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

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
Interconnect.Builder

This builder for chaining.

setPhysicalPorts(int index, String value)

public Interconnect.Builder setPhysicalPorts(int index, String value)

Output only. Physical ports (e.g., TenGigE0/0/0/1) that form the interconnect.

repeated string physical_ports = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The physicalPorts to set.

Returns
TypeDescription
Interconnect.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateTime(Timestamp value)

public Interconnect.Builder setUpdateTime(Timestamp value)

Output only. The time when the subnet was last updated.

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

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Interconnect.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public Interconnect.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. The time when the subnet was last updated.

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

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
Interconnect.Builder

setUuid(String value)

public Interconnect.Builder setUuid(String value)

Output only. Unique identifier for the link.

string uuid = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueString

The uuid to set.

Returns
TypeDescription
Interconnect.Builder

This builder for chaining.

setUuidBytes(ByteString value)

public Interconnect.Builder setUuidBytes(ByteString value)

Output only. Unique identifier for the link.

string uuid = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueByteString

The bytes for uuid to set.

Returns
TypeDescription
Interconnect.Builder

This builder for chaining.