Class GcpResource.Builder (0.29.0)
Stay organized with collections
Save and categorize content based on your preferences.
publicstaticfinalclass GcpResource.BuilderextendsGeneratedMessageV3.Builder<GcpResource.Builder>implementsGcpResourceOrBuilderMinimum details to identify a Google Cloud resource
Protobuf type google.cloud.backupdr.v1.GcpResource
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > GcpResource.BuilderImplements
GcpResourceOrBuilderInherited Members
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 |
|
build()
publicGcpResourcebuild()| Returns | |
|---|---|
| Type | Description |
GcpResource |
|
buildPartial()
publicGcpResourcebuildPartial()| Returns | |
|---|---|
| Type | Description |
GcpResource |
|
clear()
publicGcpResource.Builderclear()| Returns | |
|---|---|
| Type | Description |
GcpResource.Builder |
|
clearField(Descriptors.FieldDescriptor field)
publicGcpResource.BuilderclearField(Descriptors.FieldDescriptorfield)| Parameter | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
| Returns | |
|---|---|
| Type | Description |
GcpResource.Builder |
|
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 |
|
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 |
|
getDefaultInstanceForType()
publicGcpResourcegetDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
GcpResource |
|
getDescriptorForType()
publicDescriptors.DescriptorgetDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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 |
|
isInitialized()
publicfinalbooleanisInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
publicGcpResource.BuildermergeFrom(Messageother)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
GcpResource.Builder |
|
mergeUnknownFields(UnknownFieldSet unknownFields)
publicfinalGcpResource.BuildermergeUnknownFields(UnknownFieldSetunknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
GcpResource.Builder |
|
setField(Descriptors.FieldDescriptor field, Object value)
publicGcpResource.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
GcpResource.Builder |
|
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 |
|
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 |
|