Class BindingMatchingResource (0.58.0)

public final class BindingMatchingResource extends GeneratedMessage implements BindingMatchingResourceOrBuilder

BindingMatchingResource contains the details of a resource that matches the criteria of a binding.

Protobuf type google.cloud.backupdr.v1beta.BindingMatchingResource

Static Fields

AUTO_PROTECTION_DETAILS_FIELD_NUMBER

public static final int AUTO_PROTECTION_DETAILS_FIELD_NUMBER
Field Value
Type Description
int

LAST_EVALUATION_TIME_FIELD_NUMBER

public static final int LAST_EVALUATION_TIME_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

RESOURCE_FIELD_NUMBER

public static final int RESOURCE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static BindingMatchingResource getDefaultInstance()
Returns
Type Description
BindingMatchingResource

getDescriptor()

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

newBuilder()

public static BindingMatchingResource.Builder newBuilder()
Returns
Type Description
BindingMatchingResource.Builder

newBuilder(BindingMatchingResource prototype)

public static BindingMatchingResource.Builder newBuilder(BindingMatchingResource prototype)
Parameter
Name Description
prototype BindingMatchingResource
Returns
Type Description
BindingMatchingResource.Builder

parseDelimitedFrom(InputStream input)

public static BindingMatchingResource parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
BindingMatchingResource
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static BindingMatchingResource parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BindingMatchingResource
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static BindingMatchingResource parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
BindingMatchingResource
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static BindingMatchingResource parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BindingMatchingResource
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static BindingMatchingResource parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
BindingMatchingResource
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static BindingMatchingResource parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BindingMatchingResource
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static BindingMatchingResource parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
BindingMatchingResource
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static BindingMatchingResource parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BindingMatchingResource
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static BindingMatchingResource parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
BindingMatchingResource
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static BindingMatchingResource parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BindingMatchingResource
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static BindingMatchingResource parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
BindingMatchingResource
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static BindingMatchingResource parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BindingMatchingResource
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<BindingMatchingResource> parser()
Returns
Type Description
Parser<BindingMatchingResource>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

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.

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

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.

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.

getParserForType()

public Parser<BindingMatchingResource> getParserForType()
Returns
Type Description
Parser<BindingMatchingResource>
Overrides

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.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public BindingMatchingResource.Builder newBuilderForType()
Returns
Type Description
BindingMatchingResource.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected BindingMatchingResource.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
BindingMatchingResource.Builder
Overrides

toBuilder()

public BindingMatchingResource.Builder toBuilder()
Returns
Type Description
BindingMatchingResource.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException