Class OSImage.Builder (0.49.0)

public static final class OSImage.Builder extends GeneratedMessageV3.Builder<OSImage.Builder> implements OSImageOrBuilder

Operation System image.

Protobuf type google.cloud.baremetalsolution.v2.OSImage

Implements

OSImageOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllApplicableInstanceTypes(Iterable<String> values)

public OSImage.Builder addAllApplicableInstanceTypes(Iterable<String> values)

Instance types this image is applicable to. Available types

repeated string applicable_instance_types = 4;

Parameter
Name Description
values Iterable<String>

The applicableInstanceTypes to add.

Returns
Type Description
OSImage.Builder

This builder for chaining.

addAllSupportedNetworkTemplates(Iterable<String> values)

public OSImage.Builder addAllSupportedNetworkTemplates(Iterable<String> values)

Network templates that can be used with this OS Image.

repeated string supported_network_templates = 5;

Parameter
Name Description
values Iterable<String>

The supportedNetworkTemplates to add.

Returns
Type Description
OSImage.Builder

This builder for chaining.

addApplicableInstanceTypes(String value)

public OSImage.Builder addApplicableInstanceTypes(String value)

Instance types this image is applicable to. Available types

repeated string applicable_instance_types = 4;

Parameter
Name Description
value String

The applicableInstanceTypes to add.

Returns
Type Description
OSImage.Builder

This builder for chaining.

addApplicableInstanceTypesBytes(ByteString value)

public OSImage.Builder addApplicableInstanceTypesBytes(ByteString value)

Instance types this image is applicable to. Available types

repeated string applicable_instance_types = 4;

Parameter
Name Description
value ByteString

The bytes of the applicableInstanceTypes to add.

Returns
Type Description
OSImage.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addSupportedNetworkTemplates(String value)

public OSImage.Builder addSupportedNetworkTemplates(String value)

Network templates that can be used with this OS Image.

repeated string supported_network_templates = 5;

Parameter
Name Description
value String

The supportedNetworkTemplates to add.

Returns
Type Description
OSImage.Builder

This builder for chaining.

addSupportedNetworkTemplatesBytes(ByteString value)

public OSImage.Builder addSupportedNetworkTemplatesBytes(ByteString value)

Network templates that can be used with this OS Image.

repeated string supported_network_templates = 5;

Parameter
Name Description
value ByteString

The bytes of the supportedNetworkTemplates to add.

Returns
Type Description
OSImage.Builder

This builder for chaining.

build()

public OSImage build()
Returns
Type Description
OSImage

buildPartial()

public OSImage buildPartial()
Returns
Type Description
OSImage

clear()

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

clearApplicableInstanceTypes()

public OSImage.Builder clearApplicableInstanceTypes()

Instance types this image is applicable to. Available types

repeated string applicable_instance_types = 4;

Returns
Type Description
OSImage.Builder

This builder for chaining.

clearCode()

public OSImage.Builder clearCode()

OS Image code.

string code = 2;

Returns
Type Description
OSImage.Builder

This builder for chaining.

clearDescription()

public OSImage.Builder clearDescription()

OS Image description.

string description = 3;

Returns
Type Description
OSImage.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public OSImage.Builder clearName()

Output only. OS Image's unique name.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
OSImage.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSupportedNetworkTemplates()

public OSImage.Builder clearSupportedNetworkTemplates()

Network templates that can be used with this OS Image.

repeated string supported_network_templates = 5;

Returns
Type Description
OSImage.Builder

This builder for chaining.

clone()

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

getApplicableInstanceTypes(int index)

public String getApplicableInstanceTypes(int index)

Instance types this image is applicable to. Available types

repeated string applicable_instance_types = 4;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The applicableInstanceTypes at the given index.

getApplicableInstanceTypesBytes(int index)

public ByteString getApplicableInstanceTypesBytes(int index)

Instance types this image is applicable to. Available types

repeated string applicable_instance_types = 4;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the applicableInstanceTypes at the given index.

getApplicableInstanceTypesCount()

public int getApplicableInstanceTypesCount()

