Class DisplayDevice.Builder (1.22.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public DisplayDevice build()
Returns
TypeDescription
DisplayDevice

buildPartial()

public DisplayDevice buildPartial()
Returns
TypeDescription
DisplayDevice

clear()

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

clearEnableDisplay()

public DisplayDevice.Builder clearEnableDisplay()

Defines whether the instance has Display enabled.

optional bool enable_display = 14266886;

Returns
TypeDescription
DisplayDevice.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public DisplayDevice.Builder clone()
Returns
TypeDescription
DisplayDevice.Builder
Overrides

getDefaultInstanceForType()

public DisplayDevice getDefaultInstanceForType()
Returns
TypeDescription
DisplayDevice

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getEnableDisplay()

public boolean getEnableDisplay()

Defines whether the instance has Display enabled.

optional bool enable_display = 14266886;

Returns
TypeDescription
boolean

The enableDisplay.

hasEnableDisplay()

public boolean hasEnableDisplay()

Defines whether the instance has Display enabled.

optional bool enable_display = 14266886;

Returns
TypeDescription
boolean

Whether the enableDisplay field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(DisplayDevice other)

public DisplayDevice.Builder mergeFrom(DisplayDevice other)
Parameter
NameDescription
otherDisplayDevice
Returns
TypeDescription
DisplayDevice.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DisplayDevice.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueboolean

The enableDisplay to set.

Returns
TypeDescription
DisplayDevice.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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