Class InstanceList.Builder (1.58.0)

public static final class InstanceList.Builder extends GeneratedMessageV3.Builder<InstanceList.Builder> implements InstanceListOrBuilder

Contains a list of instances.

Protobuf type google.cloud.compute.v1.InstanceList

Static Methods

getDescriptor()

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

Methods

addAllItems(Iterable<? extends Instance> values)

public InstanceList.Builder addAllItems(Iterable<? extends Instance> values)

A list of Instance resources.

repeated .google.cloud.compute.v1.Instance items = 100526016;

Parameter
Name Description
values Iterable<? extends com.google.cloud.compute.v1.Instance>
Returns
Type Description
InstanceList.Builder

addItems(Instance value)

public InstanceList.Builder addItems(Instance value)

A list of Instance resources.

repeated .google.cloud.compute.v1.Instance items = 100526016;

Parameter
Name Description
value Instance
Returns
Type Description
InstanceList.Builder

addItems(Instance.Builder builderForValue)

public InstanceList.Builder addItems(Instance.Builder builderForValue)

A list of Instance resources.

repeated .google.cloud.compute.v1.Instance items = 100526016;

Parameter
Name Description
builderForValue Instance.Builder
Returns
Type Description
InstanceList.Builder

addItems(int index, Instance value)

public InstanceList.Builder addItems(int index, Instance value)

A list of Instance resources.

repeated .google.cloud.compute.v1.Instance items = 100526016;

Parameters
Name Description
index int
value Instance
Returns
Type Description
InstanceList.Builder

addItems(int index, Instance.Builder builderForValue)

public InstanceList.Builder addItems(int index, Instance.Builder builderForValue)

A list of Instance resources.

repeated .google.cloud.compute.v1.Instance items = 100526016;

Parameters
Name Description
index int
builderForValue Instance.Builder
Returns
Type Description
InstanceList.Builder

addItemsBuilder()

public Instance.Builder addItemsBuilder()

A list of Instance resources.

repeated .google.cloud.compute.v1.Instance items = 100526016;

Returns
Type Description
Instance.Builder

addItemsBuilder(int index)

public Instance.Builder addItemsBuilder(int index)

A list of Instance resources.

repeated .google.cloud.compute.v1.Instance items = 100526016;

Parameter
Name Description
index int
Returns
Type Description
Instance.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public InstanceList build()
Returns
Type Description
InstanceList

buildPartial()

public InstanceList buildPartial()
Returns
Type Description
InstanceList

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearId()

public InstanceList.Builder clearId()

[Output Only] Unique identifier for the resource; defined by the server.

optional string id = 3355;

Returns
Type Description
InstanceList.Builder

This builder for chaining.

clearItems()

public InstanceList.Builder clearItems()

A list of Instance resources.

repeated .google.cloud.compute.v1.Instance items = 100526016;

Returns
Type Description
InstanceList.Builder

clearKind()

public InstanceList.Builder clearKind()

[Output Only] Type of resource. Always compute#instanceList for lists of Instance resources.

optional string kind = 3292052;

Returns
Type Description
InstanceList.Builder

This builder for chaining.

clearNextPageToken()

public InstanceList.Builder clearNextPageToken()

[Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.

optional string next_page_token = 79797525;

Returns
Type Description
InstanceList.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

[Output Only] Server-defined URL for this resource.

optional string self_link = 456214797;

Returns
Type Description
InstanceList.Builder

This builder for chaining.

clearWarning()

public InstanceList.Builder clearWarning()

[Output Only] Informational warning message.

optional .google.cloud.compute.v1.Warning warning = 50704284;

Returns
Type Description
InstanceList.Builder

clone()

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

getDefaultInstanceForType()

public InstanceList getDefaultInstanceForType()
Returns
Type Description
InstanceList

getDescriptorForType()

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

getId()

public String getId()

[Output Only] Unique identifier for the resource; defined by the server.

optional string id = 3355;

Returns
Type Description
String

The id.

getIdBytes()

public ByteString getIdBytes()

[Output Only] Unique identifier for the resource; defined by the server.

optional string id = 3355;

Returns
Type Description
ByteString

The bytes for id.

getItems(int index)

public Instance getItems(int index)

A list of Instance resources.

repeated .google.cloud.compute.v1.Instance items = 100526016;

Parameter
Name Description
index int
Returns
Type Description
Instance

getItemsBuilder(int index)

public Instance.Builder getItemsBuilder(int index)

A list of Instance resources.

repeated .google.cloud.compute.v1.Instance items = 100526016;

Parameter
Name Description
index int
Returns
Type Description
Instance.Builder

getItemsBuilderList()

public List<Instance.Builder> getItemsBuilderList()

A list of Instance resources.

repeated .google.cloud.compute.v1.Instance items = 100526016;

Returns
Type Description
List<Builder>

getItemsCount()

public int getItemsCount()

A list of Instance resources.

repeated .google.cloud.compute.v1.Instance items = 100526016;

Returns
Type Description
int

getItemsList()

public List<Instance> getItemsList()

A list of Instance resources.

repeated .google.cloud.compute.v1.Instance items = 100526016;

Returns
Type Description
List<Instance>

getItemsOrBuilder(int index)

public InstanceOrBuilder getItemsOrBuilder(int index)

A list of Instance resources.

repeated .google.cloud.compute.v1.Instance items = 100526016;

Parameter
Name Description
index int
Returns
Type Description
InstanceOrBuilder

getItemsOrBuilderList()

public List<? extends InstanceOrBuilder> getItemsOrBuilderList()

A list of Instance resources.

repeated .google.cloud.compute.v1.Instance items = 100526016;

Returns
Type Description
List<? extends com.google.cloud.compute.v1.InstanceOrBuilder>

getKind()

public String getKind()

[Output Only] Type of resource. Always compute#instanceList for lists of Instance resources.

optional string kind = 3292052;

Returns
Type Description
String

The kind.

getKindBytes()

public ByteString getKindBytes()

[Output Only] Type of resource. Always compute#instanceList for lists of Instance resources.

optional string kind = 3292052;

Returns
Type Description
ByteString

The bytes for kind.

getNextPageToken()

public String getNextPageToken()

[Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.

optional string next_page_token = 79797525;

Returns
Type Description
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

[Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.

optional string next_page_token = 79797525;

Returns
Type Description
ByteString

The bytes for nextPageToken.

public String getSelfLink()

[Output Only] Server-defined URL for this resource.

optional string self_link = 456214797;

Returns
Type Description
String

The selfLink.

getSelfLinkBytes()

public ByteString getSelfLinkBytes()

[Output Only] Server-defined URL for this resource.

optional string self_link = 456214797;

Returns
Type Description
ByteString

The bytes for selfLink.

getWarning()

public Warning getWarning()

[Output Only] Informational warning message.

optional .google.cloud.compute.v1.Warning warning = 50704284;

Returns
Type Description
Warning

The warning.

getWarningBuilder()

public Warning.Builder getWarningBuilder()

[Output Only] Informational warning message.

optional .google.cloud.compute.v1.Warning warning = 50704284;

Returns
Type Description
Warning.Builder

getWarningOrBuilder()

public WarningOrBuilder getWarningOrBuilder()

[Output Only] Informational warning message.

optional .google.cloud.compute.v1.Warning warning = 50704284;

Returns
Type Description
WarningOrBuilder

hasId()

public boolean hasId()

[Output Only] Unique identifier for the resource; defined by the server.

optional string id = 3355;

Returns
Type Description
boolean

Whether the id field is set.

hasKind()

public boolean hasKind()

[Output Only] Type of resource. Always compute#instanceList for lists of Instance resources.

optional string kind = 3292052;

Returns
Type Description
boolean

Whether the kind field is set.

hasNextPageToken()

public boolean hasNextPageToken()

[Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.

optional string next_page_token = 79797525;

Returns
Type Description
boolean

Whether the nextPageToken field is set.

public boolean hasSelfLink()

[Output Only] Server-defined URL for this resource.

optional string self_link = 456214797;

Returns
Type Description
boolean

Whether the selfLink field is set.

hasWarning()

public boolean hasWarning()

[Output Only] Informational warning message.

optional .google.cloud.compute.v1.Warning warning = 50704284;

Returns
Type Description
boolean

Whether the warning field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(InstanceList other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeWarning(Warning value)

public InstanceList.Builder mergeWarning(Warning value)

[Output Only] Informational warning message.

optional .google.cloud.compute.v1.Warning warning = 50704284;

Parameter
Name Description
value Warning
Returns
Type Description
InstanceList.Builder

removeItems(int index)

public InstanceList.Builder removeItems(int index)

A list of Instance resources.

repeated .google.cloud.compute.v1.Instance items = 100526016;

Parameter
Name Description
index int
Returns
Type Description
InstanceList.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setId(String value)

public InstanceList.Builder setId(String value)

[Output Only] Unique identifier for the resource; defined by the server.

optional string id = 3355;

Parameter
Name Description
value String

The id to set.

Returns
Type Description
InstanceList.Builder

This builder for chaining.

setIdBytes(ByteString value)

public InstanceList.Builder setIdBytes(ByteString value)

[Output Only] Unique identifier for the resource; defined by the server.

optional string id = 3355;

Parameter
Name Description
value ByteString

The bytes for id to set.

Returns
Type Description
InstanceList.Builder

This builder for chaining.

setItems(int index, Instance value)

public InstanceList.Builder setItems(int index, Instance value)

A list of Instance resources.

repeated .google.cloud.compute.v1.Instance items = 100526016;

Parameters
Name Description
index int
value Instance
Returns
Type Description
InstanceList.Builder

setItems(int index, Instance.Builder builderForValue)

public InstanceList.Builder setItems(int index, Instance.Builder builderForValue)

A list of Instance resources.

repeated .google.cloud.compute.v1.Instance items = 100526016;

Parameters
Name Description
index int
builderForValue Instance.Builder
Returns
Type Description
InstanceList.Builder

setKind(String value)

public InstanceList.Builder setKind(String value)

[Output Only] Type of resource. Always compute#instanceList for lists of Instance resources.

optional string kind = 3292052;

Parameter
Name Description
value String

The kind to set.

Returns
Type Description
InstanceList.Builder

This builder for chaining.

setKindBytes(ByteString value)

public InstanceList.Builder setKindBytes(ByteString value)

[Output Only] Type of resource. Always compute#instanceList for lists of Instance resources.

optional string kind = 3292052;

Parameter
Name Description
value ByteString

The bytes for kind to set.

Returns
Type Description
InstanceList.Builder

This builder for chaining.

setNextPageToken(String value)

public InstanceList.Builder setNextPageToken(String value)

[Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.

optional string next_page_token = 79797525;

Parameter
Name Description
value String

The nextPageToken to set.

Returns
Type Description
InstanceList.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public InstanceList.Builder setNextPageTokenBytes(ByteString value)

[Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.

optional string next_page_token = 79797525;

Parameter
Name Description
value ByteString

The bytes for nextPageToken to set.

Returns
Type Description
InstanceList.Builder

This builder for chaining.

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

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

[Output Only] Server-defined URL for this resource.

optional string self_link = 456214797;

Parameter
Name Description
value String

The selfLink to set.

Returns
Type Description
InstanceList.Builder

This builder for chaining.

setSelfLinkBytes(ByteString value)

public InstanceList.Builder setSelfLinkBytes(ByteString value)

[Output Only] Server-defined URL for this resource.

optional string self_link = 456214797;

Parameter
Name Description
value ByteString

The bytes for selfLink to set.

Returns
Type Description
InstanceList.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

setWarning(Warning value)

public InstanceList.Builder setWarning(Warning value)

[Output Only] Informational warning message.

optional .google.cloud.compute.v1.Warning warning = 50704284;

Parameter
Name Description
value Warning
Returns
Type Description
InstanceList.Builder

setWarning(Warning.Builder builderForValue)

public InstanceList.Builder setWarning(Warning.Builder builderForValue)

[Output Only] Informational warning message.

optional .google.cloud.compute.v1.Warning warning = 50704284;

Parameter
Name Description
builderForValue Warning.Builder
Returns
Type Description
InstanceList.Builder