Class Interconnect.Builder (0.17.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
Type Description
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
Name Description
values Iterable<String>

The physicalPorts to add.

Returns
Type Description
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
Name Description
value String

The physicalPorts to add.

Returns
Type Description
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
Name Description
value ByteString

The bytes of the physicalPorts to add.

Returns
Type Description
Interconnect.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Interconnect build()
Returns
Type Description
Interconnect

buildPartial()

public Interconnect buildPartial()
Returns
Type Description
Interconnect

clear()

public Interconnect.Builder clear()
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
Interconnect.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Interconnect.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
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
Type Description
Interconnect.Builder

This builder for chaining.

clearLabels()

public Interconnect.Builder clearLabels()
Returns
Type Description
Interconnect.Builder

clearName()

public Interconnect.Builder clearName()

Required. The canonical resource name of the interconnect.

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

Returns
Type Description
Interconnect.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Interconnect.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
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
Type Description
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
Type Description
Interconnect.Builder

clearUuid()

public Interconnect.Builder clearUuid()

Output only. Unique identifier for the link.

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

Returns
Type Description
Interconnect.Builder

This builder for chaining.

clone()

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

containsLabels(String key)

public boolean containsLabels(String key)

Labels associated with this resource.

map<string, string> labels = 4;

Parameter
Name Description
key String
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public Interconnect getDefaultInstanceForType()
Returns
Type Description
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
Type Description
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
Type Description
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
int

The enum numeric value on the wire for interconnectType.

getLabels() (deprecated)

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
Type Description
Map<String,String>

getLabelsCount()

public int getLabelsCount()

Labels associated with this resource.

map<string, string> labels = 4;

Returns
Type Description
int

getLabelsMap()

public Map<String,String> getLabelsMap()

Labels associated with this resource.

map<string, string> labels = 4;

Returns
Type Description
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
Name Description
key String
defaultValue String
Returns
Type Description
String

getLabelsOrThrow(String key)

public String getLabelsOrThrow(String key)

Labels associated with this resource.

map<string, string> labels = 4;

Parameter
Name Description
key String
Returns
Type Description
String

getMutableLabels() (deprecated)

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,String>

getName()

public String getName()

Required. The canonical resource name of the interconnect.

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

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. The canonical resource name of the interconnect.

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

Returns
Type Description
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
Name Description
index int

The index of the element to return.

Returns
Type Description
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
Name Description
index int

The index of the value to return.

Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
TimestampOrBuilder

getUuid()

public String getUuid()

Output only. Unique identifier for the link.

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

Returns
Type Description
String

The uuid.

getUuidBytes()

public ByteString getUuidBytes()

Output only. Unique identifier for the link.

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

Returns
Type Description
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
Type Description
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
Type Description
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

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

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
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
Name Description
value Timestamp
Returns
Type Description
Interconnect.Builder

mergeFrom(Interconnect other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Interconnect.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
value Timestamp
Returns
Type Description
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
Name Description
values Map<String,String>
Returns
Type Description
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
Name Description
key String
value String
Returns
Type Description
Interconnect.Builder

removeLabels(String key)

public Interconnect.Builder removeLabels(String key)

Labels associated with this resource.

map<string, string> labels = 4;

Parameter
Name Description
key String
Returns
Type Description
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
Name Description
value Timestamp
Returns
Type Description
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
Name Description
builderForValue Builder
Returns
Type Description
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
Name Description
value String

The description to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for description to set.

Returns
Type Description
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
Name Description
value String

The deviceCloudResourceName to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for deviceCloudResourceName to set.

Returns
Type Description
Interconnect.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public Interconnect.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
value Interconnect.InterconnectType

The interconnectType to set.

Returns
Type Description
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
Name Description
value int

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

Returns
Type Description
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
Name Description
value String

The name to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
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
Name Description
index int

The index to set the value at.

value String

The physicalPorts to set.

Returns
Type Description
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
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Interconnect.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Interconnect.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
value Timestamp
Returns
Type Description
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
Name Description
builderForValue Builder
Returns
Type Description
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
Name Description
value String

The uuid to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for uuid to set.

Returns
Type Description
Interconnect.Builder

This builder for chaining.