Class InstanceTemplatesScopedList.Builder (1.40.0)

public static final class InstanceTemplatesScopedList.Builder extends GeneratedMessageV3.Builder<InstanceTemplatesScopedList.Builder> implements InstanceTemplatesScopedListOrBuilder

Protobuf type google.cloud.compute.v1.InstanceTemplatesScopedList

Static Methods

getDescriptor()

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

Methods

addAllInstanceTemplates(Iterable<? extends InstanceTemplate> values)

public InstanceTemplatesScopedList.Builder addAllInstanceTemplates(Iterable<? extends InstanceTemplate> values)

[Output Only] A list of instance templates that are contained within the specified project and zone.

repeated .google.cloud.compute.v1.InstanceTemplate instance_templates = 459889679;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.compute.v1.InstanceTemplate>
Returns
TypeDescription
InstanceTemplatesScopedList.Builder

addInstanceTemplates(InstanceTemplate value)

public InstanceTemplatesScopedList.Builder addInstanceTemplates(InstanceTemplate value)

[Output Only] A list of instance templates that are contained within the specified project and zone.

repeated .google.cloud.compute.v1.InstanceTemplate instance_templates = 459889679;

Parameter
NameDescription
valueInstanceTemplate
Returns
TypeDescription
InstanceTemplatesScopedList.Builder

addInstanceTemplates(InstanceTemplate.Builder builderForValue)

public InstanceTemplatesScopedList.Builder addInstanceTemplates(InstanceTemplate.Builder builderForValue)

[Output Only] A list of instance templates that are contained within the specified project and zone.

repeated .google.cloud.compute.v1.InstanceTemplate instance_templates = 459889679;

Parameter
NameDescription
builderForValueInstanceTemplate.Builder
Returns
TypeDescription
InstanceTemplatesScopedList.Builder

addInstanceTemplates(int index, InstanceTemplate value)

public InstanceTemplatesScopedList.Builder addInstanceTemplates(int index, InstanceTemplate value)

[Output Only] A list of instance templates that are contained within the specified project and zone.

repeated .google.cloud.compute.v1.InstanceTemplate instance_templates = 459889679;

Parameters
NameDescription
indexint
valueInstanceTemplate
Returns
TypeDescription
InstanceTemplatesScopedList.Builder

addInstanceTemplates(int index, InstanceTemplate.Builder builderForValue)

public InstanceTemplatesScopedList.Builder addInstanceTemplates(int index, InstanceTemplate.Builder builderForValue)

[Output Only] A list of instance templates that are contained within the specified project and zone.

repeated .google.cloud.compute.v1.InstanceTemplate instance_templates = 459889679;

Parameters
NameDescription
indexint
builderForValueInstanceTemplate.Builder
Returns
TypeDescription
InstanceTemplatesScopedList.Builder

addInstanceTemplatesBuilder()

public InstanceTemplate.Builder addInstanceTemplatesBuilder()

[Output Only] A list of instance templates that are contained within the specified project and zone.

repeated .google.cloud.compute.v1.InstanceTemplate instance_templates = 459889679;

Returns
TypeDescription
InstanceTemplate.Builder

addInstanceTemplatesBuilder(int index)

public InstanceTemplate.Builder addInstanceTemplatesBuilder(int index)

[Output Only] A list of instance templates that are contained within the specified project and zone.

repeated .google.cloud.compute.v1.InstanceTemplate instance_templates = 459889679;

Parameter
NameDescription
indexint
Returns
TypeDescription
InstanceTemplate.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public InstanceTemplatesScopedList build()
Returns
TypeDescription
InstanceTemplatesScopedList

buildPartial()

public InstanceTemplatesScopedList buildPartial()
Returns
TypeDescription
InstanceTemplatesScopedList

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearInstanceTemplates()

public InstanceTemplatesScopedList.Builder clearInstanceTemplates()

[Output Only] A list of instance templates that are contained within the specified project and zone.

repeated .google.cloud.compute.v1.InstanceTemplate instance_templates = 459889679;

Returns
TypeDescription
InstanceTemplatesScopedList.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearWarning()

public InstanceTemplatesScopedList.Builder clearWarning()

[Output Only] An informational warning that replaces the list of instance templates when the list is empty.

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

Returns
TypeDescription
InstanceTemplatesScopedList.Builder

clone()

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

getDefaultInstanceForType()

public InstanceTemplatesScopedList getDefaultInstanceForType()
Returns
TypeDescription
InstanceTemplatesScopedList

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getInstanceTemplates(int index)

public InstanceTemplate getInstanceTemplates(int index)

[Output Only] A list of instance templates that are contained within the specified project and zone.

repeated .google.cloud.compute.v1.InstanceTemplate instance_templates = 459889679;

Parameter
NameDescription
indexint
Returns
TypeDescription
InstanceTemplate

getInstanceTemplatesBuilder(int index)

public InstanceTemplate.Builder getInstanceTemplatesBuilder(int index)

[Output Only] A list of instance templates that are contained within the specified project and zone.

repeated .google.cloud.compute.v1.InstanceTemplate instance_templates = 459889679;

