public static final class GcpResource.Builder extends GeneratedMessageV3.Builder<GcpResource.Builder> implements GcpResourceOrBuilder
Minimum 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
GcpResourceOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public GcpResource.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
GcpResource.Builder |
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 |
clearField(Descriptors.FieldDescriptor field)
public GcpResource.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
GcpResource.Builder |
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. |
clearOneof(Descriptors.OneofDescriptor oneof)
public GcpResource.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
Type | Description |
GcpResource.Builder |
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. |
clone()
public GcpResource.Builder clone()
Returns | |
---|---|
Type | Description |
GcpResource.Builder |
getDefaultInstanceForType()
public GcpResource getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
GcpResource |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
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 GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
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 |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public GcpResource.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
GcpResource.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final GcpResource.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
GcpResource.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public GcpResource.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
GcpResource.Builder |
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. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public GcpResource.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
Returns | |
---|---|
Type | Description |
GcpResource.Builder |
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. |
setUnknownFields(UnknownFieldSet unknownFields)
public final GcpResource.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
GcpResource.Builder |