Class InstancesSetSecurityPolicyRequest (1.55.0)

public final class InstancesSetSecurityPolicyRequest extends GeneratedMessageV3 implements InstancesSetSecurityPolicyRequestOrBuilder

Protobuf type google.cloud.compute.v1.InstancesSetSecurityPolicyRequest

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > InstancesSetSecurityPolicyRequest

Static Fields

NETWORK_INTERFACES_FIELD_NUMBER

public static final int NETWORK_INTERFACES_FIELD_NUMBER
Field Value
Type Description
int

SECURITY_POLICY_FIELD_NUMBER

public static final int SECURITY_POLICY_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static InstancesSetSecurityPolicyRequest getDefaultInstance()
Returns
Type Description
InstancesSetSecurityPolicyRequest

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static InstancesSetSecurityPolicyRequest.Builder newBuilder()
Returns
Type Description
InstancesSetSecurityPolicyRequest.Builder

newBuilder(InstancesSetSecurityPolicyRequest prototype)

public static InstancesSetSecurityPolicyRequest.Builder newBuilder(InstancesSetSecurityPolicyRequest prototype)
Parameter
Name Description
prototype InstancesSetSecurityPolicyRequest
Returns
Type Description
InstancesSetSecurityPolicyRequest.Builder

parseDelimitedFrom(InputStream input)

public static InstancesSetSecurityPolicyRequest parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
InstancesSetSecurityPolicyRequest
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static InstancesSetSecurityPolicyRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
InstancesSetSecurityPolicyRequest
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static InstancesSetSecurityPolicyRequest parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
InstancesSetSecurityPolicyRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static InstancesSetSecurityPolicyRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
InstancesSetSecurityPolicyRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static InstancesSetSecurityPolicyRequest parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
InstancesSetSecurityPolicyRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static InstancesSetSecurityPolicyRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
InstancesSetSecurityPolicyRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static InstancesSetSecurityPolicyRequest parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
InstancesSetSecurityPolicyRequest
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static InstancesSetSecurityPolicyRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
InstancesSetSecurityPolicyRequest
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static InstancesSetSecurityPolicyRequest parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
InstancesSetSecurityPolicyRequest
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static InstancesSetSecurityPolicyRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
InstancesSetSecurityPolicyRequest
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static InstancesSetSecurityPolicyRequest parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
InstancesSetSecurityPolicyRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static InstancesSetSecurityPolicyRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
InstancesSetSecurityPolicyRequest
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<InstancesSetSecurityPolicyRequest> parser()
Returns
Type Description
Parser<InstancesSetSecurityPolicyRequest>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public InstancesSetSecurityPolicyRequest getDefaultInstanceForType()
Returns
Type Description
InstancesSetSecurityPolicyRequest

getNetworkInterfaces(int index)

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;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The networkInterfaces at the given index.

getNetworkInterfacesBytes(int index)

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

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the networkInterfaces at the given index.

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;

Returns
Type Description
int

The count of networkInterfaces.

getNetworkInterfacesList()

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

Returns
Type Description
ProtocolStringList

A list containing the networkInterfaces.

getParserForType()

public Parser<InstancesSetSecurityPolicyRequest> getParserForType()
Returns
Type Description
Parser<InstancesSetSecurityPolicyRequest>
Overrides

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;

Returns
Type Description
String

The securityPolicy.

getSecurityPolicyBytes()

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

Returns
Type Description
ByteString

The bytes for securityPolicy.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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;

Returns
Type Description
boolean

Whether the securityPolicy field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public InstancesSetSecurityPolicyRequest.Builder newBuilderForType()
Returns
Type Description
InstancesSetSecurityPolicyRequest.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected InstancesSetSecurityPolicyRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
InstancesSetSecurityPolicyRequest.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public InstancesSetSecurityPolicyRequest.Builder toBuilder()
Returns
Type Description
InstancesSetSecurityPolicyRequest.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException