public static final class BindingMatchingResource.Builder extends GeneratedMessage.Builder<BindingMatchingResource.Builder> implements BindingMatchingResourceOrBuilderBindingMatchingResource contains the details of a resource that matches the criteria of a binding.
Protobuf type google.cloud.backupdr.v1beta.BindingMatchingResource
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > BindingMatchingResource.BuilderImplements
BindingMatchingResourceOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public BindingMatchingResource build()| Returns | |
|---|---|
| Type | Description |
BindingMatchingResource |
|
buildPartial()
public BindingMatchingResource buildPartial()| Returns | |
|---|---|
| Type | Description |
BindingMatchingResource |
|
clear()
public BindingMatchingResource.Builder clear()| Returns | |
|---|---|
| Type | Description |
BindingMatchingResource.Builder |
|
clearAutoProtectionDetails()
public BindingMatchingResource.Builder clearAutoProtectionDetails()Output only. The auto protection details of the resource from the current binding's perspective.
.google.cloud.backupdr.v1beta.AutoProtectionDetails auto_protection_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
BindingMatchingResource.Builder |
|
clearLastEvaluationTime()
public BindingMatchingResource.Builder clearLastEvaluationTime()Output only. The timestamp when the resource was last evaluated for protection.
.google.protobuf.Timestamp last_evaluation_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
BindingMatchingResource.Builder |
|
clearName()
public BindingMatchingResource.Builder clearName() Identifier. The resource name of the BindingMatchingResource.
Format:
projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}/bindings/{binding}/matchingResources/{matching_resource}
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Returns | |
|---|---|
| Type | Description |
BindingMatchingResource.Builder |
This builder for chaining. |
clearResource()
public BindingMatchingResource.Builder clearResource()Required. Immutable. Resource name of the workload that matches the criteria of the binding.
The format can be either a relative resource name (e.g.,
projects/my-project/zones/us-central1-a/instances/my-instance) or a
schemeless full resource name (e.g.,
//compute.googleapis.com/projects/my-project/zones/us-central1-a/instances/my-instance).
string resource = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
BindingMatchingResource.Builder |
This builder for chaining. |
getAutoProtectionDetails()
public AutoProtectionDetails getAutoProtectionDetails()Output only. The auto protection details of the resource from the current binding's perspective.
.google.cloud.backupdr.v1beta.AutoProtectionDetails auto_protection_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
AutoProtectionDetails |
The autoProtectionDetails. |
getAutoProtectionDetailsBuilder()
public AutoProtectionDetails.Builder getAutoProtectionDetailsBuilder()Output only. The auto protection details of the resource from the current binding's perspective.
.google.cloud.backupdr.v1beta.AutoProtectionDetails auto_protection_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
AutoProtectionDetails.Builder |
|
getAutoProtectionDetailsOrBuilder()
public AutoProtectionDetailsOrBuilder getAutoProtectionDetailsOrBuilder()Output only. The auto protection details of the resource from the current binding's perspective.
.google.cloud.backupdr.v1beta.AutoProtectionDetails auto_protection_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
AutoProtectionDetailsOrBuilder |
|
getDefaultInstanceForType()
public BindingMatchingResource getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
BindingMatchingResource |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getLastEvaluationTime()
public Timestamp getLastEvaluationTime()Output only. The timestamp when the resource was last evaluated for protection.
.google.protobuf.Timestamp last_evaluation_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Timestamp |
The lastEvaluationTime. |
getLastEvaluationTimeBuilder()
public Timestamp.Builder getLastEvaluationTimeBuilder()Output only. The timestamp when the resource was last evaluated for protection.
.google.protobuf.Timestamp last_evaluation_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getLastEvaluationTimeOrBuilder()
public TimestampOrBuilder getLastEvaluationTimeOrBuilder()Output only. The timestamp when the resource was last evaluated for protection.
.google.protobuf.Timestamp last_evaluation_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
TimestampOrBuilder |
|
getName()
public String getName() Identifier. The resource name of the BindingMatchingResource.
Format:
projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}/bindings/{binding}/matchingResources/{matching_resource}
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Returns | |
|---|---|
| Type | Description |
String |
The name. |
getNameBytes()
public ByteString getNameBytes() Identifier. The resource name of the BindingMatchingResource.
Format:
projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}/bindings/{binding}/matchingResources/{matching_resource}
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for name. |
getResource()
public String getResource()Required. Immutable. Resource name of the workload that matches the criteria of the binding.
The format can be either a relative resource name (e.g.,
projects/my-project/zones/us-central1-a/instances/my-instance) or a
schemeless full resource name (e.g.,
//compute.googleapis.com/projects/my-project/zones/us-central1-a/instances/my-instance).
string resource = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
String |
The resource. |
getResourceBytes()
public ByteString getResourceBytes()Required. Immutable. Resource name of the workload that matches the criteria of the binding.
The format can be either a relative resource name (e.g.,
projects/my-project/zones/us-central1-a/instances/my-instance) or a
schemeless full resource name (e.g.,
//compute.googleapis.com/projects/my-project/zones/us-central1-a/instances/my-instance).
string resource = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for resource. |
hasAutoProtectionDetails()
public boolean hasAutoProtectionDetails()Output only. The auto protection details of the resource from the current binding's perspective.
.google.cloud.backupdr.v1beta.AutoProtectionDetails auto_protection_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the autoProtectionDetails field is set. |
hasLastEvaluationTime()
public boolean hasLastEvaluationTime()Output only. The timestamp when the resource was last evaluated for protection.
.google.protobuf.Timestamp last_evaluation_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the lastEvaluationTime field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeAutoProtectionDetails(AutoProtectionDetails value)
public BindingMatchingResource.Builder mergeAutoProtectionDetails(AutoProtectionDetails value)Output only. The auto protection details of the resource from the current binding's perspective.
.google.cloud.backupdr.v1beta.AutoProtectionDetails auto_protection_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
AutoProtectionDetails |
| Returns | |
|---|---|
| Type | Description |
BindingMatchingResource.Builder |
|
mergeFrom(BindingMatchingResource other)
public BindingMatchingResource.Builder mergeFrom(BindingMatchingResource other)| Parameter | |
|---|---|
| Name | Description |
other |
BindingMatchingResource |
| Returns | |
|---|---|
| Type | Description |
BindingMatchingResource.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public BindingMatchingResource.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
BindingMatchingResource.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public BindingMatchingResource.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
BindingMatchingResource.Builder |
|
mergeLastEvaluationTime(Timestamp value)
public BindingMatchingResource.Builder mergeLastEvaluationTime(Timestamp value)Output only. The timestamp when the resource was last evaluated for protection.
.google.protobuf.Timestamp last_evaluation_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
BindingMatchingResource.Builder |
|
setAutoProtectionDetails(AutoProtectionDetails value)
public BindingMatchingResource.Builder setAutoProtectionDetails(AutoProtectionDetails value)Output only. The auto protection details of the resource from the current binding's perspective.
.google.cloud.backupdr.v1beta.AutoProtectionDetails auto_protection_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
AutoProtectionDetails |
| Returns | |
|---|---|
| Type | Description |
BindingMatchingResource.Builder |
|
setAutoProtectionDetails(AutoProtectionDetails.Builder builderForValue)
public BindingMatchingResource.Builder setAutoProtectionDetails(AutoProtectionDetails.Builder builderForValue)Output only. The auto protection details of the resource from the current binding's perspective.
.google.cloud.backupdr.v1beta.AutoProtectionDetails auto_protection_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
AutoProtectionDetails.Builder |
| Returns | |
|---|---|
| Type | Description |
BindingMatchingResource.Builder |
|
setLastEvaluationTime(Timestamp value)
public BindingMatchingResource.Builder setLastEvaluationTime(Timestamp value)Output only. The timestamp when the resource was last evaluated for protection.
.google.protobuf.Timestamp last_evaluation_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
BindingMatchingResource.Builder |
|
setLastEvaluationTime(Timestamp.Builder builderForValue)
public BindingMatchingResource.Builder setLastEvaluationTime(Timestamp.Builder builderForValue)Output only. The timestamp when the resource was last evaluated for protection.
.google.protobuf.Timestamp last_evaluation_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
BindingMatchingResource.Builder |
|
setName(String value)
public BindingMatchingResource.Builder setName(String value) Identifier. The resource name of the BindingMatchingResource.
Format:
projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}/bindings/{binding}/matchingResources/{matching_resource}
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe name to set. |
| Returns | |
|---|---|
| Type | Description |
BindingMatchingResource.Builder |
This builder for chaining. |
setNameBytes(ByteString value)
public BindingMatchingResource.Builder setNameBytes(ByteString value) Identifier. The resource name of the BindingMatchingResource.
Format:
projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}/bindings/{binding}/matchingResources/{matching_resource}
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for name to set. |
| Returns | |
|---|---|
| Type | Description |
BindingMatchingResource.Builder |
This builder for chaining. |
setResource(String value)
public BindingMatchingResource.Builder setResource(String value)Required. Immutable. Resource name of the workload that matches the criteria of the binding.
The format can be either a relative resource name (e.g.,
projects/my-project/zones/us-central1-a/instances/my-instance) or a
schemeless full resource name (e.g.,
//compute.googleapis.com/projects/my-project/zones/us-central1-a/instances/my-instance).
string resource = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe resource to set. |
| Returns | |
|---|---|
| Type | Description |
BindingMatchingResource.Builder |
This builder for chaining. |
setResourceBytes(ByteString value)
public BindingMatchingResource.Builder setResourceBytes(ByteString value)Required. Immutable. Resource name of the workload that matches the criteria of the binding.
The format can be either a relative resource name (e.g.,
projects/my-project/zones/us-central1-a/instances/my-instance) or a
schemeless full resource name (e.g.,
//compute.googleapis.com/projects/my-project/zones/us-central1-a/instances/my-instance).
string resource = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for resource to set. |
| Returns | |
|---|---|
| Type | Description |
BindingMatchingResource.Builder |
This builder for chaining. |