Class InterconnectMacsecConfig.Builder (1.47.0)

public static final class InterconnectMacsecConfig.Builder extends GeneratedMessageV3.Builder<InterconnectMacsecConfig.Builder> implements InterconnectMacsecConfigOrBuilder

MACsec configuration information for the Interconnect connection. Contains the generated Connectivity Association Key Name (CKN) and the key (CAK) for this Interconnect connection.

Protobuf type google.cloud.compute.v1.InterconnectMacsecConfig

Static Methods

getDescriptor()

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

Methods

addAllPreSharedKeys(Iterable<? extends InterconnectMacsecConfigPreSharedKey> values)

public InterconnectMacsecConfig.Builder addAllPreSharedKeys(Iterable<? extends InterconnectMacsecConfigPreSharedKey> values)

A keychain placeholder describing a set of named key objects along with their start times. A MACsec CKN/CAK is generated for each key in the key chain. Google router automatically picks the key with the most recent startTime when establishing or re-establishing a MACsec secure link.

repeated .google.cloud.compute.v1.InterconnectMacsecConfigPreSharedKey pre_shared_keys = 420308466;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.compute.v1.InterconnectMacsecConfigPreSharedKey>
Returns
TypeDescription
InterconnectMacsecConfig.Builder

addPreSharedKeys(InterconnectMacsecConfigPreSharedKey value)

public InterconnectMacsecConfig.Builder addPreSharedKeys(InterconnectMacsecConfigPreSharedKey value)

A keychain placeholder describing a set of named key objects along with their start times. A MACsec CKN/CAK is generated for each key in the key chain. Google router automatically picks the key with the most recent startTime when establishing or re-establishing a MACsec secure link.

repeated .google.cloud.compute.v1.InterconnectMacsecConfigPreSharedKey pre_shared_keys = 420308466;

Parameter
NameDescription
valueInterconnectMacsecConfigPreSharedKey
Returns
TypeDescription
InterconnectMacsecConfig.Builder

addPreSharedKeys(InterconnectMacsecConfigPreSharedKey.Builder builderForValue)

public InterconnectMacsecConfig.Builder addPreSharedKeys(InterconnectMacsecConfigPreSharedKey.Builder builderForValue)

A keychain placeholder describing a set of named key objects along with their start times. A MACsec CKN/CAK is generated for each key in the key chain. Google router automatically picks the key with the most recent startTime when establishing or re-establishing a MACsec secure link.

repeated .google.cloud.compute.v1.InterconnectMacsecConfigPreSharedKey pre_shared_keys = 420308466;

Parameter
NameDescription
builderForValueInterconnectMacsecConfigPreSharedKey.Builder
Returns
TypeDescription
InterconnectMacsecConfig.Builder

addPreSharedKeys(int index, InterconnectMacsecConfigPreSharedKey value)

public InterconnectMacsecConfig.Builder addPreSharedKeys(int index, InterconnectMacsecConfigPreSharedKey value)

A keychain placeholder describing a set of named key objects along with their start times. A MACsec CKN/CAK is generated for each key in the key chain. Google router automatically picks the key with the most recent startTime when establishing or re-establishing a MACsec secure link.

repeated .google.cloud.compute.v1.InterconnectMacsecConfigPreSharedKey pre_shared_keys = 420308466;

Parameters
NameDescription
indexint
valueInterconnectMacsecConfigPreSharedKey
Returns
TypeDescription
InterconnectMacsecConfig.Builder

addPreSharedKeys(int index, InterconnectMacsecConfigPreSharedKey.Builder builderForValue)

public InterconnectMacsecConfig.Builder addPreSharedKeys(int index, InterconnectMacsecConfigPreSharedKey.Builder builderForValue)

A keychain placeholder describing a set of named key objects along with their start times. A MACsec CKN/CAK is generated for each key in the key chain. Google router automatically picks the key with the most recent startTime when establishing or re-establishing a MACsec secure link.

repeated .google.cloud.compute.v1.InterconnectMacsecConfigPreSharedKey pre_shared_keys = 420308466;

Parameters
NameDescription
indexint
builderForValueInterconnectMacsecConfigPreSharedKey.Builder
Returns
TypeDescription
InterconnectMacsecConfig.Builder

