Class OSImage.Builder (0.27.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
TypeDescription
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
NameDescription
valuesIterable<String>

The applicableInstanceTypes to add.

Returns
TypeDescription
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
NameDescription
valuesIterable<String>

The supportedNetworkTemplates to add.

Returns
TypeDescription
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
NameDescription
valueString

The applicableInstanceTypes to add.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes of the applicableInstanceTypes to add.

Returns
TypeDescription
OSImage.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public OSImage.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The supportedNetworkTemplates to add.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes of the supportedNetworkTemplates to add.

Returns
TypeDescription
OSImage.Builder

This builder for chaining.

build()

public OSImage build()
Returns
TypeDescription
OSImage

buildPartial()

public OSImage buildPartial()
Returns
TypeDescription
OSImage

clear()

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

clearApplicableInstanceTypes()

public OSImage.Builder clearApplicableInstanceTypes()

Instance types this image is applicable to. Available types

repeated string applicable_instance_types = 4;

Returns
TypeDescription
OSImage.Builder

This builder for chaining.

clearCode()

public OSImage.Builder clearCode()

OS Image code.

string code = 2;

Returns
TypeDescription
OSImage.Builder

This builder for chaining.

clearDescription()

public OSImage.Builder clearDescription()

OS Image description.

string description = 3;

Returns
TypeDescription
OSImage.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public OSImage.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
OSImage.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public OSImage.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
OSImage.Builder

This builder for chaining.

clone()

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

The index of the element to return.

Returns
TypeDescription
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
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ProtocolStringList

A list containing the applicableInstanceTypes.

getCode()

public String getCode()

OS Image code.

string code = 2;

Returns
TypeDescription
String

The code.

getCodeBytes()

public ByteString getCodeBytes()

OS Image code.

string code = 2;

Returns
TypeDescription
ByteString

The bytes for code.

getDefaultInstanceForType()

public OSImage getDefaultInstanceForType()
Returns
TypeDescription
OSImage

getDescription()

public String getDescription()

OS Image description.

string description = 3;

Returns
TypeDescription
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

OS Image description.

string description = 3;

Returns
TypeDescription
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getName()

public String getName()

Output only. OS Image's unique name.

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

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Output only. OS Image's unique name.

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

Returns
TypeDescription
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
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ProtocolStringList

A list containing the supportedNetworkTemplates.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(OSImage other)

public OSImage.Builder mergeFrom(OSImage other)
Parameter
NameDescription
otherOSImage
Returns
TypeDescription
OSImage.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

The index to set the value at.

valueString

The applicableInstanceTypes to set.

Returns
TypeDescription
OSImage.Builder

This builder for chaining.

setCode(String value)

public OSImage.Builder setCode(String value)

OS Image code.

string code = 2;

Parameter
NameDescription
valueString

The code to set.

Returns
TypeDescription
OSImage.Builder

This builder for chaining.

setCodeBytes(ByteString value)

public OSImage.Builder setCodeBytes(ByteString value)

OS Image code.

string code = 2;

Parameter
NameDescription
valueByteString

The bytes for code to set.

Returns
TypeDescription
OSImage.Builder

This builder for chaining.

setDescription(String value)

public OSImage.Builder setDescription(String value)

OS Image description.

string description = 3;

Parameter
NameDescription
valueString

The description to set.

Returns
TypeDescription
OSImage.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public OSImage.Builder setDescriptionBytes(ByteString value)

OS Image description.

string description = 3;

Parameter
NameDescription
valueByteString

The bytes for description to set.

Returns
TypeDescription
OSImage.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public OSImage.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The name to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
indexint

The index to set the value at.

valueString

The supportedNetworkTemplates to set.

Returns
TypeDescription
OSImage.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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