Class InstanceReference.Builder (1.54.0)

public static final class InstanceReference.Builder extends GeneratedMessageV3.Builder<InstanceReference.Builder> implements InstanceReferenceOrBuilder

Protobuf type google.cloud.compute.v1.InstanceReference

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public InstanceReference build()
Returns
Type Description
InstanceReference

buildPartial()

public InstanceReference buildPartial()
Returns
Type Description
InstanceReference

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearInstance()

public InstanceReference.Builder clearInstance()

The URL for a specific instance. @required compute.instancegroups.addInstances/removeInstances

optional string instance = 18257045;

Returns
Type Description
InstanceReference.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public InstanceReference getDefaultInstanceForType()
Returns
Type Description
InstanceReference

getDescriptorForType()

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

getInstance()

public String getInstance()

The URL for a specific instance. @required compute.instancegroups.addInstances/removeInstances

optional string instance = 18257045;

Returns
Type Description
String

The instance.

getInstanceBytes()

public ByteString getInstanceBytes()

The URL for a specific instance. @required compute.instancegroups.addInstances/removeInstances

optional string instance = 18257045;

Returns
Type Description
ByteString

The bytes for instance.

hasInstance()

public boolean hasInstance()

The URL for a specific instance. @required compute.instancegroups.addInstances/removeInstances

optional string instance = 18257045;

Returns
Type Description
boolean

Whether the instance field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(InstanceReference other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setInstance(String value)

public InstanceReference.Builder setInstance(String value)

The URL for a specific instance. @required compute.instancegroups.addInstances/removeInstances

optional string instance = 18257045;

Parameter
Name Description
value String

The instance to set.

Returns
Type Description
InstanceReference.Builder

This builder for chaining.

setInstanceBytes(ByteString value)

public InstanceReference.Builder setInstanceBytes(ByteString value)

The URL for a specific instance. @required compute.instancegroups.addInstances/removeInstances

optional string instance = 18257045;

Parameter
Name Description
value ByteString

The bytes for instance to set.

Returns
Type Description
InstanceReference.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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