Instance types this image is applicable to. Available types

repeated string applicable_instance_types = 4;

Returns
Type Description
int

The count of applicableInstanceTypes.

getApplicableInstanceTypesList()

public ProtocolStringList getApplicableInstanceTypesList()

Instance types this image is applicable to. Available types

repeated string applicable_instance_types = 4;

Returns
Type Description
ProtocolStringList

A list containing the applicableInstanceTypes.

getCode()

public String getCode()

OS Image code.

string code = 2;

Returns
Type Description
String

The code.

getCodeBytes()

public ByteString getCodeBytes()

OS Image code.

string code = 2;

Returns
Type Description
ByteString

The bytes for code.

getDefaultInstanceForType()

public OSImage getDefaultInstanceForType()
Returns
Type Description
OSImage

getDescription()

public String getDescription()

OS Image description.

string description = 3;

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

OS Image description.

string description = 3;

Returns
Type Description
ByteString

The bytes for description.

getDescriptorForType()

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

getName()

public String getName()

Output only. OS Image's unique name.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Output only. OS Image's unique name.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for name.

getSupportedNetworkTemplates(int index)

public String getSupportedNetworkTemplates(int index)

Network templates that can be used with this OS Image.

repeated string supported_network_templates = 5;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The supportedNetworkTemplates at the given index.

getSupportedNetworkTemplatesBytes(int index)

public ByteString getSupportedNetworkTemplatesBytes(int index)

Network templates that can be used with this OS Image.

repeated string supported_network_templates = 5;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the supportedNetworkTemplates at the given index.

getSupportedNetworkTemplatesCount()

public int getSupportedNetworkTemplatesCount()

Network templates that can be used with this OS Image.

repeated string supported_network_templates = 5;

Returns
Type Description
int

The count of supportedNetworkTemplates.

getSupportedNetworkTemplatesList()

public ProtocolStringList getSupportedNetworkTemplatesList()

Network templates that can be used with this OS Image.

repeated string supported_network_templates = 5;

Returns
Type Description
ProtocolStringList

A list containing the supportedNetworkTemplates.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(OSImage other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setApplicableInstanceTypes(int index, String value)

public OSImage.Builder setApplicableInstanceTypes(int index, String value)

Instance types this image is applicable to. Available types

repeated string applicable_instance_types = 4;

Parameters
Name Description
index int

The index to set the value at.

value String

The applicableInstanceTypes to set.

Returns
Type Description
OSImage.Builder

This builder for chaining.

setCode(String value)

public OSImage.Builder setCode(String value)

OS Image code.

string code = 2;

Parameter
Name Description
value String

The code to set.

Returns
Type Description
OSImage.Builder

This builder for chaining.

setCodeBytes(ByteString value)

public OSImage.Builder setCodeBytes(ByteString value)

OS Image code.

string code = 2;

Parameter
Name Description
value ByteString

The bytes for code to set.

Returns
Type Description
OSImage.Builder

This builder for chaining.

setDescription(String value)

public OSImage.Builder setDescription(String value)

OS Image description.

string description = 3;

Parameter
Name Description
value String

The description to set.

Returns
Type Description
OSImage.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public OSImage.Builder setDescriptionBytes(ByteString value)

OS Image description.

string description = 3;

Parameter
Name Description
value ByteString

The bytes for description to set.

Returns
Type Description
OSImage.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public OSImage.Builder setName(String value)

Output only. OS Image's unique name.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
OSImage.Builder

This builder for chaining.

setNameBytes(ByteString value)

public OSImage.Builder setNameBytes(ByteString value)

Output only. OS Image's unique name.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
OSImage.Builder

This builder for chaining.

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

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

setSupportedNetworkTemplates(int index, String value)

public OSImage.Builder setSupportedNetworkTemplates(int index, String value)

Network templates that can be used with this OS Image.

repeated string supported_network_templates = 5;

Parameters
Name Description
index int

The index to set the value at.

value String

The supportedNetworkTemplates to set.

Returns
Type Description
OSImage.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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