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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public InterconnectMacsecPreSharedKey.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public InterconnectMacsecPreSharedKey build()
buildPartial()
public InterconnectMacsecPreSharedKey buildPartial()
clear()
public InterconnectMacsecPreSharedKey.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public InterconnectMacsecPreSharedKey.Builder clearField(Descriptors.FieldDescriptor field)
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;
clearOneof(Descriptors.OneofDescriptor oneof)
public InterconnectMacsecPreSharedKey.Builder clearOneof(Descriptors.OneofDescriptor oneof)
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;
clone()
public InterconnectMacsecPreSharedKey.Builder clone()
Overrides
getDefaultInstanceForType()
public InterconnectMacsecPreSharedKey getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
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()
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()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(InterconnectMacsecPreSharedKey other)
public InterconnectMacsecPreSharedKey.Builder mergeFrom(InterconnectMacsecPreSharedKey other)
public InterconnectMacsecPreSharedKey.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public InterconnectMacsecPreSharedKey.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final InterconnectMacsecPreSharedKey.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public InterconnectMacsecPreSharedKey.Builder setField(Descriptors.FieldDescriptor field, Object value)
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.
|
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.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public InterconnectMacsecPreSharedKey.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
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.
|
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.
|
setUnknownFields(UnknownFieldSet unknownFields)
public final InterconnectMacsecPreSharedKey.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides