public final class InstancesSetSecurityPolicyRequest extends GeneratedMessageV3 implements InstancesSetSecurityPolicyRequestOrBuilder
Protobuf type google.cloud.compute.v1.InstancesSetSecurityPolicyRequest
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
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()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static InstancesSetSecurityPolicyRequest.Builder newBuilder()
newBuilder(InstancesSetSecurityPolicyRequest prototype)
public static InstancesSetSecurityPolicyRequest.Builder newBuilder(InstancesSetSecurityPolicyRequest prototype)
public static InstancesSetSecurityPolicyRequest parseDelimitedFrom(InputStream input)
public static InstancesSetSecurityPolicyRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static InstancesSetSecurityPolicyRequest parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static InstancesSetSecurityPolicyRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static InstancesSetSecurityPolicyRequest parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static InstancesSetSecurityPolicyRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static InstancesSetSecurityPolicyRequest parseFrom(CodedInputStream input)
public static InstancesSetSecurityPolicyRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static InstancesSetSecurityPolicyRequest parseFrom(InputStream input)
public static InstancesSetSecurityPolicyRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static InstancesSetSecurityPolicyRequest parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static InstancesSetSecurityPolicyRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<InstancesSetSecurityPolicyRequest> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
Overrides
getDefaultInstanceForType()
public InstancesSetSecurityPolicyRequest getDefaultInstanceForType()
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;
getParserForType()
public Parser<InstancesSetSecurityPolicyRequest> getParserForType()
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()
Returns |
Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public InstancesSetSecurityPolicyRequest.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected InstancesSetSecurityPolicyRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
toBuilder()
public InstancesSetSecurityPolicyRequest.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides