Class BackupGcpResource.Builder (0.42.0)

public static final class BackupGcpResource.Builder extends GeneratedMessage.Builder<BackupGcpResource.Builder> implements BackupGcpResourceOrBuilder

Minimum details to identify a Google Cloud resource for a backup.

Protobuf type google.cloud.backupdr.v1.BackupGcpResource

Static Methods

getDescriptor()

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

Methods

build()

public BackupGcpResource build()
Returns
Type Description
BackupGcpResource

buildPartial()

public BackupGcpResource buildPartial()
Returns
Type Description
BackupGcpResource

clear()

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

clearGcpResourcename()

public BackupGcpResource.Builder clearGcpResourcename()

Name of the Google Cloud resource.

string gcp_resourcename = 1;

Returns
Type Description
BackupGcpResource.Builder

This builder for chaining.

clearLocation()

public BackupGcpResource.Builder clearLocation()

Location of the resource: <region>/<zone>/"global"/"unspecified".

string location = 2;

Returns
Type Description
BackupGcpResource.Builder

This builder for chaining.

clearType()

public BackupGcpResource.Builder clearType()

Type of the resource. Use the Unified Resource Type, eg. compute.googleapis.com/Instance.

string type = 3;

Returns
Type Description
BackupGcpResource.Builder

This builder for chaining.

getDefaultInstanceForType()

public BackupGcpResource getDefaultInstanceForType()
Returns
Type Description
BackupGcpResource

getDescriptorForType()

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

getGcpResourcename()

public String getGcpResourcename()

Name of the Google Cloud resource.

string gcp_resourcename = 1;

Returns
Type Description
String

The gcpResourcename.

getGcpResourcenameBytes()

public ByteString getGcpResourcenameBytes()

Name of the Google Cloud resource.

string gcp_resourcename = 1;

Returns
Type Description
ByteString

The bytes for gcpResourcename.

getLocation()

public String getLocation()

Location of the resource: <region>/<zone>/"global"/"unspecified".

string location = 2;

Returns
Type Description
String

The location.

getLocationBytes()

public ByteString getLocationBytes()

Location of the resource: <region>/<zone>/"global"/"unspecified".

string location = 2;

Returns
Type Description
ByteString

The bytes for location.

getType()

public String getType()

Type of the resource. Use the Unified Resource Type, eg. compute.googleapis.com/Instance.

string type = 3;

Returns
Type Description
String

The type.

getTypeBytes()

public ByteString getTypeBytes()

Type of the resource. Use the Unified Resource Type, eg. compute.googleapis.com/Instance.

string type = 3;

Returns
Type Description
ByteString

The bytes for type.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(BackupGcpResource other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setGcpResourcename(String value)

public BackupGcpResource.Builder setGcpResourcename(String value)

Name of the Google Cloud resource.

string gcp_resourcename = 1;

Parameter
Name Description
value String

The gcpResourcename to set.

Returns
Type Description
BackupGcpResource.Builder

This builder for chaining.

setGcpResourcenameBytes(ByteString value)

public BackupGcpResource.Builder setGcpResourcenameBytes(ByteString value)

Name of the Google Cloud resource.

string gcp_resourcename = 1;

Parameter
Name Description
value ByteString

The bytes for gcpResourcename to set.

Returns
Type Description
BackupGcpResource.Builder

This builder for chaining.

setLocation(String value)

public BackupGcpResource.Builder setLocation(String value)

Location of the resource: <region>/<zone>/"global"/"unspecified".

string location = 2;

Parameter
Name Description
value String

The location to set.

Returns
Type Description
BackupGcpResource.Builder

This builder for chaining.

setLocationBytes(ByteString value)

public BackupGcpResource.Builder setLocationBytes(ByteString value)

Location of the resource: <region>/<zone>/"global"/"unspecified".

string location = 2;

Parameter
Name Description
value ByteString

The bytes for location to set.

Returns
Type Description
BackupGcpResource.Builder

This builder for chaining.

setType(String value)

public BackupGcpResource.Builder setType(String value)

Type of the resource. Use the Unified Resource Type, eg. compute.googleapis.com/Instance.

string type = 3;

Parameter
Name Description
value String

The type to set.

Returns
Type Description
BackupGcpResource.Builder

This builder for chaining.

setTypeBytes(ByteString value)

public BackupGcpResource.Builder setTypeBytes(ByteString value)

Type of the resource. Use the Unified Resource Type, eg. compute.googleapis.com/Instance.

string type = 3;

Parameter
Name Description
value ByteString

The bytes for type to set.

Returns
Type Description
BackupGcpResource.Builder

This builder for chaining.