addPreSharedKeysBuilder()

public InterconnectMacsecConfigPreSharedKey.Builder addPreSharedKeysBuilder()

A keychain placeholder describing a set of named key objects along with their start times. A MACsec CKN/CAK is generated for each key in the key chain. Google router automatically picks the key with the most recent startTime when establishing or re-establishing a MACsec secure link.

repeated .google.cloud.compute.v1.InterconnectMacsecConfigPreSharedKey pre_shared_keys = 420308466;

Returns
TypeDescription
InterconnectMacsecConfigPreSharedKey.Builder

addPreSharedKeysBuilder(int index)

public InterconnectMacsecConfigPreSharedKey.Builder addPreSharedKeysBuilder(int index)

A keychain placeholder describing a set of named key objects along with their start times. A MACsec CKN/CAK is generated for each key in the key chain. Google router automatically picks the key with the most recent startTime when establishing or re-establishing a MACsec secure link.

repeated .google.cloud.compute.v1.InterconnectMacsecConfigPreSharedKey pre_shared_keys = 420308466;

Parameter
NameDescription
indexint
Returns
TypeDescription
InterconnectMacsecConfigPreSharedKey.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public InterconnectMacsecConfig build()
Returns
TypeDescription
InterconnectMacsecConfig

buildPartial()

public InterconnectMacsecConfig buildPartial()
Returns
TypeDescription
InterconnectMacsecConfig

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPreSharedKeys()

public InterconnectMacsecConfig.Builder clearPreSharedKeys()

A keychain placeholder describing a set of named key objects along with their start times. A MACsec CKN/CAK is generated for each key in the key chain. Google router automatically picks the key with the most recent startTime when establishing or re-establishing a MACsec secure link.

repeated .google.cloud.compute.v1.InterconnectMacsecConfigPreSharedKey pre_shared_keys = 420308466;

Returns
TypeDescription
InterconnectMacsecConfig.Builder

clone()

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

getDefaultInstanceForType()

public InterconnectMacsecConfig getDefaultInstanceForType()
Returns
TypeDescription
InterconnectMacsecConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getPreSharedKeys(int index)

public InterconnectMacsecConfigPreSharedKey getPreSharedKeys(int index)

A keychain placeholder describing a set of named key objects along with their start times. A MACsec CKN/CAK is generated for each key in the key chain. Google router automatically picks the key with the most recent startTime when establishing or re-establishing a MACsec secure link.

repeated .google.cloud.compute.v1.InterconnectMacsecConfigPreSharedKey pre_shared_keys = 420308466;

Parameter
NameDescription
indexint
Returns
TypeDescription
InterconnectMacsecConfigPreSharedKey

getPreSharedKeysBuilder(int index)

public InterconnectMacsecConfigPreSharedKey.Builder getPreSharedKeysBuilder(int index)

A keychain placeholder describing a set of named key objects along with their start times. A MACsec CKN/CAK is generated for each key in the key chain. Google router automatically picks the key with the most recent startTime when establishing or re-establishing a MACsec secure link.

repeated .google.cloud.compute.v1.InterconnectMacsecConfigPreSharedKey pre_shared_keys = 420308466;

Parameter
NameDescription
indexint
Returns
TypeDescription
InterconnectMacsecConfigPreSharedKey.Builder

getPreSharedKeysBuilderList()

public List<InterconnectMacsecConfigPreSharedKey.Builder> getPreSharedKeysBuilderList()

A keychain placeholder describing a set of named key objects along with their start times. A MACsec CKN/CAK is generated for each key in the key chain. Google router automatically picks the key with the most recent startTime when establishing or re-establishing a MACsec secure link.

repeated .google.cloud.compute.v1.InterconnectMacsecConfigPreSharedKey pre_shared_keys = 420308466;

Returns
TypeDescription
List<Builder>

getPreSharedKeysCount()

public int getPreSharedKeysCount()

A keychain placeholder describing a set of named key objects along with their start times. A MACsec CKN/CAK is generated for each key in the key chain. Google router automatically picks the key with the most recent startTime when establishing or re-establishing a MACsec secure link.

repeated .google.cloud.compute.v1.InterconnectMacsecConfigPreSharedKey pre_shared_keys = 420308466;

