Class InterconnectMacsec.Builder (1.51.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.compute.v1.InterconnectMacsecPreSharedKey>
Returns
TypeDescription
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
NameDescription
valueInterconnectMacsecPreSharedKey
Returns
TypeDescription
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
NameDescription
builderForValueInterconnectMacsecPreSharedKey.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueInterconnectMacsecPreSharedKey
Returns
TypeDescription
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
NameDescription
indexint
builderForValueInterconnectMacsecPreSharedKey.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
InterconnectMacsecPreSharedKey.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public InterconnectMacsec build()
Returns
TypeDescription
InterconnectMacsec

buildPartial()

public InterconnectMacsec buildPartial()
Returns
TypeDescription
InterconnectMacsec

clear()

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

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public InterconnectMacsec getDefaultInstanceForType()
Returns
TypeDescription
InterconnectMacsec

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the failOpen field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(InterconnectMacsec other)

public InterconnectMacsec.Builder mergeFrom(InterconnectMacsec other)
Parameter
NameDescription
otherInterconnectMacsec
Returns
TypeDescription
InterconnectMacsec.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final InterconnectMacsec.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
valueboolean

The failOpen to set.

Returns
TypeDescription
InterconnectMacsec.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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