public static final class InterconnectMacsecPreSharedKey.Builder extends com.google.protobuf.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| Modifier and Type | Method and Description |
|---|---|
InterconnectMacsecPreSharedKey.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
InterconnectMacsecPreSharedKey |
build() |
InterconnectMacsecPreSharedKey |
buildPartial() |
InterconnectMacsecPreSharedKey.Builder |
clear() |
InterconnectMacsecPreSharedKey.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
InterconnectMacsecPreSharedKey.Builder |
clearName()
Required.
|
InterconnectMacsecPreSharedKey.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
InterconnectMacsecPreSharedKey.Builder |
clearStartTime()
A RFC3339 timestamp on or after which the key is valid. startTime can be in the future.
|
InterconnectMacsecPreSharedKey.Builder |
clone() |
InterconnectMacsecPreSharedKey |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getName()
Required.
|
com.google.protobuf.ByteString |
getNameBytes()
Required.
|
String |
getStartTime()
A RFC3339 timestamp on or after which the key is valid. startTime can be in the future.
|
com.google.protobuf.ByteString |
getStartTimeBytes()
A RFC3339 timestamp on or after which the key is valid. startTime can be in the future.
|
boolean |
hasName()
Required.
|
boolean |
hasStartTime()
A RFC3339 timestamp on or after which the key is valid. startTime can be in the future.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
InterconnectMacsecPreSharedKey.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
InterconnectMacsecPreSharedKey.Builder |
mergeFrom(InterconnectMacsecPreSharedKey other) |
InterconnectMacsecPreSharedKey.Builder |
mergeFrom(com.google.protobuf.Message other) |
InterconnectMacsecPreSharedKey.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
InterconnectMacsecPreSharedKey.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
InterconnectMacsecPreSharedKey.Builder |
setName(String value)
Required.
|
InterconnectMacsecPreSharedKey.Builder |
setNameBytes(com.google.protobuf.ByteString value)
Required.
|
InterconnectMacsecPreSharedKey.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
InterconnectMacsecPreSharedKey.Builder |
setStartTime(String value)
A RFC3339 timestamp on or after which the key is valid. startTime can be in the future.
|
InterconnectMacsecPreSharedKey.Builder |
setStartTimeBytes(com.google.protobuf.ByteString value)
A RFC3339 timestamp on or after which the key is valid. startTime can be in the future.
|
InterconnectMacsecPreSharedKey.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<InterconnectMacsecPreSharedKey.Builder>public InterconnectMacsecPreSharedKey.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<InterconnectMacsecPreSharedKey.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<InterconnectMacsecPreSharedKey.Builder>public InterconnectMacsecPreSharedKey getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic InterconnectMacsecPreSharedKey build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic InterconnectMacsecPreSharedKey buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic InterconnectMacsecPreSharedKey.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<InterconnectMacsecPreSharedKey.Builder>public InterconnectMacsecPreSharedKey.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<InterconnectMacsecPreSharedKey.Builder>public InterconnectMacsecPreSharedKey.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<InterconnectMacsecPreSharedKey.Builder>public InterconnectMacsecPreSharedKey.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<InterconnectMacsecPreSharedKey.Builder>public InterconnectMacsecPreSharedKey.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<InterconnectMacsecPreSharedKey.Builder>public InterconnectMacsecPreSharedKey.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<InterconnectMacsecPreSharedKey.Builder>public InterconnectMacsecPreSharedKey.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<InterconnectMacsecPreSharedKey.Builder>public InterconnectMacsecPreSharedKey.Builder mergeFrom(InterconnectMacsecPreSharedKey other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<InterconnectMacsecPreSharedKey.Builder>public InterconnectMacsecPreSharedKey.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<InterconnectMacsecPreSharedKey.Builder>IOExceptionpublic 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]([-a-z0-9]*[a-z0-9])?` 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;hasName in interface InterconnectMacsecPreSharedKeyOrBuilderpublic 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]([-a-z0-9]*[a-z0-9])?` 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;getName in interface InterconnectMacsecPreSharedKeyOrBuilderpublic com.google.protobuf.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]([-a-z0-9]*[a-z0-9])?` 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;getNameBytes in interface InterconnectMacsecPreSharedKeyOrBuilderpublic 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]([-a-z0-9]*[a-z0-9])?` 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;value - The name to set.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]([-a-z0-9]*[a-z0-9])?` 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;public InterconnectMacsecPreSharedKey.Builder setNameBytes(com.google.protobuf.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]([-a-z0-9]*[a-z0-9])?` 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;value - The bytes for name to set.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;hasStartTime in interface InterconnectMacsecPreSharedKeyOrBuilderpublic 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;getStartTime in interface InterconnectMacsecPreSharedKeyOrBuilderpublic com.google.protobuf.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;getStartTimeBytes in interface InterconnectMacsecPreSharedKeyOrBuilderpublic 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;value - The startTime to set.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;public InterconnectMacsecPreSharedKey.Builder setStartTimeBytes(com.google.protobuf.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;value - The bytes for startTime to set.public final InterconnectMacsecPreSharedKey.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<InterconnectMacsecPreSharedKey.Builder>public final InterconnectMacsecPreSharedKey.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<InterconnectMacsecPreSharedKey.Builder>Copyright © 2025 Google LLC. All rights reserved.