Class Reference (2.43.0)

public final class Reference extends GeneratedMessageV3 implements ReferenceOrBuilder

Additional Links

Protobuf type google.cloud.securitycenter.v1.Reference

Implements

ReferenceOrBuilder

Static Fields

SOURCE_FIELD_NUMBER

public static final int SOURCE_FIELD_NUMBER
Field Value
TypeDescription
int

URI_FIELD_NUMBER

public static final int URI_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Reference getDefaultInstance()
Returns
TypeDescription
Reference

getDescriptor()

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

newBuilder()

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

newBuilder(Reference prototype)

public static Reference.Builder newBuilder(Reference prototype)
Parameter
NameDescription
prototypeReference
Returns
TypeDescription
Reference.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public Reference getDefaultInstanceForType()
Returns
TypeDescription
Reference

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getSource()

public String getSource()

Source of the reference e.g. NVD

string source = 1;

Returns
TypeDescription
String

The source.

getSourceBytes()

public ByteString getSourceBytes()

Source of the reference e.g. NVD

string source = 1;

Returns
TypeDescription
ByteString

The bytes for source.

getUri()

public String getUri()

Uri for the mentioned source e.g. https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-34527.

string uri = 2;

Returns
TypeDescription
String

The uri.

getUriBytes()

public ByteString getUriBytes()

Uri for the mentioned source e.g. https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-34527.

string uri = 2;

Returns
TypeDescription
ByteString

The bytes for uri.

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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