Class InterconnectMacsecPreSharedKey.Builder (1.51.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public InterconnectMacsecPreSharedKey.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
InterconnectMacsecPreSharedKey.Builder
Overrides

build()

public InterconnectMacsecPreSharedKey build()
Returns
TypeDescription
InterconnectMacsecPreSharedKey

buildPartial()

public InterconnectMacsecPreSharedKey buildPartial()
Returns
TypeDescription
InterconnectMacsecPreSharedKey

clear()

public InterconnectMacsecPreSharedKey.Builder clear()
Returns
TypeDescription
InterconnectMacsecPreSharedKey.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public InterconnectMacsecPreSharedKey.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
InterconnectMacsecPreSharedKey.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public InterconnectMacsecPreSharedKey.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
InterconnectMacsecPreSharedKey.Builder

This builder for chaining.

clone()

public InterconnectMacsecPreSharedKey.Builder clone()
Returns
TypeDescription
InterconnectMacsecPreSharedKey.Builder
Overrides

getDefaultInstanceForType()

public InterconnectMacsecPreSharedKey getDefaultInstanceForType()
Returns
TypeDescription
InterconnectMacsecPreSharedKey

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the startTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(InterconnectMacsecPreSharedKey other)

public InterconnectMacsecPreSharedKey.Builder mergeFrom(InterconnectMacsecPreSharedKey other)
Parameter
NameDescription
otherInterconnectMacsecPreSharedKey
Returns
TypeDescription
InterconnectMacsecPreSharedKey.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public InterconnectMacsecPreSharedKey.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
InterconnectMacsecPreSharedKey.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public InterconnectMacsecPreSharedKey.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
InterconnectMacsecPreSharedKey.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final InterconnectMacsecPreSharedKey.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
InterconnectMacsecPreSharedKey.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public InterconnectMacsecPreSharedKey.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The name to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The startTime to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for startTime to set.

Returns
TypeDescription
InterconnectMacsecPreSharedKey.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final InterconnectMacsecPreSharedKey.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
InterconnectMacsecPreSharedKey.Builder
Overrides