Package com.google.cloud.compute.v1
Class InstancesSetSecurityPolicyRequest.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<InstancesSetSecurityPolicyRequest.Builder>
com.google.cloud.compute.v1.InstancesSetSecurityPolicyRequest.Builder
- All Implemented Interfaces:
InstancesSetSecurityPolicyRequestOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- InstancesSetSecurityPolicyRequest
public static final class InstancesSetSecurityPolicyRequest.Builder
extends com.google.protobuf.GeneratedMessage.Builder<InstancesSetSecurityPolicyRequest.Builder>
implements InstancesSetSecurityPolicyRequestOrBuilder
Protobuf type
google.cloud.compute.v1.InstancesSetSecurityPolicyRequest-
Method Summary
Modifier and TypeMethodDescriptionaddAllNetworkInterfaces(Iterable<String> values) The network interfaces that the security policy will be applied to.addNetworkInterfaces(String value) The network interfaces that the security policy will be applied to.addNetworkInterfacesBytes(com.google.protobuf.ByteString value) The network interfaces that the security policy will be applied to.build()clear()The network interfaces that the security policy will be applied to.A full or partial URL to a security policy to add to this instance.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetNetworkInterfaces(int index) The network interfaces that the security policy will be applied to.com.google.protobuf.ByteStringgetNetworkInterfacesBytes(int index) The network interfaces that the security policy will be applied to.intThe network interfaces that the security policy will be applied to.com.google.protobuf.ProtocolStringListThe network interfaces that the security policy will be applied to.A full or partial URL to a security policy to add to this instance.com.google.protobuf.ByteStringA full or partial URL to a security policy to add to this instance.booleanA full or partial URL to a security policy to add to this instance.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setNetworkInterfaces(int index, String value) The network interfaces that the security policy will be applied to.setSecurityPolicy(String value) A full or partial URL to a security policy to add to this instance.setSecurityPolicyBytes(com.google.protobuf.ByteString value) A full or partial URL to a security policy to add to this instance.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<InstancesSetSecurityPolicyRequest.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<InstancesSetSecurityPolicyRequest.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<InstancesSetSecurityPolicyRequest.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<InstancesSetSecurityPolicyRequest.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<InstancesSetSecurityPolicyRequest.Builder>
-
mergeFrom
public InstancesSetSecurityPolicyRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<InstancesSetSecurityPolicyRequest.Builder>- Throws:
IOException
-
getNetworkInterfacesList
public 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;- Specified by:
getNetworkInterfacesListin interfaceInstancesSetSecurityPolicyRequestOrBuilder- Returns:
- A list containing the networkInterfaces.
-
getNetworkInterfacesCount
public 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;- Specified by:
getNetworkInterfacesCountin interfaceInstancesSetSecurityPolicyRequestOrBuilder- Returns:
- The count of networkInterfaces.
-
getNetworkInterfaces
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;- Specified by:
getNetworkInterfacesin interfaceInstancesSetSecurityPolicyRequestOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The networkInterfaces at the given index.
-
getNetworkInterfacesBytes
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;- Specified by:
getNetworkInterfacesBytesin interfaceInstancesSetSecurityPolicyRequestOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the networkInterfaces at the given index.
-
setNetworkInterfaces
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;- Parameters:
index- The index to set the value at.value- The networkInterfaces to set.- Returns:
- This builder for chaining.
-
addNetworkInterfaces
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;- Parameters:
value- The networkInterfaces to add.- Returns:
- This builder for chaining.
-
addAllNetworkInterfaces
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;- Parameters:
values- The networkInterfaces to add.- Returns:
- This builder for chaining.
-
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;- Returns:
- This builder for chaining.
-
addNetworkInterfacesBytes
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;- Parameters:
value- The bytes of the networkInterfaces to add.- Returns:
- This builder for chaining.
-
hasSecurityPolicy
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;- Specified by:
hasSecurityPolicyin interfaceInstancesSetSecurityPolicyRequestOrBuilder- Returns:
- Whether the securityPolicy field is set.
-
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;- Specified by:
getSecurityPolicyin interfaceInstancesSetSecurityPolicyRequestOrBuilder- Returns:
- The securityPolicy.
-
getSecurityPolicyBytes
public 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;- Specified by:
getSecurityPolicyBytesin interfaceInstancesSetSecurityPolicyRequestOrBuilder- Returns:
- The bytes for securityPolicy.
-
setSecurityPolicy
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;- Parameters:
value- The securityPolicy to set.- Returns:
- This builder for chaining.
-
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;- Returns:
- This builder for chaining.
-
setSecurityPolicyBytes
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;- Parameters:
value- The bytes for securityPolicy to set.- Returns:
- This builder for chaining.
-