Class ManagedInstanceVersion.Builder (1.54.0)

public static final class ManagedInstanceVersion.Builder extends GeneratedMessageV3.Builder<ManagedInstanceVersion.Builder> implements ManagedInstanceVersionOrBuilder

Protobuf type google.cloud.compute.v1.ManagedInstanceVersion

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ManagedInstanceVersion build()
Returns
Type Description
ManagedInstanceVersion

buildPartial()

public ManagedInstanceVersion buildPartial()
Returns
Type Description
ManagedInstanceVersion

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearInstanceTemplate()

public ManagedInstanceVersion.Builder clearInstanceTemplate()

[Output Only] The intended template of the instance. This field is empty when current_action is one of { DELETING, ABANDONING }.

optional string instance_template = 309248228;

Returns
Type Description
ManagedInstanceVersion.Builder

This builder for chaining.

clearName()

public ManagedInstanceVersion.Builder clearName()

[Output Only] Name of the version.

optional string name = 3373707;

Returns
Type Description
ManagedInstanceVersion.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public ManagedInstanceVersion getDefaultInstanceForType()
Returns
Type Description
ManagedInstanceVersion

getDescriptorForType()

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

getInstanceTemplate()

public String getInstanceTemplate()

[Output Only] The intended template of the instance. This field is empty when current_action is one of { DELETING, ABANDONING }.

optional string instance_template = 309248228;

Returns
Type Description
String

The instanceTemplate.

getInstanceTemplateBytes()

public ByteString getInstanceTemplateBytes()

[Output Only] The intended template of the instance. This field is empty when current_action is one of { DELETING, ABANDONING }.

optional string instance_template = 309248228;

Returns
Type Description
ByteString

The bytes for instanceTemplate.

getName()

public String getName()

[Output Only] Name of the version.

optional string name = 3373707;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

[Output Only] Name of the version.

optional string name = 3373707;

Returns
Type Description
ByteString

The bytes for name.

hasInstanceTemplate()

public boolean hasInstanceTemplate()

[Output Only] The intended template of the instance. This field is empty when current_action is one of { DELETING, ABANDONING }.

optional string instance_template = 309248228;

Returns
Type Description
boolean

Whether the instanceTemplate field is set.

hasName()

public boolean hasName()

[Output Only] Name of the version.

optional string name = 3373707;

Returns
Type Description
boolean

Whether the name field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ManagedInstanceVersion other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setInstanceTemplate(String value)

public ManagedInstanceVersion.Builder setInstanceTemplate(String value)

[Output Only] The intended template of the instance. This field is empty when current_action is one of { DELETING, ABANDONING }.

optional string instance_template = 309248228;

Parameter
Name Description
value String

The instanceTemplate to set.

Returns
Type Description
ManagedInstanceVersion.Builder

This builder for chaining.

setInstanceTemplateBytes(ByteString value)

public ManagedInstanceVersion.Builder setInstanceTemplateBytes(ByteString value)

[Output Only] The intended template of the instance. This field is empty when current_action is one of { DELETING, ABANDONING }.

optional string instance_template = 309248228;

Parameter
Name Description
value ByteString

The bytes for instanceTemplate to set.

Returns
Type Description
ManagedInstanceVersion.Builder

This builder for chaining.

setName(String value)

public ManagedInstanceVersion.Builder setName(String value)

[Output Only] Name of the version.

optional string name = 3373707;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
ManagedInstanceVersion.Builder

This builder for chaining.

setNameBytes(ByteString value)

public ManagedInstanceVersion.Builder setNameBytes(ByteString value)

[Output Only] Name of the version.

optional string name = 3373707;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
ManagedInstanceVersion.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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