public static final class InstancesSetSecurityPolicyRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<InstancesSetSecurityPolicyRequest.Builder> implements InstancesSetSecurityPolicyRequestOrBuilder
Protobuf type
google.cloud.compute.v1.InstancesSetSecurityPolicyRequest| Modifier and Type | Method and Description |
|---|---|
InstancesSetSecurityPolicyRequest.Builder |
addAllNetworkInterfaces(Iterable<String> values)
The network interfaces that the security policy will be applied to.
|
InstancesSetSecurityPolicyRequest.Builder |
addNetworkInterfaces(String value)
The network interfaces that the security policy will be applied to.
|
InstancesSetSecurityPolicyRequest.Builder |
addNetworkInterfacesBytes(com.google.protobuf.ByteString value)
The network interfaces that the security policy will be applied to.
|
InstancesSetSecurityPolicyRequest.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
InstancesSetSecurityPolicyRequest |
build() |
InstancesSetSecurityPolicyRequest |
buildPartial() |
InstancesSetSecurityPolicyRequest.Builder |
clear() |
InstancesSetSecurityPolicyRequest.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
InstancesSetSecurityPolicyRequest.Builder |
clearNetworkInterfaces()
The network interfaces that the security policy will be applied to.
|
InstancesSetSecurityPolicyRequest.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
InstancesSetSecurityPolicyRequest.Builder |
clearSecurityPolicy()
A full or partial URL to a security policy to add to this instance.
|
InstancesSetSecurityPolicyRequest.Builder |
clone() |
InstancesSetSecurityPolicyRequest |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getNetworkInterfaces(int index)
The network interfaces that the security policy will be applied to.
|
com.google.protobuf.ByteString |
getNetworkInterfacesBytes(int index)
The network interfaces that the security policy will be applied to.
|
int |
getNetworkInterfacesCount()
The network interfaces that the security policy will be applied to.
|
com.google.protobuf.ProtocolStringList |
getNetworkInterfacesList()
The network interfaces that the security policy will be applied to.
|
String |
getSecurityPolicy()
A full or partial URL to a security policy to add to this instance.
|
com.google.protobuf.ByteString |
getSecurityPolicyBytes()
A full or partial URL to a security policy to add to this instance.
|
boolean |
hasSecurityPolicy()
A full or partial URL to a security policy to add to this instance.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
InstancesSetSecurityPolicyRequest.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
InstancesSetSecurityPolicyRequest.Builder |
mergeFrom(InstancesSetSecurityPolicyRequest other) |
InstancesSetSecurityPolicyRequest.Builder |
mergeFrom(com.google.protobuf.Message other) |
InstancesSetSecurityPolicyRequest.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
InstancesSetSecurityPolicyRequest.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
InstancesSetSecurityPolicyRequest.Builder |
setNetworkInterfaces(int index,
String value)
The network interfaces that the security policy will be applied to.
|
InstancesSetSecurityPolicyRequest.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
InstancesSetSecurityPolicyRequest.Builder |
setSecurityPolicy(String value)
A full or partial URL to a security policy to add to this instance.
|
InstancesSetSecurityPolicyRequest.Builder |
setSecurityPolicyBytes(com.google.protobuf.ByteString value)
A full or partial URL to a security policy to add to this instance.
|
InstancesSetSecurityPolicyRequest.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<InstancesSetSecurityPolicyRequest.Builder>public InstancesSetSecurityPolicyRequest.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<InstancesSetSecurityPolicyRequest.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<InstancesSetSecurityPolicyRequest.Builder>public InstancesSetSecurityPolicyRequest getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic InstancesSetSecurityPolicyRequest build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic InstancesSetSecurityPolicyRequest buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic InstancesSetSecurityPolicyRequest.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<InstancesSetSecurityPolicyRequest.Builder>public InstancesSetSecurityPolicyRequest.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<InstancesSetSecurityPolicyRequest.Builder>public InstancesSetSecurityPolicyRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<InstancesSetSecurityPolicyRequest.Builder>public InstancesSetSecurityPolicyRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<InstancesSetSecurityPolicyRequest.Builder>public InstancesSetSecurityPolicyRequest.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<InstancesSetSecurityPolicyRequest.Builder>public InstancesSetSecurityPolicyRequest.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<InstancesSetSecurityPolicyRequest.Builder>public InstancesSetSecurityPolicyRequest.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<InstancesSetSecurityPolicyRequest.Builder>public InstancesSetSecurityPolicyRequest.Builder mergeFrom(InstancesSetSecurityPolicyRequest other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<InstancesSetSecurityPolicyRequest.Builder>public InstancesSetSecurityPolicyRequest.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<InstancesSetSecurityPolicyRequest.Builder>IOExceptionpublic com.google.protobuf.ProtocolStringList getNetworkInterfacesList()
The network interfaces that the security policy will be applied to. Network interfaces use the nicN naming format. You can only set a security policy for network interfaces with an access config.
repeated string network_interfaces = 52735243;getNetworkInterfacesList in interface InstancesSetSecurityPolicyRequestOrBuilderpublic int getNetworkInterfacesCount()
The network interfaces that the security policy will be applied to. Network interfaces use the nicN naming format. You can only set a security policy for network interfaces with an access config.
repeated string network_interfaces = 52735243;getNetworkInterfacesCount in interface InstancesSetSecurityPolicyRequestOrBuilderpublic String getNetworkInterfaces(int index)
The network interfaces that the security policy will be applied to. Network interfaces use the nicN naming format. You can only set a security policy for network interfaces with an access config.
repeated string network_interfaces = 52735243;getNetworkInterfaces in interface InstancesSetSecurityPolicyRequestOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getNetworkInterfacesBytes(int index)
The network interfaces that the security policy will be applied to. Network interfaces use the nicN naming format. You can only set a security policy for network interfaces with an access config.
repeated string network_interfaces = 52735243;getNetworkInterfacesBytes in interface InstancesSetSecurityPolicyRequestOrBuilderindex - The index of the value to return.public InstancesSetSecurityPolicyRequest.Builder setNetworkInterfaces(int index, String value)
The network interfaces that the security policy will be applied to. Network interfaces use the nicN naming format. You can only set a security policy for network interfaces with an access config.
repeated string network_interfaces = 52735243;index - The index to set the value at.value - The networkInterfaces to set.public InstancesSetSecurityPolicyRequest.Builder addNetworkInterfaces(String value)
The network interfaces that the security policy will be applied to. Network interfaces use the nicN naming format. You can only set a security policy for network interfaces with an access config.
repeated string network_interfaces = 52735243;value - The networkInterfaces to add.public InstancesSetSecurityPolicyRequest.Builder addAllNetworkInterfaces(Iterable<String> values)
The network interfaces that the security policy will be applied to. Network interfaces use the nicN naming format. You can only set a security policy for network interfaces with an access config.
repeated string network_interfaces = 52735243;values - The networkInterfaces to add.public InstancesSetSecurityPolicyRequest.Builder clearNetworkInterfaces()
The network interfaces that the security policy will be applied to. Network interfaces use the nicN naming format. You can only set a security policy for network interfaces with an access config.
repeated string network_interfaces = 52735243;public InstancesSetSecurityPolicyRequest.Builder addNetworkInterfacesBytes(com.google.protobuf.ByteString value)
The network interfaces that the security policy will be applied to. Network interfaces use the nicN naming format. You can only set a security policy for network interfaces with an access config.
repeated string network_interfaces = 52735243;value - The bytes of the networkInterfaces to add.public boolean hasSecurityPolicy()
A full or partial URL to a security policy to add to this instance. If this field is set to an empty string it will remove the associated security policy.
optional string security_policy = 171082513;hasSecurityPolicy in interface InstancesSetSecurityPolicyRequestOrBuilderpublic String getSecurityPolicy()
A full or partial URL to a security policy to add to this instance. If this field is set to an empty string it will remove the associated security policy.
optional string security_policy = 171082513;getSecurityPolicy in interface InstancesSetSecurityPolicyRequestOrBuilderpublic com.google.protobuf.ByteString getSecurityPolicyBytes()
A full or partial URL to a security policy to add to this instance. If this field is set to an empty string it will remove the associated security policy.
optional string security_policy = 171082513;getSecurityPolicyBytes in interface InstancesSetSecurityPolicyRequestOrBuilderpublic InstancesSetSecurityPolicyRequest.Builder setSecurityPolicy(String value)
A full or partial URL to a security policy to add to this instance. If this field is set to an empty string it will remove the associated security policy.
optional string security_policy = 171082513;value - The securityPolicy to set.public InstancesSetSecurityPolicyRequest.Builder clearSecurityPolicy()
A full or partial URL to a security policy to add to this instance. If this field is set to an empty string it will remove the associated security policy.
optional string security_policy = 171082513;public InstancesSetSecurityPolicyRequest.Builder setSecurityPolicyBytes(com.google.protobuf.ByteString value)
A full or partial URL to a security policy to add to this instance. If this field is set to an empty string it will remove the associated security policy.
optional string security_policy = 171082513;value - The bytes for securityPolicy to set.public final InstancesSetSecurityPolicyRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<InstancesSetSecurityPolicyRequest.Builder>public final InstancesSetSecurityPolicyRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<InstancesSetSecurityPolicyRequest.Builder>Copyright © 2025 Google LLC. All rights reserved.