Class RestoreConfig.ResourceFilter

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.gkebackup.v1.RestoreConfig.ResourceFilter
All Implemented Interfaces:
RestoreConfig.ResourceFilterOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable
Enclosing class:
RestoreConfig

public static final class RestoreConfig.ResourceFilter extends com.google.protobuf.GeneratedMessage 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
See Also:
  • Field Details

    • NAMESPACES_FIELD_NUMBER

      public static final int NAMESPACES_FIELD_NUMBER
      See Also:
    • GROUP_KINDS_FIELD_NUMBER

      public static final int GROUP_KINDS_FIELD_NUMBER
      See Also:
    • JSON_PATH_FIELD_NUMBER

      public static final int JSON_PATH_FIELD_NUMBER
      See Also:
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • getNamespacesList

      public com.google.protobuf.ProtocolStringList getNamespacesList()
       Optional. (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).
       
      repeated string namespaces = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getNamespacesList in interface RestoreConfig.ResourceFilterOrBuilder
      Returns:
      A list containing the namespaces.
    • getNamespacesCount

      public int getNamespacesCount()
       Optional. (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).
       
      repeated string namespaces = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getNamespacesCount in interface RestoreConfig.ResourceFilterOrBuilder
      Returns:
      The count of namespaces.
    • getNamespaces

      public String getNamespaces(int index)
       Optional. (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).
       
      repeated string namespaces = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getNamespaces in interface RestoreConfig.ResourceFilterOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The namespaces at the given index.
    • getNamespacesBytes

      public com.google.protobuf.ByteString getNamespacesBytes(int index)
       Optional. (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).
       
      repeated string namespaces = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getNamespacesBytes in interface RestoreConfig.ResourceFilterOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the namespaces at the given index.
    • getGroupKindsList

      public List<RestoreConfig.GroupKind> getGroupKindsList()
       Optional. (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 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getGroupKindsList in interface RestoreConfig.ResourceFilterOrBuilder
    • getGroupKindsOrBuilderList

      public List<? extends RestoreConfig.GroupKindOrBuilder> getGroupKindsOrBuilderList()
       Optional. (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 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getGroupKindsOrBuilderList in interface RestoreConfig.ResourceFilterOrBuilder
    • getGroupKindsCount

      public int getGroupKindsCount()
       Optional. (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 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getGroupKindsCount in interface RestoreConfig.ResourceFilterOrBuilder
    • getGroupKinds

      public RestoreConfig.GroupKind getGroupKinds(int index)
       Optional. (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 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getGroupKinds in interface RestoreConfig.ResourceFilterOrBuilder
    • getGroupKindsOrBuilder

      public RestoreConfig.GroupKindOrBuilder getGroupKindsOrBuilder(int index)
       Optional. (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 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getGroupKindsOrBuilder in interface RestoreConfig.ResourceFilterOrBuilder
    • getJsonPath

      public String getJsonPath()
       Optional. This is a [JSONPath]
       (https://github.com/json-path/JsonPath/blob/master/README.md)
       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 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getJsonPath in interface RestoreConfig.ResourceFilterOrBuilder
      Returns:
      The jsonPath.
    • getJsonPathBytes

      public com.google.protobuf.ByteString getJsonPathBytes()
       Optional. This is a [JSONPath]
       (https://github.com/json-path/JsonPath/blob/master/README.md)
       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 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getJsonPathBytes in interface RestoreConfig.ResourceFilterOrBuilder
      Returns:
      The bytes for jsonPath.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static RestoreConfig.ResourceFilter parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static RestoreConfig.ResourceFilter parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static RestoreConfig.ResourceFilter parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static RestoreConfig.ResourceFilter parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static RestoreConfig.ResourceFilter parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static RestoreConfig.ResourceFilter parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static RestoreConfig.ResourceFilter parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static RestoreConfig.ResourceFilter parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static RestoreConfig.ResourceFilter parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static RestoreConfig.ResourceFilter parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static RestoreConfig.ResourceFilter parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static RestoreConfig.ResourceFilter parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public RestoreConfig.ResourceFilter.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static RestoreConfig.ResourceFilter.Builder newBuilder()
    • newBuilder

    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected RestoreConfig.ResourceFilter.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static RestoreConfig.ResourceFilter getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<RestoreConfig.ResourceFilter> parser()
    • getParserForType

      public com.google.protobuf.Parser<RestoreConfig.ResourceFilter> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public RestoreConfig.ResourceFilter getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder