Class GcpResource.Builder (0.29.0)

publicstaticfinalclass GcpResource.BuilderextendsGeneratedMessageV3.Builder<GcpResource.Builder>implementsGcpResourceOrBuilder

Minimum details to identify a Google Cloud resource

Protobuf type google.cloud.backupdr.v1.GcpResource

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)

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

build()

publicGcpResourcebuild()
Returns
Type Description
GcpResource

buildPartial()

publicGcpResourcebuildPartial()
Returns
Type Description
GcpResource

clear()

publicGcpResource.Builderclear()
Returns
Type Description
GcpResource.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

publicGcpResource.BuilderclearField(Descriptors.FieldDescriptorfield)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
GcpResource.Builder
Overrides

clearGcpResourcename()

publicGcpResource.BuilderclearGcpResourcename()

Name of the Google Cloud resource.

string gcp_resourcename = 1;

Returns
Type Description
GcpResource.Builder

This builder for chaining.

clearLocation()

publicGcpResource.BuilderclearLocation()

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

string location = 2;

Returns
Type Description
GcpResource.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

publicGcpResource.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
GcpResource.Builder
Overrides

clearType()

publicGcpResource.BuilderclearType()

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.

clone()

publicGcpResource.Builderclone()
Returns
Type Description
GcpResource.Builder
Overrides

getDefaultInstanceForType()

publicGcpResourcegetDefaultInstanceForType()
Returns
Type Description
GcpResource

getDescriptorForType()

publicDescriptors.DescriptorgetDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getGcpResourcename()

publicStringgetGcpResourcename()

Name of the Google Cloud resource.

string gcp_resourcename = 1;

Returns
Type Description
String

The gcpResourcename.

getGcpResourcenameBytes()

publicByteStringgetGcpResourcenameBytes()

Name of the Google Cloud resource.

string gcp_resourcename = 1;

Returns
Type Description
ByteString

The bytes for gcpResourcename.

getLocation()

publicStringgetLocation()

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

string location = 2;

Returns
Type Description
String

The location.

getLocationBytes()

publicByteStringgetLocationBytes()

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

string location = 2;

Returns
Type Description
ByteString

The bytes for location.

getType()

publicStringgetType()

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

string type = 3;

Returns
Type Description
String

The type.

getTypeBytes()

publicByteStringgetTypeBytes()

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

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(GcpResource other)

publicGcpResource.BuildermergeFrom(GcpResourceother)
Parameter
Name Description
other GcpResource
Returns
Type Description
GcpResource.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

publicGcpResource.BuildermergeFrom(Messageother)
Parameter
Name Description
other Message
Returns
Type Description
GcpResource.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

publicfinalGcpResource.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
GcpResource.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

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

setGcpResourcename(String value)

publicGcpResource.BuildersetGcpResourcename(Stringvalue)

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)

publicGcpResource.BuildersetGcpResourcenameBytes(ByteStringvalue)

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)

publicGcpResource.BuildersetLocation(Stringvalue)

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)

publicGcpResource.BuildersetLocationBytes(ByteStringvalue)

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.

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

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

setType(String value)

publicGcpResource.BuildersetType(Stringvalue)

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)

publicGcpResource.BuildersetTypeBytes(ByteStringvalue)

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.

setUnknownFields(UnknownFieldSet unknownFields)

publicfinalGcpResource.BuildersetUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
GcpResource.Builder
Overrides

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.