Class InterconnectMacsec.Builder (1.65.0)

public static final class InterconnectMacsec.Builder extends GeneratedMessageV3.Builder<InterconnectMacsec.Builder> implements InterconnectMacsecOrBuilder

Configuration information for enabling Media Access Control security (MACsec) on this Cloud Interconnect connection between Google and your on-premises router.

Protobuf type google.cloud.compute.v1.InterconnectMacsec

Static Methods

getDescriptor()

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

Methods

addAllPreSharedKeys(Iterable<? extends InterconnectMacsecPreSharedKey> values)

public InterconnectMacsec.Builder addAllPreSharedKeys(Iterable<? extends InterconnectMacsecPreSharedKey> values)

Required. 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.InterconnectMacsecPreSharedKey pre_shared_keys = 420308466;

Parameter
Name Description
values Iterable<? extends com.google.cloud.compute.v1.InterconnectMacsecPreSharedKey>
Returns
Type Description
InterconnectMacsec.Builder

addPreSharedKeys(InterconnectMacsecPreSharedKey value)

public InterconnectMacsec.Builder addPreSharedKeys(InterconnectMacsecPreSharedKey value)

Required. 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.InterconnectMacsecPreSharedKey pre_shared_keys = 420308466;

Parameter
Name Description
value InterconnectMacsecPreSharedKey
Returns
Type Description
InterconnectMacsec.Builder

addPreSharedKeys(InterconnectMacsecPreSharedKey.Builder builderForValue)

public InterconnectMacsec.Builder addPreSharedKeys(InterconnectMacsecPreSharedKey.Builder builderForValue)

Required. 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.InterconnectMacsecPreSharedKey pre_shared_keys = 420308466;

Parameter
Name Description
builderForValue InterconnectMacsecPreSharedKey.Builder
Returns
Type Description
InterconnectMacsec.Builder

addPreSharedKeys(int index, InterconnectMacsecPreSharedKey value)

public InterconnectMacsec.Builder addPreSharedKeys(int index, InterconnectMacsecPreSharedKey value)

Required. 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.InterconnectMacsecPreSharedKey pre_shared_keys = 420308466;

Parameters
Name Description
index int
value InterconnectMacsecPreSharedKey
Returns
Type Description
InterconnectMacsec.Builder

addPreSharedKeys(int index, InterconnectMacsecPreSharedKey.Builder builderForValue)

public InterconnectMacsec.Builder addPreSharedKeys(int index, InterconnectMacsecPreSharedKey.Builder builderForValue)

Required. 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.InterconnectMacsecPreSharedKey pre_shared_keys = 420308466;

Parameters
Name Description
index int
builderForValue InterconnectMacsecPreSharedKey.Builder
Returns
Type Description
InterconnectMacsec.Builder

addPreSharedKeysBuilder()

public InterconnectMacsecPreSharedKey.Builder addPreSharedKeysBuilder()

Required. 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.InterconnectMacsecPreSharedKey pre_shared_keys = 420308466;

Returns
Type Description
InterconnectMacsecPreSharedKey.Builder

addPreSharedKeysBuilder(int index)

public InterconnectMacsecPreSharedKey.Builder addPreSharedKeysBuilder(int index)

Required. 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.InterconnectMacsecPreSharedKey pre_shared_keys = 420308466;

Parameter
Name Description
index int
Returns
Type Description
InterconnectMacsecPreSharedKey.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public InterconnectMacsec build()
Returns
Type Description
InterconnectMacsec

buildPartial()

public InterconnectMacsec buildPartial()
Returns
Type Description
InterconnectMacsec

clear()

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

clearFailOpen()

public InterconnectMacsec.Builder clearFailOpen()

If set to true, the Interconnect connection is configured with a should-secure MACsec security policy, that allows the Google router to fallback to cleartext traffic if the MKA session cannot be established. By default, the Interconnect connection is configured with a must-secure security policy that drops all traffic if the MKA session cannot be established with your router.

optional bool fail_open = 532597451;

Returns
Type Description
InterconnectMacsec.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPreSharedKeys()

public InterconnectMacsec.Builder clearPreSharedKeys()

Required. 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.InterconnectMacsecPreSharedKey pre_shared_keys = 420308466;

Returns
Type Description
InterconnectMacsec.Builder

clone()

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

getDefaultInstanceForType()

public InterconnectMacsec getDefaultInstanceForType()
Returns
Type Description
InterconnectMacsec

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getFailOpen()

public boolean getFailOpen()

