Class ViolatingResource (2.29.0)

public final class ViolatingResource extends GeneratedMessageV3 implements ViolatingResourceOrBuilder

Information regarding any resource causing the vulnerability such as JavaScript sources, image, audio files, etc.

Protobuf type google.cloud.websecurityscanner.v1alpha.ViolatingResource

Static Fields

CONTENT_TYPE_FIELD_NUMBER

public static final int CONTENT_TYPE_FIELD_NUMBER
Field Value
TypeDescription
int

RESOURCE_URL_FIELD_NUMBER

public static final int RESOURCE_URL_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static ViolatingResource getDefaultInstance()
Returns
TypeDescription
ViolatingResource

getDescriptor()

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

newBuilder()

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

newBuilder(ViolatingResource prototype)

public static ViolatingResource.Builder newBuilder(ViolatingResource prototype)
Parameter
NameDescription
prototypeViolatingResource
Returns
TypeDescription
ViolatingResource.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getContentType()

public String getContentType()

The MIME type of this resource.

string content_type = 1;

Returns
TypeDescription
String

The contentType.

getContentTypeBytes()

public ByteString getContentTypeBytes()

The MIME type of this resource.

string content_type = 1;

Returns
TypeDescription
ByteString

The bytes for contentType.

getDefaultInstanceForType()

public ViolatingResource getDefaultInstanceForType()
Returns
TypeDescription
ViolatingResource

getParserForType()

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

getResourceUrl()

public String getResourceUrl()

URL of this violating resource.

string resource_url = 2;

Returns
TypeDescription
String

The resourceUrl.

getResourceUrlBytes()

public ByteString getResourceUrlBytes()

URL of this violating resource.

string resource_url = 2;

Returns
TypeDescription
ByteString

The bytes for resourceUrl.

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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