Class InterconnectMacsec (1.45.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
TypeDescription
int

PRE_SHARED_KEYS_FIELD_NUMBER

public static final int PRE_SHARED_KEYS_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static InterconnectMacsec getDefaultInstance()
Returns
TypeDescription
InterconnectMacsec

getDescriptor()

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

newBuilder()

public static InterconnectMacsec.Builder newBuilder()
Returns
TypeDescription
InterconnectMacsec.Builder

newBuilder(InterconnectMacsec prototype)

public static InterconnectMacsec.Builder newBuilder(InterconnectMacsec prototype)
Parameter
NameDescription
prototypeInterconnectMacsec
Returns
TypeDescription
InterconnectMacsec.Builder

parseDelimitedFrom(InputStream input)

public static InterconnectMacsec parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
InterconnectMacsec
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static InterconnectMacsec parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
InterconnectMacsec
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static InterconnectMacsec parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
InterconnectMacsec
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static InterconnectMacsec parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
InterconnectMacsec
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static InterconnectMacsec parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
InterconnectMacsec
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static InterconnectMacsec parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
InterconnectMacsec
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static InterconnectMacsec parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
InterconnectMacsec
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static InterconnectMacsec parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
InterconnectMacsec
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static InterconnectMacsec parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
InterconnectMacsec
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static InterconnectMacsec parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
InterconnectMacsec
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static InterconnectMacsec parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
InterconnectMacsec
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static InterconnectMacsec parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
InterconnectMacsec
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<InterconnectMacsec> parser()
Returns
TypeDescription
Parser<InterconnectMacsec>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

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

The failOpen.

getParserForType()

public Parser<InterconnectMacsec> getParserForType()
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
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>

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
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
TypeDescription
boolean

Whether the failOpen field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public InterconnectMacsec.Builder newBuilderForType()
Returns
TypeDescription
InterconnectMacsec.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected InterconnectMacsec.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
InterconnectMacsec.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public InterconnectMacsec.Builder toBuilder()
Returns
TypeDescription
InterconnectMacsec.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException