Class InterconnectAttachment.Builder (0.9.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public InterconnectAttachment build()
Returns
TypeDescription
InterconnectAttachment

buildPartial()

public InterconnectAttachment buildPartial()
Returns
TypeDescription
InterconnectAttachment

clear()

public InterconnectAttachment.Builder clear()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
InterconnectAttachment.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public InterconnectAttachment.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
InterconnectAttachment.Builder

This builder for chaining.

clearLabels()

public InterconnectAttachment.Builder clearLabels()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
InterconnectAttachment.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public InterconnectAttachment.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
InterconnectAttachment.Builder

This builder for chaining.

clone()

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

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

Returns
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public InterconnectAttachment getDefaultInstanceForType()
Returns
TypeDescription
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
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

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
TypeDescription
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
TypeDescription
ByteString

The bytes for interconnect.

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

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
TypeDescription
int

The mtu.

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

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

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
InterconnectAttachment.Builder

mergeFrom(InterconnectAttachment other)

public InterconnectAttachment.Builder mergeFrom(InterconnectAttachment other)
Parameter
NameDescription
otherInterconnectAttachment
Returns
TypeDescription
InterconnectAttachment.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final InterconnectAttachment.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
valuesMap<String,String>
Returns
TypeDescription
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
NameDescription
keyString
valueString
Returns
TypeDescription
InterconnectAttachment.Builder

removeLabels(String key)

public InterconnectAttachment.Builder removeLabels(String key)

Labels associated with this resource.

map<string, string> labels = 4;

Parameter
NameDescription
keyString
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
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
NameDescription
valueString

The description to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for description to set.

Returns
TypeDescription
InterconnectAttachment.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public InterconnectAttachment.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The interconnect to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for interconnect to set.

Returns
TypeDescription
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
NameDescription
valueint

The mtu to set.

Returns
TypeDescription
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
NameDescription
valueString

The name to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
valueString

The network to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for network to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueResourceState

The state to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
InterconnectAttachment.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final InterconnectAttachment.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
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
NameDescription
valueint

The vlanId to set.

Returns
TypeDescription
InterconnectAttachment.Builder

This builder for chaining.