Class InstanceReference.Builder (4.30.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
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

clearInstanceId()

public InstanceReference.Builder clearInstanceId()

The unique identifier of the Compute Engine instance.

string instance_id = 2;

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

clearPublicEciesKey()

public InstanceReference.Builder clearPublicEciesKey()

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

string public_ecies_key = 4;

Returns
TypeDescription
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
TypeDescription
InstanceReference.Builder

This builder for chaining.

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

getInstanceId()

public String getInstanceId()

The unique identifier of the Compute Engine instance.

string instance_id = 2;

Returns
TypeDescription
String

The instanceId.

getInstanceIdBytes()

public ByteString getInstanceIdBytes()

The unique identifier of the Compute Engine instance.

string instance_id = 2;

Returns
TypeDescription
ByteString

The bytes for instanceId.

getInstanceName()

public String getInstanceName()

The user-friendly name of the Compute Engine instance.

string instance_name = 1;

Returns
TypeDescription
String

The instanceName.

getInstanceNameBytes()

public ByteString getInstanceNameBytes()

The user-friendly name of the Compute Engine instance.

string instance_name = 1;

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

The publicEciesKey.

getPublicEciesKeyBytes()

public ByteString getPublicEciesKeyBytes()

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

string public_ecies_key = 4;

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

The publicKey.

getPublicKeyBytes()

public ByteString getPublicKeyBytes()

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

string public_key = 3;

Returns
TypeDescription
ByteString

The bytes for publicKey.

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

setInstanceId(String value)

public InstanceReference.Builder setInstanceId(String value)

The unique identifier of the Compute Engine instance.

string instance_id = 2;

Parameter
NameDescription
valueString

The instanceId to set.

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

The bytes for instanceId to set.

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

The instanceName to set.

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

The bytes for instanceName to set.

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

The publicEciesKey to set.

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

The bytes for publicEciesKey to set.

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

The publicKey to set.

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

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