Class InstanceReference.Builder (1.33.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public InstanceReference build()
Returns
TypeDescription
InstanceReference

buildPartial()

public InstanceReference buildPartial()
Returns
TypeDescription
InstanceReference

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearInstance()

public InstanceReference.Builder clearInstance()

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

optional string instance = 18257045;

Returns
TypeDescription
InstanceReference.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public InstanceReference getDefaultInstanceForType()
Returns
TypeDescription
InstanceReference

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getInstance()

public String getInstance()

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

optional string instance = 18257045;

Returns
TypeDescription
String

The instance.

getInstanceBytes()

public ByteString getInstanceBytes()

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

optional string instance = 18257045;

Returns
TypeDescription
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
TypeDescription
boolean

Whether the instance field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(InstanceReference other)

public InstanceReference.Builder mergeFrom(InstanceReference other)
Parameter
NameDescription
otherInstanceReference
Returns
TypeDescription
InstanceReference.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public InstanceReference.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The instance to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for instance to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
InstanceReference.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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