Returns
TypeDescription
int

getPreSharedKeysList()

public List<InterconnectMacsecConfigPreSharedKey> getPreSharedKeysList()

A keychain placeholder describing a set of named key objects along with their start times. A MACsec CKN/CAK is generated for each key in the key chain. Google router automatically picks the key with the most recent startTime when establishing or re-establishing a MACsec secure link.

repeated .google.cloud.compute.v1.InterconnectMacsecConfigPreSharedKey pre_shared_keys = 420308466;

Returns
TypeDescription
List<InterconnectMacsecConfigPreSharedKey>

getPreSharedKeysOrBuilder(int index)

public InterconnectMacsecConfigPreSharedKeyOrBuilder getPreSharedKeysOrBuilder(int index)

A keychain placeholder describing a set of named key objects along with their start times. A MACsec CKN/CAK is generated for each key in the key chain. Google router automatically picks the key with the most recent startTime when establishing or re-establishing a MACsec secure link.

repeated .google.cloud.compute.v1.InterconnectMacsecConfigPreSharedKey pre_shared_keys = 420308466;

Parameter
NameDescription
indexint
Returns
TypeDescription
InterconnectMacsecConfigPreSharedKeyOrBuilder

getPreSharedKeysOrBuilderList()

public List<? extends InterconnectMacsecConfigPreSharedKeyOrBuilder> getPreSharedKeysOrBuilderList()

A keychain placeholder describing a set of named key objects along with their start times. A MACsec CKN/CAK is generated for each key in the key chain. Google router automatically picks the key with the most recent startTime when establishing or re-establishing a MACsec secure link.

repeated .google.cloud.compute.v1.InterconnectMacsecConfigPreSharedKey pre_shared_keys = 420308466;

Returns
TypeDescription
List<? extends com.google.cloud.compute.v1.InterconnectMacsecConfigPreSharedKeyOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(InterconnectMacsecConfig other)

public InterconnectMacsecConfig.Builder mergeFrom(InterconnectMacsecConfig other)
Parameter
NameDescription
otherInterconnectMacsecConfig
Returns
TypeDescription
InterconnectMacsecConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removePreSharedKeys(int index)

public InterconnectMacsecConfig.Builder removePreSharedKeys(int index)

A keychain placeholder describing a set of named key objects along with their start times. A MACsec CKN/CAK is generated for each key in the key chain. Google router automatically picks the key with the most recent startTime when establishing or re-establishing a MACsec secure link.

repeated .google.cloud.compute.v1.InterconnectMacsecConfigPreSharedKey pre_shared_keys = 420308466;

Parameter
NameDescription
indexint
Returns
TypeDescription
InterconnectMacsecConfig.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setPreSharedKeys(int index, InterconnectMacsecConfigPreSharedKey value)

public InterconnectMacsecConfig.Builder setPreSharedKeys(int index, InterconnectMacsecConfigPreSharedKey value)

A keychain placeholder describing a set of named key objects along with their start times. A MACsec CKN/CAK is generated for each key in the key chain. Google router automatically picks the key with the most recent startTime when establishing or re-establishing a MACsec secure link.

repeated .google.cloud.compute.v1.InterconnectMacsecConfigPreSharedKey pre_shared_keys = 420308466;

Parameters
NameDescription
indexint
valueInterconnectMacsecConfigPreSharedKey
Returns
TypeDescription
InterconnectMacsecConfig.Builder

setPreSharedKeys(int index, InterconnectMacsecConfigPreSharedKey.Builder builderForValue)

public InterconnectMacsecConfig.Builder setPreSharedKeys(int index, InterconnectMacsecConfigPreSharedKey.Builder builderForValue)

A keychain placeholder describing a set of named key objects along with their start times. A MACsec CKN/CAK is generated for each key in the key chain. Google router automatically picks the key with the most recent startTime when establishing or re-establishing a MACsec secure link.

repeated .google.cloud.compute.v1.InterconnectMacsecConfigPreSharedKey pre_shared_keys = 420308466;

Parameters
NameDescription
indexint
builderForValueInterconnectMacsecConfigPreSharedKey.Builder
Returns
TypeDescription
InterconnectMacsecConfig.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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