Class RestoreConfig.ResourceFilter (0.34.0)

public static final class RestoreConfig.ResourceFilter extends GeneratedMessageV3 implements RestoreConfig.ResourceFilterOrBuilder

ResourceFilter specifies matching criteria to limit the scope of a change to a specific set of kubernetes resources that are selected for restoration from a backup.

Protobuf type google.cloud.gkebackup.v1.RestoreConfig.ResourceFilter

Static Fields

GROUP_KINDS_FIELD_NUMBER

public static final int GROUP_KINDS_FIELD_NUMBER
Field Value
TypeDescription
int

JSON_PATH_FIELD_NUMBER

public static final int JSON_PATH_FIELD_NUMBER
Field Value
TypeDescription
int

NAMESPACES_FIELD_NUMBER

public static final int NAMESPACES_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static RestoreConfig.ResourceFilter getDefaultInstance()
Returns
TypeDescription
RestoreConfig.ResourceFilter

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static RestoreConfig.ResourceFilter.Builder newBuilder()
Returns
TypeDescription
RestoreConfig.ResourceFilter.Builder

newBuilder(RestoreConfig.ResourceFilter prototype)

public static RestoreConfig.ResourceFilter.Builder newBuilder(RestoreConfig.ResourceFilter prototype)
Parameter
NameDescription
prototypeRestoreConfig.ResourceFilter
Returns
TypeDescription
RestoreConfig.ResourceFilter.Builder

parseDelimitedFrom(InputStream input)

public static RestoreConfig.ResourceFilter parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
RestoreConfig.ResourceFilter
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static RestoreConfig.ResourceFilter parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RestoreConfig.ResourceFilter
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static RestoreConfig.ResourceFilter parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
RestoreConfig.ResourceFilter
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static RestoreConfig.ResourceFilter parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RestoreConfig.ResourceFilter
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static RestoreConfig.ResourceFilter parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
RestoreConfig.ResourceFilter
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static RestoreConfig.ResourceFilter parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RestoreConfig.ResourceFilter
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static RestoreConfig.ResourceFilter parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
RestoreConfig.ResourceFilter
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static RestoreConfig.ResourceFilter parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RestoreConfig.ResourceFilter
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static RestoreConfig.ResourceFilter parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
RestoreConfig.ResourceFilter
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static RestoreConfig.ResourceFilter parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RestoreConfig.ResourceFilter
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static RestoreConfig.ResourceFilter parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
RestoreConfig.ResourceFilter
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static RestoreConfig.ResourceFilter parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RestoreConfig.ResourceFilter
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<RestoreConfig.ResourceFilter> parser()
Returns
TypeDescription
Parser<ResourceFilter>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public RestoreConfig.ResourceFilter getDefaultInstanceForType()
Returns
TypeDescription
RestoreConfig.ResourceFilter

getGroupKinds(int index)

public RestoreConfig.GroupKind getGroupKinds(int index)

(Filtering parameter) Any resource subject to transformation must belong to one of the listed "types". If this field is not provided, no type filtering will be performed (all resources of all types matching previous filtering parameters will be candidates for transformation).

repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind group_kinds = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
RestoreConfig.GroupKind

getGroupKindsCount()

public int getGroupKindsCount()

(Filtering parameter) Any resource subject to transformation must belong to one of the listed "types". If this field is not provided, no type filtering will be performed (all resources of all types matching previous filtering parameters will be candidates for transformation).

repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind group_kinds = 2;

Returns
TypeDescription
int

getGroupKindsList()

public List<RestoreConfig.GroupKind> getGroupKindsList()

(Filtering parameter) Any resource subject to transformation must belong to one of the listed "types". If this field is not provided, no type filtering will be performed (all resources of all types matching previous filtering parameters will be candidates for transformation).

repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind group_kinds = 2;

Returns
TypeDescription
List<GroupKind>

getGroupKindsOrBuilder(int index)

