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
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
Static Fields
GROUP_KINDS_FIELD_NUMBER
public static final int GROUP_KINDS_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
JSON_PATH_FIELD_NUMBER
public static final int JSON_PATH_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
NAMESPACES_FIELD_NUMBER
public static final int NAMESPACES_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
Static Methods
getDefaultInstance()
public static RestoreConfig.ResourceFilter getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static RestoreConfig.ResourceFilter.Builder newBuilder()
newBuilder(RestoreConfig.ResourceFilter prototype)
public static RestoreConfig.ResourceFilter.Builder newBuilder(RestoreConfig.ResourceFilter prototype)
public static RestoreConfig.ResourceFilter parseDelimitedFrom(InputStream input)
public static RestoreConfig.ResourceFilter parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static RestoreConfig.ResourceFilter parseFrom(byte[] data)
Parameter |
---|
Name | Description |
data | byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static RestoreConfig.ResourceFilter parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static RestoreConfig.ResourceFilter parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static RestoreConfig.ResourceFilter parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static RestoreConfig.ResourceFilter parseFrom(CodedInputStream input)
public static RestoreConfig.ResourceFilter parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static RestoreConfig.ResourceFilter parseFrom(InputStream input)
public static RestoreConfig.ResourceFilter parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static RestoreConfig.ResourceFilter parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static RestoreConfig.ResourceFilter parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<RestoreConfig.ResourceFilter> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
---|
Name | Description |
obj | Object
|
Overrides
getDefaultInstanceForType()
public RestoreConfig.ResourceFilter getDefaultInstanceForType()
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 |
---|
Name | Description |
index | int
|
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 |
---|
Type | Description |
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;
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 |
---|
Name | Description |
index | int
|
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 |
---|
Type | Description |
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 |
---|
Type | Description |
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 |
---|
Type | Description |
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 |
---|
Name | Description |
index | int
The index of the element to return.
|
Returns |
---|
Type | Description |
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 |
---|
Name | Description |
index | int
The index of the value to return.
|
Returns |
---|
Type | Description |
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 |
---|
Type | Description |
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;
getParserForType()
public Parser<RestoreConfig.ResourceFilter> getParserForType()
Overrides
getSerializedSize()
public int getSerializedSize()
Returns |
---|
Type | Description |
int | |
Overrides
hashCode()
Returns |
---|
Type | Description |
int | |
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public RestoreConfig.ResourceFilter.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected RestoreConfig.ResourceFilter.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Overrides
toBuilder()
public RestoreConfig.ResourceFilter.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides