Class InterconnectMacsecPreSharedKey (1.54.0)

public final class InterconnectMacsecPreSharedKey extends GeneratedMessageV3 implements InterconnectMacsecPreSharedKeyOrBuilder

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

Protobuf type google.cloud.compute.v1.InterconnectMacsecPreSharedKey

Inheritance

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

Static Fields

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

START_TIME_FIELD_NUMBER

public static final int START_TIME_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static InterconnectMacsecPreSharedKey getDefaultInstance()
Returns
Type Description
InterconnectMacsecPreSharedKey

getDescriptor()

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

newBuilder()

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

newBuilder(InterconnectMacsecPreSharedKey prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public InterconnectMacsecPreSharedKey getDefaultInstanceForType()
Returns
Type Description
InterconnectMacsecPreSharedKey

getName()

public String getName()

Required. A name for this pre-shared key. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

optional string name = 3373707;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. A name for this pre-shared key. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

optional string name = 3373707;

Returns
Type Description
ByteString

The bytes for name.

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getStartTime()

public String getStartTime()

A RFC3339 timestamp on or after which the key is valid. startTime can be in the future. If the keychain has a single key, startTime can be omitted. If the keychain has multiple keys, startTime is mandatory for each key. The start times of keys must be in increasing order. The start times of two consecutive keys must be at least 6 hours apart.

optional string start_time = 37467274;

Returns
Type Description
String

The startTime.

getStartTimeBytes()

public ByteString getStartTimeBytes()

A RFC3339 timestamp on or after which the key is valid. startTime can be in the future. If the keychain has a single key, startTime can be omitted. If the keychain has multiple keys, startTime is mandatory for each key. The start times of keys must be in increasing order. The start times of two consecutive keys must be at least 6 hours apart.

optional string start_time = 37467274;

Returns
Type Description
ByteString

The bytes for startTime.

hasName()

public boolean hasName()

Required. A name for this pre-shared key. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

optional string name = 3373707;

Returns
Type Description
boolean

Whether the name field is set.

hasStartTime()

public boolean hasStartTime()

A RFC3339 timestamp on or after which the key is valid. startTime can be in the future. If the keychain has a single key, startTime can be omitted. If the keychain has multiple keys, startTime is mandatory for each key. The start times of keys must be in increasing order. The start times of two consecutive keys must be at least 6 hours apart.

optional string start_time = 37467274;

Returns
Type Description
boolean

Whether the startTime 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 InterconnectMacsecPreSharedKey.Builder newBuilderForType()
Returns
Type Description
InterconnectMacsecPreSharedKey.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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