Class InterconnectMacsecConfigPreSharedKey (1.47.0)

public final class InterconnectMacsecConfigPreSharedKey extends GeneratedMessageV3 implements InterconnectMacsecConfigPreSharedKeyOrBuilder

Describes a pre-shared key used to setup MACsec in static connectivity association key (CAK) mode.

Protobuf type google.cloud.compute.v1.InterconnectMacsecConfigPreSharedKey

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > InterconnectMacsecConfigPreSharedKey

Static Fields

CAK_FIELD_NUMBER

public static final int CAK_FIELD_NUMBER
Field Value
TypeDescription
int

CKN_FIELD_NUMBER

public static final int CKN_FIELD_NUMBER
Field Value
TypeDescription
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
TypeDescription
int

START_TIME_FIELD_NUMBER

public static final int START_TIME_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static InterconnectMacsecConfigPreSharedKey getDefaultInstance()
Returns
TypeDescription
InterconnectMacsecConfigPreSharedKey

getDescriptor()

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

newBuilder()

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

newBuilder(InterconnectMacsecConfigPreSharedKey prototype)

public static InterconnectMacsecConfigPreSharedKey.Builder newBuilder(InterconnectMacsecConfigPreSharedKey prototype)
Parameter
NameDescription
prototypeInterconnectMacsecConfigPreSharedKey
Returns
TypeDescription
InterconnectMacsecConfigPreSharedKey.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getCak()

public String getCak()

An auto-generated Connectivity Association Key (CAK) for this key.

optional string cak = 98253;

Returns
TypeDescription
String

The cak.

getCakBytes()

public ByteString getCakBytes()

An auto-generated Connectivity Association Key (CAK) for this key.

optional string cak = 98253;

Returns
TypeDescription
ByteString

The bytes for cak.

getCkn()

public String getCkn()

An auto-generated Connectivity Association Key Name (CKN) for this key.

optional string ckn = 98566;

Returns
TypeDescription
String

The ckn.

getCknBytes()

public ByteString getCknBytes()

An auto-generated Connectivity Association Key Name (CKN) for this key.

optional string ckn = 98566;

Returns
TypeDescription
ByteString

The bytes for ckn.

getDefaultInstanceForType()

public InterconnectMacsecConfigPreSharedKey getDefaultInstanceForType()
Returns
TypeDescription
InterconnectMacsecConfigPreSharedKey

getName()

public String getName()

User provided name for this pre-shared key.

optional string name = 3373707;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

User provided name for this pre-shared key.

optional string name = 3373707;

Returns
TypeDescription
ByteString

The bytes for name.

getParserForType()

public Parser<InterconnectMacsecConfigPreSharedKey> getParserForType()
Returns
TypeDescription
Parser<InterconnectMacsecConfigPreSharedKey>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getStartTime()

public String getStartTime()

User provided timestamp on or after which this key is valid.

optional string start_time = 37467274;

Returns
TypeDescription
String

The startTime.

getStartTimeBytes()

public ByteString getStartTimeBytes()

User provided timestamp on or after which this key is valid.

optional string start_time = 37467274;

Returns
TypeDescription
ByteString

The bytes for startTime.

hasCak()

public boolean hasCak()

An auto-generated Connectivity Association Key (CAK) for this key.

optional string cak = 98253;

Returns
TypeDescription
boolean

Whether the cak field is set.

hasCkn()

public boolean hasCkn()

An auto-generated Connectivity Association Key Name (CKN) for this key.

optional string ckn = 98566;

Returns
TypeDescription
boolean

Whether the ckn field is set.

hasName()

public boolean hasName()

User provided name for this pre-shared key.

optional string name = 3373707;

Returns
TypeDescription
boolean

Whether the name field is set.

hasStartTime()

public boolean hasStartTime()

User provided timestamp on or after which this key is valid.

optional string start_time = 37467274;

Returns
TypeDescription
boolean

Whether the startTime 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 InterconnectMacsecConfigPreSharedKey.Builder newBuilderForType()
Returns
TypeDescription
InterconnectMacsecConfigPreSharedKey.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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