Parameter
NameDescription
indexint
Returns
TypeDescription
InstanceTemplate.Builder

getInstanceTemplatesBuilderList()

public List<InstanceTemplate.Builder> getInstanceTemplatesBuilderList()

[Output Only] A list of instance templates that are contained within the specified project and zone.

repeated .google.cloud.compute.v1.InstanceTemplate instance_templates = 459889679;

Returns
TypeDescription
List<Builder>

getInstanceTemplatesCount()

public int getInstanceTemplatesCount()

[Output Only] A list of instance templates that are contained within the specified project and zone.

repeated .google.cloud.compute.v1.InstanceTemplate instance_templates = 459889679;

Returns
TypeDescription
int

getInstanceTemplatesList()

public List<InstanceTemplate> getInstanceTemplatesList()

[Output Only] A list of instance templates that are contained within the specified project and zone.

repeated .google.cloud.compute.v1.InstanceTemplate instance_templates = 459889679;

Returns
TypeDescription
List<InstanceTemplate>

getInstanceTemplatesOrBuilder(int index)

public InstanceTemplateOrBuilder getInstanceTemplatesOrBuilder(int index)

[Output Only] A list of instance templates that are contained within the specified project and zone.

repeated .google.cloud.compute.v1.InstanceTemplate instance_templates = 459889679;

Parameter
NameDescription
indexint
Returns
TypeDescription
InstanceTemplateOrBuilder

getInstanceTemplatesOrBuilderList()

public List<? extends InstanceTemplateOrBuilder> getInstanceTemplatesOrBuilderList()

[Output Only] A list of instance templates that are contained within the specified project and zone.

repeated .google.cloud.compute.v1.InstanceTemplate instance_templates = 459889679;

Returns
TypeDescription
List<? extends com.google.cloud.compute.v1.InstanceTemplateOrBuilder>

getWarning()

public Warning getWarning()

[Output Only] An informational warning that replaces the list of instance templates when the list is empty.

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

Returns
TypeDescription
Warning

The warning.

getWarningBuilder()

public Warning.Builder getWarningBuilder()

[Output Only] An informational warning that replaces the list of instance templates when the list is empty.

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

Returns
TypeDescription
Warning.Builder

getWarningOrBuilder()

public WarningOrBuilder getWarningOrBuilder()

[Output Only] An informational warning that replaces the list of instance templates when the list is empty.

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

Returns
TypeDescription
WarningOrBuilder

hasWarning()

public boolean hasWarning()

[Output Only] An informational warning that replaces the list of instance templates when the list is empty.

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

Returns
TypeDescription
boolean

Whether the warning field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(InstanceTemplatesScopedList other)

public InstanceTemplatesScopedList.Builder mergeFrom(InstanceTemplatesScopedList other)
Parameter
NameDescription
otherInstanceTemplatesScopedList
Returns
TypeDescription
InstanceTemplatesScopedList.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeWarning(Warning value)

public InstanceTemplatesScopedList.Builder mergeWarning(Warning value)

[Output Only] An informational warning that replaces the list of instance templates when the list is empty.

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

Parameter
NameDescription
valueWarning
Returns
TypeDescription
InstanceTemplatesScopedList.Builder

removeInstanceTemplates(int index)

public InstanceTemplatesScopedList.Builder removeInstanceTemplates(int index)

[Output Only] A list of instance templates that are contained within the specified project and zone.

repeated .google.cloud.compute.v1.InstanceTemplate instance_templates = 459889679;

Parameter
NameDescription
indexint
Returns
TypeDescription
InstanceTemplatesScopedList.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setInstanceTemplates(int index, InstanceTemplate value)

public InstanceTemplatesScopedList.Builder setInstanceTemplates(int index, InstanceTemplate value)

[Output Only] A list of instance templates that are contained within the specified project and zone.

repeated .google.cloud.compute.v1.InstanceTemplate instance_templates = 459889679;

Parameters
NameDescription
indexint
valueInstanceTemplate
Returns
TypeDescription
InstanceTemplatesScopedList.Builder

setInstanceTemplates(int index, InstanceTemplate.Builder builderForValue)

public InstanceTemplatesScopedList.Builder setInstanceTemplates(int index, InstanceTemplate.Builder builderForValue)

[Output Only] A list of instance templates that are contained within the specified project and zone.

repeated .google.cloud.compute.v1.InstanceTemplate instance_templates = 459889679;

Parameters
NameDescription
indexint
builderForValueInstanceTemplate.Builder
Returns
TypeDescription
InstanceTemplatesScopedList.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setWarning(Warning value)

public InstanceTemplatesScopedList.Builder setWarning(Warning value)

[Output Only] An informational warning that replaces the list of instance templates when the list is empty.

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

Parameter
NameDescription
valueWarning
Returns
TypeDescription
InstanceTemplatesScopedList.Builder

setWarning(Warning.Builder builderForValue)

public InstanceTemplatesScopedList.Builder setWarning(Warning.Builder builderForValue)

[Output Only] An informational warning that replaces the list of instance templates when the list is empty.

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

Parameter
NameDescription
builderForValueWarning.Builder
Returns
TypeDescription
InstanceTemplatesScopedList.Builder