Class InterconnectAttachment.Builder (0.12.0)

public static final class InterconnectAttachment.Builder extends GeneratedMessageV3.Builder<InterconnectAttachment.Builder> implements InterconnectAttachmentOrBuilder

Message describing InterconnectAttachment object

Protobuf type google.cloud.edgenetwork.v1.InterconnectAttachment

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public InterconnectAttachment build()
Returns
Type Description
InterconnectAttachment

buildPartial()

public InterconnectAttachment buildPartial()
Returns
Type Description
InterconnectAttachment

clear()

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

clearCreateTime()

public InterconnectAttachment.Builder clearCreateTime()

Output only. The time when the interconnect attachment was created.

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

Returns
Type Description
InterconnectAttachment.Builder

clearDescription()

public InterconnectAttachment.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
InterconnectAttachment.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearInterconnect()

public InterconnectAttachment.Builder clearInterconnect()

Required. The canonical name of underlying Interconnect object that this attachment's traffic will traverse through. The name is in the form of projects/{project}/locations/{location}/zones/{zone}/interconnects/{interconnect}.

string interconnect = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
InterconnectAttachment.Builder

This builder for chaining.

clearLabels()

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

clearMtu()

public InterconnectAttachment.Builder clearMtu()

IP (L3) MTU value of the virtual edge cloud. Valid values are: 1500 and 9000. Default to 1500 if not set.

int32 mtu = 9;

Returns
Type Description
InterconnectAttachment.Builder

This builder for chaining.

clearName()

public InterconnectAttachment.Builder clearName()

Required. The canonical resource name of the interconnect attachment.

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

Returns
Type Description
InterconnectAttachment.Builder

This builder for chaining.

clearNetwork()

public InterconnectAttachment.Builder clearNetwork()

Optional. The canonical Network name in the form of projects/{project}/locations/{location}/zones/{zone}/networks/{network}.

string network = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
InterconnectAttachment.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearState()

public InterconnectAttachment.Builder clearState()

Output only. Current stage of the resource to the device by config push.

.google.cloud.edgenetwork.v1.ResourceState state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
InterconnectAttachment.Builder

This builder for chaining.

clearUpdateTime()

public InterconnectAttachment.Builder clearUpdateTime()

Output only. The time when the interconnect attachment was last updated.

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

Returns
Type Description
InterconnectAttachment.Builder

clearVlanId()

public InterconnectAttachment.Builder clearVlanId()

Required. VLAN id provided by user. Must be site-wise unique.

int32 vlan_id = 8 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
InterconnectAttachment.Builder

This builder for chaining.

clone()

public InterconnectAttachment.Builder clone()
Returns
Type Description
InterconnectAttachment.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 interconnect attachment 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 interconnect attachment 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 interconnect attachment was created.

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

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public InterconnectAttachment getDefaultInstanceForType()
Returns
Type Description
InterconnectAttachment

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

getInterconnect()

public String getInterconnect()

Required. The canonical name of underlying Interconnect object that this attachment's traffic will traverse through. The name is in the form of projects/{project}/locations/{location}/zones/{zone}/interconnects/{interconnect}.

string interconnect = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The interconnect.

getInterconnectBytes()

public ByteString getInterconnectBytes()

Required. The canonical name of underlying Interconnect object that this attachment's traffic will traverse through. The name is in the form of projects/{project}/locations/{location}/zones/{zone}/interconnects/{interconnect}.

string interconnect = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for interconnect.

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

getMtu()

public int getMtu()

IP (L3) MTU value of the virtual edge cloud. Valid values are: 1500 and 9000. Default to 1500 if not set.

int32 mtu = 9;

Returns
Type Description
int

The mtu.

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 attachment.

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 attachment.

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

Returns
Type Description
ByteString

The bytes for name.

getNetwork()

public String getNetwork()

Optional. The canonical Network name in the form of projects/{project}/locations/{location}/zones/{zone}/networks/{network}.

string network = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The network.

getNetworkBytes()

public ByteString getNetworkBytes()

Optional. The canonical Network name in the form of projects/{project}/locations/{location}/zones/{zone}/networks/{network}.

string network = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for network.

getState()

public ResourceState getState()

Output only. Current stage of the resource to the device by config push.

.google.cloud.edgenetwork.v1.ResourceState state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ResourceState

The state.

getStateValue()

public int getStateValue()

Output only. Current stage of the resource to the device by config push.

.google.cloud.edgenetwork.v1.ResourceState state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for state.

getUpdateTime()

public Timestamp getUpdateTime()

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

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

Returns
Type Description
TimestampOrBuilder

getVlanId()

public int getVlanId()

Required. VLAN id provided by user. Must be site-wise unique.

int32 vlan_id = 8 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The vlanId.

hasCreateTime()

public boolean hasCreateTime()

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

Output only. The time when the interconnect attachment was created.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
InterconnectAttachment.Builder

