Class GcpResource.Builder (0.42.0)

public static final class GcpResource.Builder extends GeneratedMessage.Builder<GcpResource.Builder> implements GcpResourceOrBuilder

Minimum details to identify a Google Cloud resource

Protobuf type google.cloud.backupdr.v1.GcpResource

Static Methods

getDescriptor()

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

Methods

build()

public GcpResource build()
Returns
Type Description
GcpResource

buildPartial()

public GcpResource buildPartial()
Returns
Type Description
GcpResource

clear()

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

clearGcpResourcename()

public GcpResource.Builder clearGcpResourcename()

Name of the Google Cloud resource.

string gcp_resourcename = 1;

Returns
Type Description
GcpResource.Builder

This builder for chaining.

clearLocation()

public GcpResource.Builder clearLocation()

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

string location = 2;

Returns
Type Description
GcpResource.Builder

This builder for chaining.

clearType()

public GcpResource.Builder clearType()

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

string type = 3;

Returns
Type Description
GcpResource.Builder

This builder for chaining.

getDefaultInstanceForType()

public GcpResource getDefaultInstanceForType()
Returns
Type Description
GcpResource

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

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setGcpResourcename(String value)

public GcpResource.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
GcpResource.Builder

This builder for chaining.

setGcpResourcenameBytes(ByteString value)

public GcpResource.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
GcpResource.Builder

This builder for chaining.

setLocation(String value)

public GcpResource.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
GcpResource.Builder

This builder for chaining.

setLocationBytes(ByteString value)

public GcpResource.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
GcpResource.Builder

This builder for chaining.

setType(String value)

public GcpResource.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
GcpResource.Builder

This builder for chaining.

setTypeBytes(ByteString value)

public GcpResource.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
GcpResource.Builder

This builder for chaining.