Class ComputeInstanceTargetEnvironment.Builder (0.11.0)
Note: Some or all of the information on this page might not apply
to Trusted Cloud. For a list of services that are available in
Trusted Cloud, see Services available for
Trusted Cloud .
Version 0.11.0keyboard_arrow_down
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
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()
public static final Descriptors . Descriptor getDescriptor ()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ComputeInstanceTargetEnvironment . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Overrides
build()
public ComputeInstanceTargetEnvironment build ()
buildPartial()
public ComputeInstanceTargetEnvironment buildPartial ()
clear()
public ComputeInstanceTargetEnvironment . Builder clear ()
Overrides
clearField(Descriptors.FieldDescriptor field)
public ComputeInstanceTargetEnvironment . Builder clearField ( Descriptors . FieldDescriptor field )
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public ComputeInstanceTargetEnvironment . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Overrides
clearProject()
public ComputeInstanceTargetEnvironment . Builder clearProject ()
Required. Target project for the Compute Engine instance.
string project = 1 [(.google.api.field_behavior) = REQUIRED];
clearZone()
public ComputeInstanceTargetEnvironment . Builder clearZone ()
Required. The zone of the Compute Engine instance.
string zone = 2 [(.google.api.field_behavior) = REQUIRED];
clone()
public ComputeInstanceTargetEnvironment . Builder clone ()
Overrides
getDefaultInstanceForType()
public ComputeInstanceTargetEnvironment getDefaultInstanceForType ()
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
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()
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 ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
mergeFrom(ComputeInstanceTargetEnvironment other)
public ComputeInstanceTargetEnvironment . Builder mergeFrom ( ComputeInstanceTargetEnvironment other )
public ComputeInstanceTargetEnvironment . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Overrides
mergeFrom(Message other)
public ComputeInstanceTargetEnvironment . Builder mergeFrom ( Message other )
Parameter
Name
Description
other
Message
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ComputeInstanceTargetEnvironment . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public ComputeInstanceTargetEnvironment . Builder setField ( Descriptors . FieldDescriptor field , Object value )
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.
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.
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ComputeInstanceTargetEnvironment . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final ComputeInstanceTargetEnvironment . Builder setUnknownFields ( UnknownFieldSet unknownFields )
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.
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.
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-08-18 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-18 UTC."],[],[],null,[]]