Class Geolocation (2.35.0)

public final class Geolocation extends GeneratedMessageV3 implements GeolocationOrBuilder

Represents a geographical location for a given access.

Protobuf type google.cloud.securitycenter.v1.Geolocation

Static Fields

REGION_CODE_FIELD_NUMBER

public static final int REGION_CODE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Geolocation getDefaultInstance()
Returns
TypeDescription
Geolocation

getDescriptor()

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

newBuilder()

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

newBuilder(Geolocation prototype)

public static Geolocation.Builder newBuilder(Geolocation prototype)
Parameter
NameDescription
prototypeGeolocation
Returns
TypeDescription
Geolocation.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public Geolocation getDefaultInstanceForType()
Returns
TypeDescription
Geolocation

getParserForType()

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

getRegionCode()

public String getRegionCode()

A CLDR.

string region_code = 1;

Returns
TypeDescription
String

The regionCode.

getRegionCodeBytes()

public ByteString getRegionCodeBytes()

A CLDR.

string region_code = 1;

Returns
TypeDescription
ByteString

The bytes for regionCode.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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