If set to true, the Interconnect connection is configured with a should-secure MACsec security policy, that allows the Google router to fallback to cleartext traffic if the MKA session cannot be established. By default, the Interconnect connection is configured with a must-secure security policy that drops all traffic if the MKA session cannot be established with your router.

optional bool fail_open = 532597451;

Returns
Type Description
boolean

The failOpen.

getPreSharedKeys(int index)

public InterconnectMacsecPreSharedKey getPreSharedKeys(int index)

Required. 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.InterconnectMacsecPreSharedKey pre_shared_keys = 420308466;

Parameter
Name Description
index int
Returns
Type Description
InterconnectMacsecPreSharedKey

getPreSharedKeysBuilder(int index)

public InterconnectMacsecPreSharedKey.Builder getPreSharedKeysBuilder(int index)

Required. 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.InterconnectMacsecPreSharedKey pre_shared_keys = 420308466;

Parameter
Name Description
index int
Returns
Type Description
InterconnectMacsecPreSharedKey.Builder

getPreSharedKeysBuilderList()

public List<InterconnectMacsecPreSharedKey.Builder> getPreSharedKeysBuilderList()

Required. 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.InterconnectMacsecPreSharedKey pre_shared_keys = 420308466;

Returns
Type Description
List<Builder>

getPreSharedKeysCount()

public int getPreSharedKeysCount()

Required. 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.InterconnectMacsecPreSharedKey pre_shared_keys = 420308466;

Returns
Type Description
int

getPreSharedKeysList()

public List<InterconnectMacsecPreSharedKey> getPreSharedKeysList()

Required. 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.InterconnectMacsecPreSharedKey pre_shared_keys = 420308466;

Returns
Type Description
List<InterconnectMacsecPreSharedKey>

getPreSharedKeysOrBuilder(int index)

public InterconnectMacsecPreSharedKeyOrBuilder getPreSharedKeysOrBuilder(int index)

Required. 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.InterconnectMacsecPreSharedKey pre_shared_keys = 420308466;

Parameter
Name Description
index int
Returns
Type Description
InterconnectMacsecPreSharedKeyOrBuilder

getPreSharedKeysOrBuilderList()

public List<? extends InterconnectMacsecPreSharedKeyOrBuilder> getPreSharedKeysOrBuilderList()

Required. 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.InterconnectMacsecPreSharedKey pre_shared_keys = 420308466;

Returns
Type Description
List<? extends com.google.cloud.compute.v1.InterconnectMacsecPreSharedKeyOrBuilder>

hasFailOpen()

public boolean hasFailOpen()

If set to true, the Interconnect connection is configured with a should-secure MACsec security policy, that allows the Google router to fallback to cleartext traffic if the MKA session cannot be established. By default, the Interconnect connection is configured with a must-secure security policy that drops all traffic if the MKA session cannot be established with your router.

optional bool fail_open = 532597451;

Returns
Type Description
boolean

Whether the failOpen field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(InterconnectMacsec other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removePreSharedKeys(int index)

public InterconnectMacsec.Builder removePreSharedKeys(int index)

Required. 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.InterconnectMacsecPreSharedKey pre_shared_keys = 420308466;

Parameter
Name Description
index int
Returns
Type Description
InterconnectMacsec.Builder

setFailOpen(boolean value)

public InterconnectMacsec.Builder setFailOpen(boolean value)

If set to true, the Interconnect connection is configured with a should-secure MACsec security policy, that allows the Google router to fallback to cleartext traffic if the MKA session cannot be established. By default, the Interconnect connection is configured with a must-secure security policy that drops all traffic if the MKA session cannot be established with your router.

optional bool fail_open = 532597451;

Parameter
Name Description
value boolean

The failOpen to set.

Returns
Type Description
InterconnectMacsec.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setPreSharedKeys(int index, InterconnectMacsecPreSharedKey value)

public InterconnectMacsec.Builder setPreSharedKeys(int index, InterconnectMacsecPreSharedKey value)

Required. 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.InterconnectMacsecPreSharedKey pre_shared_keys = 420308466;

Parameters
Name Description
index int
value InterconnectMacsecPreSharedKey
Returns
Type Description
InterconnectMacsec.Builder

setPreSharedKeys(int index, InterconnectMacsecPreSharedKey.Builder builderForValue)

public InterconnectMacsec.Builder setPreSharedKeys(int index, InterconnectMacsecPreSharedKey.Builder builderForValue)

Required. 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.InterconnectMacsecPreSharedKey pre_shared_keys = 420308466;

Parameters
Name Description
index int
builderForValue InterconnectMacsecPreSharedKey.Builder
Returns
Type Description
InterconnectMacsec.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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