Class InstanceReference.Builder (4.50.0)

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

A reference to a Compute Engine instance.

Protobuf type google.cloud.dataproc.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

clearInstanceId()

public InstanceReference.Builder clearInstanceId()

The unique identifier of the Compute Engine instance.

string instance_id = 2;

Returns
Type Description
InstanceReference.Builder

This builder for chaining.

clearInstanceName()

public InstanceReference.Builder clearInstanceName()

The user-friendly name of the Compute Engine instance.

string instance_name = 1;

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

clearPublicEciesKey()

public InstanceReference.Builder clearPublicEciesKey()

The public ECIES key used for sharing data with this instance.

string public_ecies_key = 4;

Returns
Type Description
InstanceReference.Builder

This builder for chaining.

clearPublicKey()

public InstanceReference.Builder clearPublicKey()

The public RSA key used for sharing data with this instance.

string public_key = 3;

Returns
Type Description
InstanceReference.Builder

This builder for chaining.

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

getInstanceId()

public String getInstanceId()

The unique identifier of the Compute Engine instance.

string instance_id = 2;

Returns
Type Description
String

The instanceId.

getInstanceIdBytes()

public ByteString getInstanceIdBytes()

The unique identifier of the Compute Engine instance.

string instance_id = 2;

Returns
Type Description
ByteString

The bytes for instanceId.

getInstanceName()

public String getInstanceName()

The user-friendly name of the Compute Engine instance.

string instance_name = 1;

Returns
Type Description
String

The instanceName.

getInstanceNameBytes()

public ByteString getInstanceNameBytes()

The user-friendly name of the Compute Engine instance.

string instance_name = 1;

Returns
Type Description
ByteString

The bytes for instanceName.

getPublicEciesKey()

public String getPublicEciesKey()

The public ECIES key used for sharing data with this instance.

string public_ecies_key = 4;

Returns
Type Description
String

The publicEciesKey.

getPublicEciesKeyBytes()

public ByteString getPublicEciesKeyBytes()

The public ECIES key used for sharing data with this instance.

string public_ecies_key = 4;

Returns
Type Description
ByteString

The bytes for publicEciesKey.

getPublicKey()

public String getPublicKey()

The public RSA key used for sharing data with this instance.

string public_key = 3;

Returns
Type Description
String

The publicKey.

getPublicKeyBytes()

public ByteString getPublicKeyBytes()

The public RSA key used for sharing data with this instance.

string public_key = 3;

Returns
Type Description
ByteString

The bytes for publicKey.

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

setInstanceId(String value)

public InstanceReference.Builder setInstanceId(String value)

The unique identifier of the Compute Engine instance.

string instance_id = 2;

Parameter
Name Description
value String

The instanceId to set.

Returns
Type Description
InstanceReference.Builder

This builder for chaining.

setInstanceIdBytes(ByteString value)

public InstanceReference.Builder setInstanceIdBytes(ByteString value)

The unique identifier of the Compute Engine instance.

string instance_id = 2;

Parameter
Name Description
value ByteString

The bytes for instanceId to set.

Returns
Type Description
InstanceReference.Builder

This builder for chaining.

setInstanceName(String value)

public InstanceReference.Builder setInstanceName(String value)

The user-friendly name of the Compute Engine instance.

string instance_name = 1;

Parameter
Name Description
value String

The instanceName to set.

Returns
Type Description
InstanceReference.Builder

This builder for chaining.

setInstanceNameBytes(ByteString value)

public InstanceReference.Builder setInstanceNameBytes(ByteString value)

The user-friendly name of the Compute Engine instance.

string instance_name = 1;

Parameter
Name Description
value ByteString

The bytes for instanceName to set.

Returns
Type Description
InstanceReference.Builder

This builder for chaining.

setPublicEciesKey(String value)

public InstanceReference.Builder setPublicEciesKey(String value)

The public ECIES key used for sharing data with this instance.

string public_ecies_key = 4;

Parameter
Name Description
value String

The publicEciesKey to set.

Returns
Type Description
InstanceReference.Builder

This builder for chaining.

setPublicEciesKeyBytes(ByteString value)

public InstanceReference.Builder setPublicEciesKeyBytes(ByteString value)

The public ECIES key used for sharing data with this instance.

string public_ecies_key = 4;

Parameter
Name Description
value ByteString

The bytes for publicEciesKey to set.

Returns
Type Description
InstanceReference.Builder

This builder for chaining.

setPublicKey(String value)

public InstanceReference.Builder setPublicKey(String value)

The public RSA key used for sharing data with this instance.

string public_key = 3;

Parameter
Name Description
value String

The publicKey to set.

Returns
Type Description
InstanceReference.Builder

This builder for chaining.

setPublicKeyBytes(ByteString value)

public InstanceReference.Builder setPublicKeyBytes(ByteString value)

The public RSA key used for sharing data with this instance.

string public_key = 3;

Parameter
Name Description
value ByteString

The bytes for publicKey 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