Interface OSPolicy.ResourceOrBuilder

  • All Superinterfaces:
    com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
    All Known Implementing Classes:
    OSPolicy.Resource, OSPolicy.Resource.Builder
    Enclosing class:
    OSPolicy

    public static interface OSPolicy.ResourceOrBuilder
    extends com.google.protobuf.MessageOrBuilder
    • Method Detail

      • getId

        String getId()
         Required. The id of the resource with the following restrictions:
        
         * Must contain only lowercase letters, numbers, and hyphens.
         * Must start with a letter.
         * Must be between 1-63 characters.
         * Must end with a number or a letter.
         * Must be unique within the OS policy.
         
        string id = 1 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        The id.
      • getIdBytes

        com.google.protobuf.ByteString getIdBytes()
         Required. The id of the resource with the following restrictions:
        
         * Must contain only lowercase letters, numbers, and hyphens.
         * Must start with a letter.
         * Must be between 1-63 characters.
         * Must end with a number or a letter.
         * Must be unique within the OS policy.
         
        string id = 1 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        The bytes for id.
      • hasPkg

        boolean hasPkg()
         Package resource
         
        .google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource pkg = 2;
        Returns:
        Whether the pkg field is set.
      • hasRepository

        boolean hasRepository()
         Package repository resource
         
        .google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource repository = 3;
        Returns:
        Whether the repository field is set.
      • getRepository

        OSPolicy.Resource.RepositoryResource getRepository()
         Package repository resource
         
        .google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource repository = 3;
        Returns:
        The repository.
      • hasExec

        boolean hasExec()
         Exec resource
         
        .google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource exec = 4;
        Returns:
        Whether the exec field is set.
      • getExec

        OSPolicy.Resource.ExecResource getExec()
         Exec resource
         
        .google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource exec = 4;
        Returns:
        The exec.
      • hasFile

        boolean hasFile()
         File resource
         
        .google.cloud.osconfig.v1.OSPolicy.Resource.FileResource file = 5;
        Returns:
        Whether the file field is set.
      • getFile

        OSPolicy.Resource.FileResource getFile()
         File resource
         
        .google.cloud.osconfig.v1.OSPolicy.Resource.FileResource file = 5;
        Returns:
        The file.