mergeFrom(InterconnectAttachment other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUpdateTime(Timestamp value)

public InterconnectAttachment.Builder mergeUpdateTime(Timestamp value)

Output only. The time when the interconnect attachment was last updated.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
InterconnectAttachment.Builder

putAllLabels(Map<String,String> values)

public InterconnectAttachment.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
InterconnectAttachment.Builder

putLabels(String key, String value)

public InterconnectAttachment.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
InterconnectAttachment.Builder

removeLabels(String key)

public InterconnectAttachment.Builder removeLabels(String key)

Labels associated with this resource.

map<string, string> labels = 4;

Parameter
Name Description
key String
Returns
Type Description
InterconnectAttachment.Builder

setCreateTime(Timestamp value)

public InterconnectAttachment.Builder setCreateTime(Timestamp value)

Output only. The time when the interconnect attachment was created.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
InterconnectAttachment.Builder

setCreateTime(Timestamp.Builder builderForValue)

public InterconnectAttachment.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. The time when the interconnect attachment was created.

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

Parameter
Name Description
builderForValue Builder
Returns
Type Description
InterconnectAttachment.Builder

setDescription(String value)

public InterconnectAttachment.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
InterconnectAttachment.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public InterconnectAttachment.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
InterconnectAttachment.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setInterconnect(String value)

public InterconnectAttachment.Builder setInterconnect(String value)

Required. The canonical name of underlying Interconnect object that this attachment's traffic will traverse through. The name is in the form of projects/{project}/locations/{location}/zones/{zone}/interconnects/{interconnect}.

string interconnect = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The interconnect to set.

Returns
Type Description
InterconnectAttachment.Builder

This builder for chaining.

setInterconnectBytes(ByteString value)

public InterconnectAttachment.Builder setInterconnectBytes(ByteString value)

Required. The canonical name of underlying Interconnect object that this attachment's traffic will traverse through. The name is in the form of projects/{project}/locations/{location}/zones/{zone}/interconnects/{interconnect}.

string interconnect = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for interconnect to set.

Returns
Type Description
InterconnectAttachment.Builder

This builder for chaining.

setMtu(int value)

public InterconnectAttachment.Builder setMtu(int value)

IP (L3) MTU value of the virtual edge cloud. Valid values are: 1500 and 9000. Default to 1500 if not set.

int32 mtu = 9;

Parameter
Name Description
value int

The mtu to set.

Returns
Type Description
InterconnectAttachment.Builder

This builder for chaining.

setName(String value)

public InterconnectAttachment.Builder setName(String value)

Required. The canonical resource name of the interconnect attachment.

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

Parameter
Name Description
value String

The name to set.

Returns
Type Description
InterconnectAttachment.Builder

This builder for chaining.

setNameBytes(ByteString value)

public InterconnectAttachment.Builder setNameBytes(ByteString value)

Required. The canonical resource name of the interconnect attachment.

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

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
InterconnectAttachment.Builder

This builder for chaining.

setNetwork(String value)

public InterconnectAttachment.Builder setNetwork(String value)

Optional. The canonical Network name in the form of projects/{project}/locations/{location}/zones/{zone}/networks/{network}.

string network = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The network to set.

Returns
Type Description
InterconnectAttachment.Builder

This builder for chaining.

setNetworkBytes(ByteString value)

public InterconnectAttachment.Builder setNetworkBytes(ByteString value)

Optional. The canonical Network name in the form of projects/{project}/locations/{location}/zones/{zone}/networks/{network}.

string network = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for network to set.

Returns
Type Description
InterconnectAttachment.Builder

This builder for chaining.

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

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

setState(ResourceState value)

public InterconnectAttachment.Builder setState(ResourceState value)

Output only. Current stage of the resource to the device by config push.

.google.cloud.edgenetwork.v1.ResourceState state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ResourceState

The state to set.

Returns
Type Description
InterconnectAttachment.Builder

This builder for chaining.

setStateValue(int value)

public InterconnectAttachment.Builder setStateValue(int value)

Output only. Current stage of the resource to the device by config push.

.google.cloud.edgenetwork.v1.ResourceState state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

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

Returns
Type Description
InterconnectAttachment.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateTime(Timestamp value)

public InterconnectAttachment.Builder setUpdateTime(Timestamp value)

Output only. The time when the interconnect attachment was last updated.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
InterconnectAttachment.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public InterconnectAttachment.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. The time when the interconnect attachment was last updated.

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

Parameter
Name Description
builderForValue Builder
Returns
Type Description
InterconnectAttachment.Builder

setVlanId(int value)

public InterconnectAttachment.Builder setVlanId(int value)

Required. VLAN id provided by user. Must be site-wise unique.

int32 vlan_id = 8 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value int

The vlanId to set.

Returns
Type Description
InterconnectAttachment.Builder

This builder for chaining.