Class DisplayDevice.Builder (1.56.0)

public static final class DisplayDevice.Builder extends GeneratedMessageV3.Builder<DisplayDevice.Builder> implements DisplayDeviceOrBuilder

A set of Display Device options

Protobuf type google.cloud.compute.v1.DisplayDevice

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public DisplayDevice.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
DisplayDevice.Builder
Overrides

build()

public DisplayDevice build()
Returns
Type Description
DisplayDevice

buildPartial()

public DisplayDevice buildPartial()
Returns
Type Description
DisplayDevice

clear()

public DisplayDevice.Builder clear()
Returns
Type Description
DisplayDevice.Builder
Overrides

clearEnableDisplay()

public DisplayDevice.Builder clearEnableDisplay()

Defines whether the instance has Display enabled.

optional bool enable_display = 14266886;

Returns
Type Description
DisplayDevice.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public DisplayDevice.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
DisplayDevice.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public DisplayDevice.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
DisplayDevice.Builder
Overrides

clone()

public DisplayDevice.Builder clone()
Returns
Type Description
DisplayDevice.Builder
Overrides

getDefaultInstanceForType()

public DisplayDevice getDefaultInstanceForType()
Returns
Type Description
DisplayDevice

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getEnableDisplay()

public boolean getEnableDisplay()

Defines whether the instance has Display enabled.

optional bool enable_display = 14266886;

Returns
Type Description
boolean

The enableDisplay.

hasEnableDisplay()

public boolean hasEnableDisplay()

Defines whether the instance has Display enabled.

optional bool enable_display = 14266886;

Returns
Type Description
boolean

Whether the enableDisplay field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(DisplayDevice other)

public DisplayDevice.Builder mergeFrom(DisplayDevice other)
Parameter
Name Description
other DisplayDevice
Returns
Type Description
DisplayDevice.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public DisplayDevice.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DisplayDevice.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public DisplayDevice.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
DisplayDevice.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DisplayDevice.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
DisplayDevice.Builder
Overrides

setEnableDisplay(boolean value)

public DisplayDevice.Builder setEnableDisplay(boolean value)

Defines whether the instance has Display enabled.

optional bool enable_display = 14266886;

Parameter
Name Description
value boolean

The enableDisplay to set.

Returns
Type Description
DisplayDevice.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public DisplayDevice.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
DisplayDevice.Builder
Overrides

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

public DisplayDevice.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
DisplayDevice.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final DisplayDevice.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
DisplayDevice.Builder
Overrides