Class InterconnectMacsecPreSharedKey.Builder (1.59.0)

public static final class InterconnectMacsecPreSharedKey.Builder extends GeneratedMessageV3.Builder<InterconnectMacsecPreSharedKey.Builder> 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

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public InterconnectMacsecPreSharedKey.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
InterconnectMacsecPreSharedKey.Builder
Overrides

build()

public InterconnectMacsecPreSharedKey build()
Returns
Type Description
InterconnectMacsecPreSharedKey

buildPartial()

public InterconnectMacsecPreSharedKey buildPartial()
Returns
Type Description
InterconnectMacsecPreSharedKey

clear()

public InterconnectMacsecPreSharedKey.Builder clear()
Returns
Type Description
InterconnectMacsecPreSharedKey.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public InterconnectMacsecPreSharedKey.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
InterconnectMacsecPreSharedKey.Builder
Overrides

clearName()

public InterconnectMacsecPreSharedKey.Builder clearName()

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
InterconnectMacsecPreSharedKey.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public InterconnectMacsecPreSharedKey.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
InterconnectMacsecPreSharedKey.Builder
Overrides

clearStartTime()

public InterconnectMacsecPreSharedKey.Builder clearStartTime()

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
InterconnectMacsecPreSharedKey.Builder

This builder for chaining.

clone()

public InterconnectMacsecPreSharedKey.Builder clone()
Returns
Type Description
InterconnectMacsecPreSharedKey.Builder
Overrides

getDefaultInstanceForType()

public InterconnectMacsecPreSharedKey getDefaultInstanceForType()
Returns
Type Description
InterconnectMacsecPreSharedKey

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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.

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.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(InterconnectMacsecPreSharedKey other)

public InterconnectMacsecPreSharedKey.Builder mergeFrom(InterconnectMacsecPreSharedKey other)
Parameter
Name Description
other InterconnectMacsecPreSharedKey
Returns
Type Description
InterconnectMacsecPreSharedKey.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public InterconnectMacsecPreSharedKey.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
InterconnectMacsecPreSharedKey.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public InterconnectMacsecPreSharedKey.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
InterconnectMacsecPreSharedKey.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final InterconnectMacsecPreSharedKey.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
InterconnectMacsecPreSharedKey.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public InterconnectMacsecPreSharedKey.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
InterconnectMacsecPreSharedKey.Builder
Overrides

setName(String value)

public InterconnectMacsecPreSharedKey.Builder setName(String value)

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;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
InterconnectMacsecPreSharedKey.Builder

This builder for chaining.

setNameBytes(ByteString value)

public InterconnectMacsecPreSharedKey.Builder setNameBytes(ByteString value)

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;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
InterconnectMacsecPreSharedKey.Builder

This builder for chaining.

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

public InterconnectMacsecPreSharedKey.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
InterconnectMacsecPreSharedKey.Builder
Overrides

setStartTime(String value)

public InterconnectMacsecPreSharedKey.Builder setStartTime(String value)

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;

Parameter
Name Description
value String

The startTime to set.

Returns
Type Description
InterconnectMacsecPreSharedKey.Builder

This builder for chaining.

setStartTimeBytes(ByteString value)

public InterconnectMacsecPreSharedKey.Builder setStartTimeBytes(ByteString value)

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;

Parameter
Name Description
value ByteString

The bytes for startTime to set.

Returns
Type Description
InterconnectMacsecPreSharedKey.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final InterconnectMacsecPreSharedKey.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
InterconnectMacsecPreSharedKey.Builder
Overrides