Class ComputeInstanceTargetEnvironment.Builder (0.10.0)

public static final class ComputeInstanceTargetEnvironment.Builder extends GeneratedMessageV3.Builder<ComputeInstanceTargetEnvironment.Builder> implements ComputeInstanceTargetEnvironmentOrBuilder

ComputeInstanceTargetEnvironment represents Compute Engine target environment to be used during restore.

Protobuf type google.cloud.backupdr.v1.ComputeInstanceTargetEnvironment

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ComputeInstanceTargetEnvironment build()
Returns
Type Description
ComputeInstanceTargetEnvironment

buildPartial()

public ComputeInstanceTargetEnvironment buildPartial()
Returns
Type Description
ComputeInstanceTargetEnvironment

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearProject()

public ComputeInstanceTargetEnvironment.Builder clearProject()

Required. Target project for the Compute Engine instance.

string project = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ComputeInstanceTargetEnvironment.Builder

This builder for chaining.

clearZone()

public ComputeInstanceTargetEnvironment.Builder clearZone()

Required. The zone of the Compute Engine instance.

string zone = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ComputeInstanceTargetEnvironment.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ComputeInstanceTargetEnvironment getDefaultInstanceForType()
Returns
Type Description
ComputeInstanceTargetEnvironment

getDescriptorForType()

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

getProject()

public String getProject()

Required. Target project for the Compute Engine instance.

string project = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The project.

getProjectBytes()

public ByteString getProjectBytes()

Required. Target project for the Compute Engine instance.

string project = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for project.

getZone()

public String getZone()

Required. The zone of the Compute Engine instance.

string zone = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The zone.

getZoneBytes()

public ByteString getZoneBytes()

Required. The zone of the Compute Engine instance.

string zone = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for zone.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ComputeInstanceTargetEnvironment other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setProject(String value)

public ComputeInstanceTargetEnvironment.Builder setProject(String value)

Required. Target project for the Compute Engine instance.

string project = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The project to set.

Returns
Type Description
ComputeInstanceTargetEnvironment.Builder

This builder for chaining.

setProjectBytes(ByteString value)

public ComputeInstanceTargetEnvironment.Builder setProjectBytes(ByteString value)

Required. Target project for the Compute Engine instance.

string project = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for project to set.

Returns
Type Description
ComputeInstanceTargetEnvironment.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setZone(String value)

public ComputeInstanceTargetEnvironment.Builder setZone(String value)

Required. The zone of the Compute Engine instance.

string zone = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The zone to set.

Returns
Type Description
ComputeInstanceTargetEnvironment.Builder

This builder for chaining.

setZoneBytes(ByteString value)

public ComputeInstanceTargetEnvironment.Builder setZoneBytes(ByteString value)

Required. The zone of the Compute Engine instance.

string zone = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for zone to set.

Returns
Type Description
ComputeInstanceTargetEnvironment.Builder

This builder for chaining.