Class ComputeInstanceTargetEnvironment.Builder (0.16.0)

publicstaticfinalclass ComputeInstanceTargetEnvironment.BuilderextendsGeneratedMessageV3.Builder<ComputeInstanceTargetEnvironment.Builder>implementsComputeInstanceTargetEnvironmentOrBuilder

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

Protobuf type google.cloud.backupdr.v1.ComputeInstanceTargetEnvironment

Inherited Members

com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)

Static Methods

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

publicComputeInstanceTargetEnvironment.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ComputeInstanceTargetEnvironment.Builder
Overrides

build()

publicComputeInstanceTargetEnvironmentbuild()
Returns
Type Description
ComputeInstanceTargetEnvironment

buildPartial()

publicComputeInstanceTargetEnvironmentbuildPartial()
Returns
Type Description
ComputeInstanceTargetEnvironment

clear()

publicComputeInstanceTargetEnvironment.Builderclear()
Returns
Type Description
ComputeInstanceTargetEnvironment.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

publicComputeInstanceTargetEnvironment.BuilderclearField(Descriptors.FieldDescriptorfield)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ComputeInstanceTargetEnvironment.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

publicComputeInstanceTargetEnvironment.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ComputeInstanceTargetEnvironment.Builder
Overrides

clearProject()

publicComputeInstanceTargetEnvironment.BuilderclearProject()

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()

publicComputeInstanceTargetEnvironment.BuilderclearZone()

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()

publicComputeInstanceTargetEnvironment.Builderclone()
Returns
Type Description
ComputeInstanceTargetEnvironment.Builder
Overrides

getDefaultInstanceForType()

publicComputeInstanceTargetEnvironmentgetDefaultInstanceForType()
Returns
Type Description
ComputeInstanceTargetEnvironment

getDescriptorForType()

publicDescriptors.DescriptorgetDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getProject()

publicStringgetProject()

Required. Target project for the Compute Engine instance.

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

Returns
Type Description
String

The project.

getProjectBytes()

publicByteStringgetProjectBytes()

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()

publicStringgetZone()

Required. The zone of the Compute Engine instance.

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

Returns
Type Description
String

The zone.

getZoneBytes()

publicByteStringgetZoneBytes()

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()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ComputeInstanceTargetEnvironment other)

publicComputeInstanceTargetEnvironment.BuildermergeFrom(ComputeInstanceTargetEnvironmentother)
Parameter
Name Description
other ComputeInstanceTargetEnvironment
Returns
Type Description
ComputeInstanceTargetEnvironment.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicComputeInstanceTargetEnvironment.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ComputeInstanceTargetEnvironment.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

publicComputeInstanceTargetEnvironment.BuildermergeFrom(Messageother)
Parameter
Name Description
other Message
Returns
Type Description
ComputeInstanceTargetEnvironment.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

publicfinalComputeInstanceTargetEnvironment.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ComputeInstanceTargetEnvironment.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

publicComputeInstanceTargetEnvironment.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ComputeInstanceTargetEnvironment.Builder
Overrides

setProject(String value)

publicComputeInstanceTargetEnvironment.BuildersetProject(Stringvalue)

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)

publicComputeInstanceTargetEnvironment.BuildersetProjectBytes(ByteStringvalue)

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)

publicComputeInstanceTargetEnvironment.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ComputeInstanceTargetEnvironment.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

publicfinalComputeInstanceTargetEnvironment.BuildersetUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ComputeInstanceTargetEnvironment.Builder
Overrides

setZone(String value)

publicComputeInstanceTargetEnvironment.BuildersetZone(Stringvalue)

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)

publicComputeInstanceTargetEnvironment.BuildersetZoneBytes(ByteStringvalue)

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.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年11月19日 UTC.