Class InstancesSetSecurityPolicyRequest (1.50.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
TypeDescription
int

SECURITY_POLICY_FIELD_NUMBER

public static final int SECURITY_POLICY_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static InstancesSetSecurityPolicyRequest getDefaultInstance()
Returns
TypeDescription
InstancesSetSecurityPolicyRequest

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static InstancesSetSecurityPolicyRequest.Builder newBuilder()
Returns
TypeDescription
InstancesSetSecurityPolicyRequest.Builder

newBuilder(InstancesSetSecurityPolicyRequest prototype)

public static InstancesSetSecurityPolicyRequest.Builder newBuilder(InstancesSetSecurityPolicyRequest prototype)
Parameter
NameDescription
prototypeInstancesSetSecurityPolicyRequest
Returns
TypeDescription
InstancesSetSecurityPolicyRequest.Builder

parseDelimitedFrom(InputStream input)

public static InstancesSetSecurityPolicyRequest parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
InstancesSetSecurityPolicyRequest
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static InstancesSetSecurityPolicyRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
InstancesSetSecurityPolicyRequest
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static InstancesSetSecurityPolicyRequest parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
InstancesSetSecurityPolicyRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static InstancesSetSecurityPolicyRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
InstancesSetSecurityPolicyRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static InstancesSetSecurityPolicyRequest parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
InstancesSetSecurityPolicyRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static InstancesSetSecurityPolicyRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
InstancesSetSecurityPolicyRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static InstancesSetSecurityPolicyRequest parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
InstancesSetSecurityPolicyRequest
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static InstancesSetSecurityPolicyRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
InstancesSetSecurityPolicyRequest
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static InstancesSetSecurityPolicyRequest parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
InstancesSetSecurityPolicyRequest
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static InstancesSetSecurityPolicyRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
InstancesSetSecurityPolicyRequest
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static InstancesSetSecurityPolicyRequest parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
InstancesSetSecurityPolicyRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static InstancesSetSecurityPolicyRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
InstancesSetSecurityPolicyRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<InstancesSetSecurityPolicyRequest> parser()
Returns
TypeDescription
Parser<InstancesSetSecurityPolicyRequest>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public InstancesSetSecurityPolicyRequest getDefaultInstanceForType()
Returns
TypeDescription
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
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ProtocolStringList

A list containing the networkInterfaces.

getParserForType()

public Parser<InstancesSetSecurityPolicyRequest> getParserForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for securityPolicy.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
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
TypeDescription
boolean

Whether the securityPolicy field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public InstancesSetSecurityPolicyRequest.Builder newBuilderForType()
Returns
TypeDescription
InstancesSetSecurityPolicyRequest.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected InstancesSetSecurityPolicyRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
InstancesSetSecurityPolicyRequest.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public InstancesSetSecurityPolicyRequest.Builder toBuilder()
Returns
TypeDescription
InstancesSetSecurityPolicyRequest.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException