Class Screenshot (1.44.0)

public final class Screenshot extends GeneratedMessageV3 implements ScreenshotOrBuilder

An instance's screenshot.

Protobuf type google.cloud.compute.v1.Screenshot

Implements

ScreenshotOrBuilder

Static Fields

CONTENTS_FIELD_NUMBER

public static final int CONTENTS_FIELD_NUMBER
Field Value
TypeDescription
int

KIND_FIELD_NUMBER

public static final int KIND_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Screenshot getDefaultInstance()
Returns
TypeDescription
Screenshot

getDescriptor()

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

newBuilder()

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

newBuilder(Screenshot prototype)

public static Screenshot.Builder newBuilder(Screenshot prototype)
Parameter
NameDescription
prototypeScreenshot
Returns
TypeDescription
Screenshot.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getContents()

public String getContents()

[Output Only] The Base64-encoded screenshot data.

optional string contents = 506419994;

Returns
TypeDescription
String

The contents.

getContentsBytes()

public ByteString getContentsBytes()

[Output Only] The Base64-encoded screenshot data.

optional string contents = 506419994;

Returns
TypeDescription
ByteString

The bytes for contents.

getDefaultInstanceForType()

public Screenshot getDefaultInstanceForType()
Returns
TypeDescription
Screenshot

getKind()

public String getKind()

[Output Only] Type of the resource. Always compute#screenshot for the screenshots.

optional string kind = 3292052;

Returns
TypeDescription
String

The kind.

getKindBytes()

public ByteString getKindBytes()

[Output Only] Type of the resource. Always compute#screenshot for the screenshots.

optional string kind = 3292052;

Returns
TypeDescription
ByteString

The bytes for kind.

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hasContents()

public boolean hasContents()

[Output Only] The Base64-encoded screenshot data.

optional string contents = 506419994;

Returns
TypeDescription
boolean

Whether the contents field is set.

hasKind()

public boolean hasKind()

[Output Only] Type of the resource. Always compute#screenshot for the screenshots.

optional string kind = 3292052;

Returns
TypeDescription
boolean

Whether the kind 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 Screenshot.Builder newBuilderForType()
Returns
TypeDescription
Screenshot.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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