public RestoreConfig.GroupKindOrBuilder getGroupKindsOrBuilder(int index)

(Filtering parameter) Any resource subject to transformation must belong to one of the listed "types". If this field is not provided, no type filtering will be performed (all resources of all types matching previous filtering parameters will be candidates for transformation).

repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind group_kinds = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
RestoreConfig.GroupKindOrBuilder

getGroupKindsOrBuilderList()

public List<? extends RestoreConfig.GroupKindOrBuilder> getGroupKindsOrBuilderList()

(Filtering parameter) Any resource subject to transformation must belong to one of the listed "types". If this field is not provided, no type filtering will be performed (all resources of all types matching previous filtering parameters will be candidates for transformation).

repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind group_kinds = 2;

Returns
TypeDescription
List<? extends com.google.cloud.gkebackup.v1.RestoreConfig.GroupKindOrBuilder>

getJsonPath()

public String getJsonPath()

This is a JSONPath expression that matches specific fields of candidate resources and it operates as a filtering parameter (resources that are not matched with this expression will not be candidates for transformation).

string json_path = 3;

Returns
TypeDescription
String

The jsonPath.

getJsonPathBytes()

public ByteString getJsonPathBytes()

This is a JSONPath expression that matches specific fields of candidate resources and it operates as a filtering parameter (resources that are not matched with this expression will not be candidates for transformation).

string json_path = 3;

Returns
TypeDescription
ByteString

The bytes for jsonPath.

getNamespaces(int index)

public String getNamespaces(int index)

(Filtering parameter) Any resource subject to transformation must be contained within one of the listed Kubernetes Namespace in the Backup. If this field is not provided, no namespace filtering will be performed (all resources in all Namespaces, including all cluster-scoped resources, will be candidates for transformation). To mix cluster-scoped and namespaced resources in the same rule, use an empty string ("") as one of the target namespaces.

repeated string namespaces = 1;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The namespaces at the given index.

getNamespacesBytes(int index)

public ByteString getNamespacesBytes(int index)

(Filtering parameter) Any resource subject to transformation must be contained within one of the listed Kubernetes Namespace in the Backup. If this field is not provided, no namespace filtering will be performed (all resources in all Namespaces, including all cluster-scoped resources, will be candidates for transformation). To mix cluster-scoped and namespaced resources in the same rule, use an empty string ("") as one of the target namespaces.

repeated string namespaces = 1;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the namespaces at the given index.

getNamespacesCount()

public int getNamespacesCount()

(Filtering parameter) Any resource subject to transformation must be contained within one of the listed Kubernetes Namespace in the Backup. If this field is not provided, no namespace filtering will be performed (all resources in all Namespaces, including all cluster-scoped resources, will be candidates for transformation). To mix cluster-scoped and namespaced resources in the same rule, use an empty string ("") as one of the target namespaces.

repeated string namespaces = 1;

Returns
TypeDescription
int

The count of namespaces.

getNamespacesList()

public ProtocolStringList getNamespacesList()

(Filtering parameter) Any resource subject to transformation must be contained within one of the listed Kubernetes Namespace in the Backup. If this field is not provided, no namespace filtering will be performed (all resources in all Namespaces, including all cluster-scoped resources, will be candidates for transformation). To mix cluster-scoped and namespaced resources in the same rule, use an empty string ("") as one of the target namespaces.

repeated string namespaces = 1;

Returns
TypeDescription
ProtocolStringList

A list containing the namespaces.

getParserForType()

public Parser<RestoreConfig.ResourceFilter> getParserForType()
Returns
TypeDescription
Parser<ResourceFilter>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public RestoreConfig.ResourceFilter.Builder newBuilderForType()
Returns
TypeDescription
RestoreConfig.ResourceFilter.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected RestoreConfig.ResourceFilter.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
RestoreConfig.ResourceFilter.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public RestoreConfig.ResourceFilter.Builder toBuilder()
Returns
TypeDescription
RestoreConfig.ResourceFilter.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException