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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<InstancesSetSecurityPolicyRequest.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<InstancesSetSecurityPolicyRequest.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<InstancesSetSecurityPolicyRequest.Builder>
    • getDefaultInstanceForType

      public InstancesSetSecurityPolicyRequest getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public InstancesSetSecurityPolicyRequest buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public InstancesSetSecurityPolicyRequest.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<InstancesSetSecurityPolicyRequest.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.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:
      getNetworkInterfacesList in interface InstancesSetSecurityPolicyRequestOrBuilder
      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:
      getNetworkInterfacesCount in interface InstancesSetSecurityPolicyRequestOrBuilder
      Returns:
      The count of networkInterfaces.
    • getNetworkInterfaces

      public 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;
      Specified by:
      getNetworkInterfaces in interface InstancesSetSecurityPolicyRequestOrBuilder
      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:
      getNetworkInterfacesBytes in interface InstancesSetSecurityPolicyRequestOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the networkInterfaces at the given index.
    • setNetworkInterfaces

      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;
      Parameters:
      index - The index to set the value at.
      value - The networkInterfaces to set.
      Returns:
      This builder for chaining.
    • addNetworkInterfaces

      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;
      Parameters:
      value - The networkInterfaces to add.
      Returns:
      This builder for chaining.
    • addAllNetworkInterfaces

      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;
      Parameters:
      values - The networkInterfaces to add.
      Returns:
      This builder for chaining.
    • clearNetworkInterfaces

      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;
      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:
      hasSecurityPolicy in interface InstancesSetSecurityPolicyRequestOrBuilder
      Returns:
      Whether the securityPolicy field is set.
    • getSecurityPolicy

      public 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;
      Specified by:
      getSecurityPolicy in interface InstancesSetSecurityPolicyRequestOrBuilder
      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:
      getSecurityPolicyBytes in interface InstancesSetSecurityPolicyRequestOrBuilder
      Returns:
      The bytes for securityPolicy.
    • setSecurityPolicy

      public 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;
      Parameters:
      value - The securityPolicy to set.
      Returns:
      This builder for chaining.
    • clearSecurityPolicy

      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;
      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.