Class SecurityPolicyReference (1.43.0)

public final class SecurityPolicyReference extends GeneratedMessageV3 implements SecurityPolicyReferenceOrBuilder

Protobuf type google.cloud.compute.v1.SecurityPolicyReference

Static Fields

SECURITY_POLICY_FIELD_NUMBER

public static final int SECURITY_POLICY_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static SecurityPolicyReference getDefaultInstance()
Returns
TypeDescription
SecurityPolicyReference

getDescriptor()

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

newBuilder()

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

newBuilder(SecurityPolicyReference prototype)

public static SecurityPolicyReference.Builder newBuilder(SecurityPolicyReference prototype)
Parameter
NameDescription
prototypeSecurityPolicyReference
Returns
TypeDescription
SecurityPolicyReference.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public SecurityPolicyReference getDefaultInstanceForType()
Returns
TypeDescription
SecurityPolicyReference

getParserForType()

public Parser<SecurityPolicyReference> getParserForType()
Returns
TypeDescription
Parser<SecurityPolicyReference>
Overrides

getSecurityPolicy()

public String getSecurityPolicy()

optional string security_policy = 171082513;

Returns
TypeDescription
String

The securityPolicy.

getSecurityPolicyBytes()

public ByteString getSecurityPolicyBytes()

optional string security_policy = 171082513;

Returns
TypeDescription
ByteString

The bytes for securityPolicy.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hasSecurityPolicy()

public boolean hasSecurityPolicy()

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 SecurityPolicyReference.Builder newBuilderForType()
Returns
TypeDescription
SecurityPolicyReference.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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