Class TargetResource.Builder (0.10.0)

public static final class TargetResource.Builder extends GeneratedMessageV3.Builder<TargetResource.Builder> implements TargetResourceOrBuilder

Details of the target resource created/modified as part of restore.

Protobuf type google.cloud.backupdr.v1.TargetResource

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public TargetResource build()
Returns
Type Description
TargetResource

buildPartial()

public TargetResource buildPartial()
Returns
Type Description
TargetResource

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearGcpResource()

public TargetResource.Builder clearGcpResource()

Details of the native Google Cloud resource created as part of restore.

.google.cloud.backupdr.v1.GcpResource gcp_resource = 1;

Returns
Type Description
TargetResource.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearTargetResourceInfo()

public TargetResource.Builder clearTargetResourceInfo()
Returns
Type Description
TargetResource.Builder

clone()

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

getDefaultInstanceForType()

public TargetResource getDefaultInstanceForType()
Returns
Type Description
TargetResource

getDescriptorForType()

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

getGcpResource()

public GcpResource getGcpResource()

Details of the native Google Cloud resource created as part of restore.

.google.cloud.backupdr.v1.GcpResource gcp_resource = 1;

Returns
Type Description
GcpResource

The gcpResource.

getGcpResourceBuilder()

public GcpResource.Builder getGcpResourceBuilder()

Details of the native Google Cloud resource created as part of restore.

.google.cloud.backupdr.v1.GcpResource gcp_resource = 1;

Returns
Type Description
GcpResource.Builder

getGcpResourceOrBuilder()

public GcpResourceOrBuilder getGcpResourceOrBuilder()

Details of the native Google Cloud resource created as part of restore.

.google.cloud.backupdr.v1.GcpResource gcp_resource = 1;

Returns
Type Description
GcpResourceOrBuilder

getTargetResourceInfoCase()

public TargetResource.TargetResourceInfoCase getTargetResourceInfoCase()
Returns
Type Description
TargetResource.TargetResourceInfoCase

hasGcpResource()

public boolean hasGcpResource()

Details of the native Google Cloud resource created as part of restore.

.google.cloud.backupdr.v1.GcpResource gcp_resource = 1;

Returns
Type Description
boolean

Whether the gcpResource field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(TargetResource other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeGcpResource(GcpResource value)

public TargetResource.Builder mergeGcpResource(GcpResource value)

Details of the native Google Cloud resource created as part of restore.

.google.cloud.backupdr.v1.GcpResource gcp_resource = 1;

Parameter
Name Description
value GcpResource
Returns
Type Description
TargetResource.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setGcpResource(GcpResource value)

public TargetResource.Builder setGcpResource(GcpResource value)

Details of the native Google Cloud resource created as part of restore.

.google.cloud.backupdr.v1.GcpResource gcp_resource = 1;

Parameter
Name Description
value GcpResource
Returns
Type Description
TargetResource.Builder

setGcpResource(GcpResource.Builder builderForValue)

public TargetResource.Builder setGcpResource(GcpResource.Builder builderForValue)

Details of the native Google Cloud resource created as part of restore.

.google.cloud.backupdr.v1.GcpResource gcp_resource = 1;

Parameter
Name Description
builderForValue GcpResource.Builder
Returns
Type Description
TargetResource.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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