Class ListOSImagesResponse.Builder (0.35.0)

public static final class ListOSImagesResponse.Builder extends GeneratedMessageV3.Builder<ListOSImagesResponse.Builder> implements ListOSImagesResponseOrBuilder

Request for getting all available OS images.

Protobuf type google.cloud.baremetalsolution.v2.ListOSImagesResponse

Static Methods

getDescriptor()

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

Methods

addAllOsImages(Iterable<? extends OSImage> values)

public ListOSImagesResponse.Builder addAllOsImages(Iterable<? extends OSImage> values)

The OS images available.

repeated .google.cloud.baremetalsolution.v2.OSImage os_images = 1;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.baremetalsolution.v2.OSImage>
Returns
TypeDescription
ListOSImagesResponse.Builder

addOsImages(OSImage value)

public ListOSImagesResponse.Builder addOsImages(OSImage value)

The OS images available.

repeated .google.cloud.baremetalsolution.v2.OSImage os_images = 1;

Parameter
NameDescription
valueOSImage
Returns
TypeDescription
ListOSImagesResponse.Builder

addOsImages(OSImage.Builder builderForValue)

public ListOSImagesResponse.Builder addOsImages(OSImage.Builder builderForValue)

The OS images available.

repeated .google.cloud.baremetalsolution.v2.OSImage os_images = 1;

Parameter
NameDescription
builderForValueOSImage.Builder
Returns
TypeDescription
ListOSImagesResponse.Builder

addOsImages(int index, OSImage value)

public ListOSImagesResponse.Builder addOsImages(int index, OSImage value)

The OS images available.

repeated .google.cloud.baremetalsolution.v2.OSImage os_images = 1;

Parameters
NameDescription
indexint
valueOSImage
Returns
TypeDescription
ListOSImagesResponse.Builder

addOsImages(int index, OSImage.Builder builderForValue)

public ListOSImagesResponse.Builder addOsImages(int index, OSImage.Builder builderForValue)

The OS images available.

repeated .google.cloud.baremetalsolution.v2.OSImage os_images = 1;

Parameters
NameDescription
indexint
builderForValueOSImage.Builder
Returns
TypeDescription
ListOSImagesResponse.Builder

addOsImagesBuilder()

public OSImage.Builder addOsImagesBuilder()

The OS images available.

repeated .google.cloud.baremetalsolution.v2.OSImage os_images = 1;

Returns
TypeDescription
OSImage.Builder

addOsImagesBuilder(int index)

public OSImage.Builder addOsImagesBuilder(int index)

The OS images available.

repeated .google.cloud.baremetalsolution.v2.OSImage os_images = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
OSImage.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListOSImagesResponse build()
Returns
TypeDescription
ListOSImagesResponse

buildPartial()

public ListOSImagesResponse buildPartial()
Returns
TypeDescription
ListOSImagesResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearNextPageToken()

public ListOSImagesResponse.Builder clearNextPageToken()

Token to retrieve the next page of results, or empty if there are no more results in the list.

string next_page_token = 2;

Returns
TypeDescription
ListOSImagesResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearOsImages()

public ListOSImagesResponse.Builder clearOsImages()

The OS images available.

repeated .google.cloud.baremetalsolution.v2.OSImage os_images = 1;

Returns
TypeDescription
ListOSImagesResponse.Builder

clone()

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

getDefaultInstanceForType()

public ListOSImagesResponse getDefaultInstanceForType()
Returns
TypeDescription
ListOSImagesResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getNextPageToken()

public String getNextPageToken()

Token to retrieve the next page of results, or empty if there are no more results in the list.

string next_page_token = 2;

Returns
TypeDescription
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

Token to retrieve the next page of results, or empty if there are no more results in the list.

string next_page_token = 2;

Returns
TypeDescription
ByteString

The bytes for nextPageToken.

getOsImages(int index)

public OSImage getOsImages(int index)

The OS images available.

repeated .google.cloud.baremetalsolution.v2.OSImage os_images = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
OSImage

getOsImagesBuilder(int index)

public OSImage.Builder getOsImagesBuilder(int index)

The OS images available.

repeated .google.cloud.baremetalsolution.v2.OSImage os_images = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
OSImage.Builder

getOsImagesBuilderList()

public List<OSImage.Builder> getOsImagesBuilderList()

The OS images available.

repeated .google.cloud.baremetalsolution.v2.OSImage os_images = 1;

Returns
TypeDescription
List<Builder>

getOsImagesCount()

public int getOsImagesCount()

The OS images available.

repeated .google.cloud.baremetalsolution.v2.OSImage os_images = 1;

Returns
TypeDescription
int

getOsImagesList()

public List<OSImage> getOsImagesList()

The OS images available.

repeated .google.cloud.baremetalsolution.v2.OSImage os_images = 1;

Returns
TypeDescription
List<OSImage>

getOsImagesOrBuilder(int index)

public OSImageOrBuilder getOsImagesOrBuilder(int index)

The OS images available.

repeated .google.cloud.baremetalsolution.v2.OSImage os_images = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
OSImageOrBuilder

getOsImagesOrBuilderList()

public List<? extends OSImageOrBuilder> getOsImagesOrBuilderList()

The OS images available.

repeated .google.cloud.baremetalsolution.v2.OSImage os_images = 1;

Returns
TypeDescription
List<? extends com.google.cloud.baremetalsolution.v2.OSImageOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ListOSImagesResponse other)

public ListOSImagesResponse.Builder mergeFrom(ListOSImagesResponse other)
Parameter
NameDescription
otherListOSImagesResponse
Returns
TypeDescription
ListOSImagesResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeOsImages(int index)

public ListOSImagesResponse.Builder removeOsImages(int index)

The OS images available.

repeated .google.cloud.baremetalsolution.v2.OSImage os_images = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
ListOSImagesResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNextPageToken(String value)

public ListOSImagesResponse.Builder setNextPageToken(String value)

Token to retrieve the next page of results, or empty if there are no more results in the list.

string next_page_token = 2;

Parameter
NameDescription
valueString

The nextPageToken to set.

Returns
TypeDescription
ListOSImagesResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListOSImagesResponse.Builder setNextPageTokenBytes(ByteString value)

Token to retrieve the next page of results, or empty if there are no more results in the list.

string next_page_token = 2;

Parameter
NameDescription
valueByteString

The bytes for nextPageToken to set.

Returns
TypeDescription
ListOSImagesResponse.Builder

This builder for chaining.

setOsImages(int index, OSImage value)

public ListOSImagesResponse.Builder setOsImages(int index, OSImage value)

The OS images available.

repeated .google.cloud.baremetalsolution.v2.OSImage os_images = 1;

Parameters
NameDescription
indexint
valueOSImage
Returns
TypeDescription
ListOSImagesResponse.Builder

setOsImages(int index, OSImage.Builder builderForValue)

public ListOSImagesResponse.Builder setOsImages(int index, OSImage.Builder builderForValue)

The OS images available.

repeated .google.cloud.baremetalsolution.v2.OSImage os_images = 1;

Parameters
NameDescription
indexint
builderForValueOSImage.Builder
Returns
TypeDescription
ListOSImagesResponse.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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