Class InstancesSetSecurityPolicyRequest

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.compute.v1.InstancesSetSecurityPolicyRequest
All Implemented Interfaces:
InstancesSetSecurityPolicyRequestOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class InstancesSetSecurityPolicyRequest extends com.google.protobuf.GeneratedMessage implements InstancesSetSecurityPolicyRequestOrBuilder
 
Protobuf type google.cloud.compute.v1.InstancesSetSecurityPolicyRequest
See Also:
  • Field Details

    • NETWORK_INTERFACES_FIELD_NUMBER

      public static final int NETWORK_INTERFACES_FIELD_NUMBER
      See Also:
    • SECURITY_POLICY_FIELD_NUMBER

      public static final int SECURITY_POLICY_FIELD_NUMBER
      See Also:
  • 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
    • 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.
    • 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.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static InstancesSetSecurityPolicyRequest parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static InstancesSetSecurityPolicyRequest parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static InstancesSetSecurityPolicyRequest parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static InstancesSetSecurityPolicyRequest parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static InstancesSetSecurityPolicyRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static InstancesSetSecurityPolicyRequest parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static InstancesSetSecurityPolicyRequest parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static InstancesSetSecurityPolicyRequest parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static InstancesSetSecurityPolicyRequest parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static InstancesSetSecurityPolicyRequest parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static InstancesSetSecurityPolicyRequest parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static InstancesSetSecurityPolicyRequest parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

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

      public static InstancesSetSecurityPolicyRequest.Builder newBuilder()
    • newBuilder

    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected InstancesSetSecurityPolicyRequest.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static InstancesSetSecurityPolicyRequest getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<InstancesSetSecurityPolicyRequest> parser()
    • getParserForType

      public com.google.protobuf.Parser<InstancesSetSecurityPolicyRequest> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

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