Class ListOSImagesResponse.Builder (0.45.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
Type Description
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
Name Description
values Iterable<? extends com.google.cloud.baremetalsolution.v2.OSImage>
Returns
Type Description
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
Name Description
value OSImage
Returns
Type Description
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
Name Description
builderForValue OSImage.Builder
Returns
Type Description
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
Name Description
index int
value OSImage
Returns
Type Description
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
Name Description
index int
builderForValue OSImage.Builder
Returns
Type Description
ListOSImagesResponse.Builder

addOsImagesBuilder()

public OSImage.Builder addOsImagesBuilder()

The OS images available.

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

Returns
Type Description
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
Name Description
index int
Returns
Type Description
OSImage.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListOSImagesResponse build()
Returns
Type Description
ListOSImagesResponse

buildPartial()

public ListOSImagesResponse buildPartial()
Returns
Type Description
ListOSImagesResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

public ListOSImagesResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
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
Type Description
ListOSImagesResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearOsImages()

public ListOSImagesResponse.Builder clearOsImages()

The OS images available.

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

Returns
Type Description
ListOSImagesResponse.Builder

clone()

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

getDefaultInstanceForType()

public ListOSImagesResponse getDefaultInstanceForType()
Returns
Type Description
ListOSImagesResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
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
Type Description
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
Type Description
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
Name Description
index int
Returns
Type Description
OSImage

getOsImagesBuilder(int index)

public OSImage.Builder getOsImagesBuilder(int index)

The OS images available.

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

Parameter
Name Description
index int
Returns
Type Description
OSImage.Builder

getOsImagesBuilderList()

public List<OSImage.Builder> getOsImagesBuilderList()

The OS images available.

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

Returns
Type Description
List<Builder>

getOsImagesCount()

public int getOsImagesCount()

The OS images available.

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

Returns
Type Description
int

getOsImagesList()

public List<OSImage> getOsImagesList()

The OS images available.

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

Returns
Type Description
List<OSImage>

getOsImagesOrBuilder(int index)

public OSImageOrBuilder getOsImagesOrBuilder(int index)

The OS images available.

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

Parameter
Name Description
index int
Returns
Type Description
OSImageOrBuilder

getOsImagesOrBuilderList()

public List<? extends OSImageOrBuilder> getOsImagesOrBuilderList()

The OS images available.

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

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

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ListOSImagesResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ListOSImagesResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
index int
Returns
Type Description
ListOSImagesResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ListOSImagesResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
value String

The nextPageToken to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for nextPageToken to set.

Returns
Type Description
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
Name Description
index int
value OSImage
Returns
Type Description
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
Name Description
index int
builderForValue OSImage.Builder
Returns
Type Description
ListOSImagesResponse.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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