Class InterconnectMacsec (1.59.0)

public final class InterconnectMacsec extends GeneratedMessageV3 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 Fields

FAIL_OPEN_FIELD_NUMBER

public static final int FAIL_OPEN_FIELD_NUMBER
Field Value
Type Description
int

PRE_SHARED_KEYS_FIELD_NUMBER

public static final int PRE_SHARED_KEYS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static InterconnectMacsec getDefaultInstance()
Returns
Type Description
InterconnectMacsec

getDescriptor()

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

newBuilder()

public static InterconnectMacsec.Builder newBuilder()
Returns
Type Description
InterconnectMacsec.Builder

newBuilder(InterconnectMacsec prototype)

public static InterconnectMacsec.Builder newBuilder(InterconnectMacsec prototype)
Parameter
Name Description
prototype InterconnectMacsec
Returns
Type Description
InterconnectMacsec.Builder

parseDelimitedFrom(InputStream input)

public static InterconnectMacsec parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
InterconnectMacsec
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static InterconnectMacsec parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
InterconnectMacsec
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static InterconnectMacsec parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
InterconnectMacsec
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static InterconnectMacsec parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
InterconnectMacsec
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static InterconnectMacsec parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
InterconnectMacsec
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static InterconnectMacsec parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
InterconnectMacsec
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static InterconnectMacsec parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
InterconnectMacsec
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static InterconnectMacsec parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
InterconnectMacsec
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static InterconnectMacsec parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
InterconnectMacsec
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static InterconnectMacsec parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
InterconnectMacsec
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static InterconnectMacsec parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
InterconnectMacsec
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static InterconnectMacsec parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
InterconnectMacsec
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<InterconnectMacsec> parser()
Returns
Type Description
Parser<InterconnectMacsec>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public InterconnectMacsec getDefaultInstanceForType()
Returns
Type Description
InterconnectMacsec

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.

getParserForType()

public Parser<InterconnectMacsec> getParserForType()
Returns
Type Description
Parser<InterconnectMacsec>
Overrides

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

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>

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public InterconnectMacsec.Builder newBuilderForType()
Returns
Type Description
InterconnectMacsec.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected InterconnectMacsec.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
InterconnectMacsec.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public InterconnectMacsec.Builder toBuilder()
Returns
Type Description
InterconnectMacsec.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException