Class Screenshot.Builder (1.47.0)

public static final class Screenshot.Builder extends GeneratedMessageV3.Builder<Screenshot.Builder> implements ScreenshotOrBuilder

An instance's screenshot.

Protobuf type google.cloud.compute.v1.Screenshot

Implements

ScreenshotOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Screenshot.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Screenshot.Builder
Overrides

build()

public Screenshot build()
Returns
TypeDescription
Screenshot

buildPartial()

public Screenshot buildPartial()
Returns
TypeDescription
Screenshot

clear()

public Screenshot.Builder clear()
Returns
TypeDescription
Screenshot.Builder
Overrides

clearContents()

public Screenshot.Builder clearContents()

[Output Only] The Base64-encoded screenshot data.

optional string contents = 506419994;

Returns
TypeDescription
Screenshot.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Screenshot.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Screenshot.Builder
Overrides

clearKind()

public Screenshot.Builder clearKind()

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

optional string kind = 3292052;

Returns
TypeDescription
Screenshot.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Screenshot.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Screenshot.Builder
Overrides

clone()

public Screenshot.Builder clone()
Returns
TypeDescription
Screenshot.Builder
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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

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.

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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Screenshot other)

public Screenshot.Builder mergeFrom(Screenshot other)
Parameter
NameDescription
otherScreenshot
Returns
TypeDescription
Screenshot.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Screenshot.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Screenshot.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Screenshot.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Screenshot.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Screenshot.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Screenshot.Builder
Overrides

setContents(String value)

public Screenshot.Builder setContents(String value)

[Output Only] The Base64-encoded screenshot data.

optional string contents = 506419994;

Parameter
NameDescription
valueString

The contents to set.

Returns
TypeDescription
Screenshot.Builder

This builder for chaining.

setContentsBytes(ByteString value)

public Screenshot.Builder setContentsBytes(ByteString value)

[Output Only] The Base64-encoded screenshot data.

optional string contents = 506419994;

Parameter
NameDescription
valueByteString

The bytes for contents to set.

Returns
TypeDescription
Screenshot.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public Screenshot.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Screenshot.Builder
Overrides

setKind(String value)

public Screenshot.Builder setKind(String value)

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

optional string kind = 3292052;

Parameter
NameDescription
valueString

The kind to set.

Returns
TypeDescription
Screenshot.Builder

This builder for chaining.

setKindBytes(ByteString value)

public Screenshot.Builder setKindBytes(ByteString value)

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

optional string kind = 3292052;

Parameter
NameDescription
valueByteString

The bytes for kind to set.

Returns
TypeDescription
Screenshot.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Screenshot.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Screenshot.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Screenshot.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Screenshot.Builder
Overrides